Class MetaDataProducerHelper

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.MetaDataProducerHelper

public class MetaDataProducerHelper extends Object
Help work with MetaDataProducers.
  • Constructor Details

    • MetaDataProducerHelper

      public MetaDataProducerHelper()
  • Method Details

    • processAllMetaDataProducersInPackage

      public static void processAllMetaDataProducersInPackage(QInstance instance, String packageName, MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) throws QException
      Recursively find all classes in the given package, that implement MetaDataProducerInterface run them, and add their output to the given qInstance - using the provided tableMetaDataCustomizer to help with all RecordEntity's that are configured to make tables. Note - they'll be sorted by the sortOrder they provide.
      Throws:
      QException
    • findProducers

      public static List<MetaDataProducerInterface<?>> findProducers(String packageName) throws QException
      Throws:
      QException
    • processAllMetaDataProducersInPackage

      public static void processAllMetaDataProducersInPackage(QInstance instance, String packageName) throws QException
      Recursively find all classes in the given package, that implement MetaDataProducerInterface run them, and add their output to the given qInstance. Note - they'll be sorted by the sortOrder they provide.
      Throws:
      QException
    • getTableMetaDataCustomizer

      public MetaDataCustomizerInterface<QTableMetaData> getTableMetaDataCustomizer()
      Getter for tableMetaDataCustomizer
    • setTableMetaDataCustomizer

      public void setTableMetaDataCustomizer(MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer)
      Setter for tableMetaDataCustomizer
    • withTableMetaDataCustomizer

      public void withTableMetaDataCustomizer(MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer)
      Fluent setter for tableMetaDataCustomizer