org.castor.ddlgen
Class DDLGenConfiguration

java.lang.Object
  extended by org.castor.ddlgen.Configuration
      extended by org.castor.ddlgen.DDLGenConfiguration

public final class DDLGenConfiguration
extends Configuration

Handle the configuration for DDL generator.

Since:
1.1
Version:
$Revision: 8993 $ $Date: 2011-08-02 01:28:52 +0200 (Di, 02 Aug 2011) $
Author:
Le Duc Bao, Ralf Joachim

Field Summary
static java.lang.String CHAR_FORMAT_KEY
          How to format characters of generated DDL statements?
static java.lang.String CHAR_FORMAT_LOWER
          Convert characters to lower case.
static java.lang.String CHAR_FORMAT_SENSITIVE
          Do not format characters.
static java.lang.String CHAR_FORMAT_UPPER
          Convert characters to upper case.
static java.lang.String DEFAULT_ENGINE_KEY
          Default database engine.
static java.lang.String DEFAULT_FIELD_DELIMITER
          Default value for field delimiter at generated DDL.
static java.lang.String DEFAULT_INDENT
          Default indention at generated DDL.
static java.lang.String DEFAULT_NEWLINE
          Default value for newline at generated DDL.
static java.lang.String DEFAULT_STATEMENT_DELIMITER
          Default value for statement delimiter at generated DDL.
static java.lang.String FOREIGN_KEY_ON_DELETE_KEY
          MySQL delete strategy for foreign keys, one of the CASCADE, RESTRICT, SET NULL, NO ACTION.
static java.lang.String FOREIGN_KEY_ON_UPDATE_KEY
          MySQL update strategy for foreign keys, one of the CASCADE, RESTRICT, SET NULL, NO ACTION.
static java.lang.String GENERATE_DDL_FOR_CREATE_KEY
          Generate DDL for CREATE statement.
static java.lang.String GENERATE_DDL_FOR_DROP_KEY
          Generate DDL for DROP statement.
static java.lang.String GENERATE_DDL_FOR_FOREIRNKEY_KEY
          Generate DDL for FOREIGN KEY statement.
static java.lang.String GENERATE_DDL_FOR_INDEX_KEY
          Generate DDL for INDEX statement.
static java.lang.String GENERATE_DDL_FOR_KEYGENERATOR_KEY
          Generate DDL for KEY GENERATOR statement.
static java.lang.String GENERATE_DDL_FOR_PRIMARYKEY_KEY
          Generate DDL for PRIMARY KEY statement.
static java.lang.String GENERATE_DDL_FOR_SCHEMA_KEY
          Generate DDL for CREATE statement.
static java.lang.String GENERATORS_KEY
          Generator classes of supported database engines.
static java.lang.String GROUP_DDL_BY_DDLTYPE
          Group ddl by ddltype.
static java.lang.String GROUP_DDL_BY_TABLE
          Group ddl by table.
static java.lang.String GROUP_DDL_KEY
          How to group generated DDL statements?
static java.lang.String HEADER_COMMENT_KEY
          Header comment.
static java.lang.String INDENT_KEY
          Indention.
static java.lang.String KEYGEN_FACTORIES_KEY
          Key generator factory classes of supported database engines.
static java.lang.String NEWLINE_KEY
          Newline.
static java.lang.String SCHEMA_NAME_KEY
          Schema name.
static java.lang.String STORAGE_ENGINE_KEY
          MySQL storage engine is one of MYISAM, InnoDB, MERGE, MEMORY, BDB, ISAM or null for default.
static java.lang.String TRIGGER_TEMPLATE_KEY
          Trigger template.
 
Fields inherited from class org.castor.ddlgen.Configuration
FALSE, TRUE
 
Constructor Summary
DDLGenConfiguration()
          Constructor for DDLGenConfiguration.
 
Method Summary
 
Methods inherited from class org.castor.ddlgen.Configuration
addProperties, addProperties, getBoolValue, getBoolValue, getInteger, getStringValue, getStringValue, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NEWLINE

public static final java.lang.String DEFAULT_NEWLINE
Default value for newline at generated DDL.


DEFAULT_INDENT

public static final java.lang.String DEFAULT_INDENT
Default indention at generated DDL.

See Also:
Constant Field Values

DEFAULT_FIELD_DELIMITER

public static final java.lang.String DEFAULT_FIELD_DELIMITER
Default value for field delimiter at generated DDL.

See Also:
Constant Field Values

DEFAULT_STATEMENT_DELIMITER

public static final java.lang.String DEFAULT_STATEMENT_DELIMITER
Default value for statement delimiter at generated DDL.

See Also:
Constant Field Values

GENERATORS_KEY

public static final java.lang.String GENERATORS_KEY
Generator classes of supported database engines.

See Also:
Constant Field Values

DEFAULT_ENGINE_KEY

