Class BasicConfigurationGenerator

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.QuickInfoSupporter, adams.core.SizeOfHandler, adams.db.DatabaseConnectionHandler, adams.db.DatabaseConnectionProvider, adams.db.DatabaseConnectionUser, Serializable

    public class BasicConfigurationGenerator
    extends AbstractJOOQConfigurationGenerator
    Basic generator.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -output <adams.core.io.PlaceholderFile> (property: output)
        The file to store the XML configuration in.
        default: ${CWD}
     
    -provider <adams.data.jooq.AbstractJOOQCodeGeneratorProvider> (property: provider)
        The provider for the jOOQ code generator to use.
        default: adams.data.jooq.JavaCodeGeneratorProvider
     
    -dialect <SQL99|CUBRID|DERBY|FIREBIRD|H2|HSQLDB|MARIADB|MYSQL|POSTGRES|SQLITE> (property: dialect)
        The SQL dialect to use.
        default: MYSQL
     
    -schema <java.lang.String> (property: schema)
        The database schema to use.
        default: somedatabase
     
    -include <adams.core.base.BaseRegExp> [-include ...] (property: includes)
        The regular expressions to use for including tables of the schema.
        default: .*
     
    -exclude <adams.core.base.BaseRegExp> [-exclude ...] (property: excludes)
        The regular expressions to use for excluding tables of the schema.
        default: 
     
    -package-name <java.lang.String> (property: packageName)
        The Java package name to use.
        default: adams.db.database
     
    -output-dir <adams.core.io.PlaceholderDirectory> (property: outputDir)
        The directory to store the generated code in.
        default: ${TMP}
     
    Version:
    $Revision: 8697 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Dialect

        protected org.jooq.SQLDialect m_Dialect
        the SQL dialect.
      • m_Schema

        protected String m_Schema
        the schema.
      • m_Includes

        protected adams.core.base.BaseRegExp[] m_Includes
        the includes.
      • m_Excludes

        protected adams.core.base.BaseRegExp[] m_Excludes
        the excludes.
      • m_PackageName

        protected String m_PackageName
        the package name.
      • m_OutputDir

        protected adams.core.io.PlaceholderDirectory m_OutputDir
        the output directory.
    • Constructor Detail

      • BasicConfigurationGenerator

        public BasicConfigurationGenerator()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractJOOQConfigurationGenerator
      • setDialect

        public void setDialect​(org.jooq.SQLDialect value)
        Sets the SQL dialect to use.
        Parameters:
        value - the dialect
      • getDialect

        public org.jooq.SQLDialect getDialect()
        Returns the SQL dialect to use.
        Returns:
        the dialect
      • dialectTipText

        public String dialectTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSchema

        public void setSchema​(String value)
        Sets the schema to use.
        Parameters:
        value - the schema
      • getSchema

        public String getSchema()
        Returns the schema to use.
        Returns:
        the schema
      • schemaTipText

        public String schemaTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setIncludes

        public void setIncludes​(adams.core.base.BaseRegExp[] value)
        Sets the regular expressions for including tables from the schema.
        Parameters:
        value - the includes
      • getIncludes

        public adams.core.base.BaseRegExp[] getIncludes()
        Returns the regular expressions for including tables from the schema.
        Returns:
        the includes
      • includesTipText

        public String includesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setExcludes

        public void setExcludes​(adams.core.base.BaseRegExp[] value)
        Sets the regular expressions for excluding tables from the schema.
        Parameters:
        value - the excludes
      • getExcludes

        public adams.core.base.BaseRegExp[] getExcludes()
        Returns the regular expressions for excluding tables from the schema.
        Returns:
        the excludes
      • excludesTipText

        public String excludesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setPackageName

        public void setPackageName​(String value)
        Sets the package name to use.
        Parameters:
        value - the package name
      • getPackageName

        public String getPackageName()
        Returns the package name to use.
        Returns:
        the package name
      • packageNameTipText

        public String packageNameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOutputDir

        public void setOutputDir​(adams.core.io.PlaceholderDirectory value)
        Sets the directory to store the code in.
        Parameters:
        value - the output dir
      • getOutputDir

        public adams.core.io.PlaceholderDirectory getOutputDir()
        Returns the directory to store the code in.
        Returns:
        the output dir
      • outputDirTipText

        public String outputDirTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.
        Specified by:
        getQuickInfo in interface adams.core.QuickInfoSupporter
        Overrides:
        getQuickInfo in class AbstractJOOQConfigurationGenerator
        Returns:
        null if no info available, otherwise short string