public static final java.lang.String DEFAULT_ENGINE_KEY
Default database engine.

See Also:
Constant Field Values

SCHEMA_NAME_KEY

public static final java.lang.String SCHEMA_NAME_KEY
Schema name.

See Also:
Constant Field Values

GROUP_DDL_KEY

public static final java.lang.String GROUP_DDL_KEY
How to group generated DDL statements? Supported values are TABLE and DDLTYPE.

See Also:
Constant Field Values

GROUP_DDL_BY_TABLE

public static final java.lang.String GROUP_DDL_BY_TABLE
Group ddl by table.

See Also:
Constant Field Values

GROUP_DDL_BY_DDLTYPE

public static final java.lang.String GROUP_DDL_BY_DDLTYPE
Group ddl by ddltype.

See Also:
Constant Field Values

CHAR_FORMAT_KEY

public static final java.lang.String CHAR_FORMAT_KEY
How to format characters of generated DDL statements? Supported values are SENSITIVE, UPPER and LOWER.

See Also:
Constant Field Values

CHAR_FORMAT_SENSITIVE

public static final java.lang.String CHAR_FORMAT_SENSITIVE
Do not format characters.

See Also:
Constant Field Values

CHAR_FORMAT_UPPER

public static final java.lang.String CHAR_FORMAT_UPPER
Convert characters to upper case.

See Also:
Constant Field Values

CHAR_FORMAT_LOWER

public static final java.lang.String CHAR_FORMAT_LOWER
Convert characters to lower case.

See Also:
Constant Field Values

NEWLINE_KEY

public static final java.lang.String NEWLINE_KEY
Newline.

See Also:
Constant Field Values

INDENT_KEY

public static final java.lang.String INDENT_KEY
Indention.

See Also:
Constant Field Values

GENERATE_DDL_FOR_SCHEMA_KEY

public static final java.lang.String GENERATE_DDL_FOR_SCHEMA_KEY
Generate DDL for CREATE statement.

See Also:
Constant Field Values

GENERATE_DDL_FOR_DROP_KEY

public static final java.lang.String GENERATE_DDL_FOR_DROP_KEY
Generate DDL for DROP statement.

See Also:
Constant Field Values

GENERATE_DDL_FOR_CREATE_KEY

public static final java.lang.String GENERATE_DDL_FOR_CREATE_KEY
Generate DDL for CREATE statement.

See Also:
Constant Field Values

GENERATE_DDL_FOR_PRIMARYKEY_KEY

public static final java.lang.String GENERATE_DDL_FOR_PRIMARYKEY_KEY
Generate DDL for PRIMARY KEY statement.

See Also:
Constant Field Values

GENERATE_DDL_FOR_FOREIRNKEY_KEY

public static final java.lang.String GENERATE_DDL_FOR_FOREIRNKEY_KEY
Generate DDL for FOREIGN KEY statement.

See Also:
Constant Field Values

GENERATE_DDL_FOR_INDEX_KEY

public static final java.lang.String GENERATE_DDL_FOR_INDEX_KEY
Generate DDL for INDEX statement.

See Also:
Constant Field Values

GENERATE_DDL_FOR_KEYGENERATOR_KEY

public static final java.lang.String GENERATE_DDL_FOR_KEYGENERATOR_KEY
Generate DDL for KEY GENERATOR statement.

See Also:
Constant Field Values

KEYGEN_FACTORIES_KEY

public static final java.lang.String KEYGEN_FACTORIES_KEY
Key generator factory classes of supported database engines.

See Also:
Constant Field Values

HEADER_COMMENT_KEY

public static final java.lang.String HEADER_COMMENT_KEY
Header comment.

See Also:
Constant Field Values

TRIGGER_TEMPLATE_KEY

public static final java.lang.String TRIGGER_TEMPLATE_KEY
Trigger template.

See Also:
Constant Field Values

STORAGE_ENGINE_KEY

public static final java.lang.String STORAGE_ENGINE_KEY
MySQL storage engine is one of MYISAM, InnoDB, MERGE, MEMORY, BDB, ISAM or null for default.

See Also:
Constant Field Values

FOREIGN_KEY_ON_DELETE_KEY

public static final java.lang.String FOREIGN_KEY_ON_DELETE_KEY
MySQL delete strategy for foreign keys, one of the CASCADE, RESTRICT, SET NULL, NO ACTION. Default is NO ACTION.

See Also:
Constant Field Values

FOREIGN_KEY_ON_UPDATE_KEY

public static final java.lang.String FOREIGN_KEY_ON_UPDATE_KEY
MySQL update strategy for foreign keys, one of the CASCADE, RESTRICT, SET NULL, NO ACTION. Default is NO ACTION.

See Also:
Constant Field Values
Constructor Detail

DDLGenConfiguration

public DDLGenConfiguration()
Constructor for DDLGenConfiguration.



Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com