Fields Summary |
---|
private static MessageFormat | createTableStartFormatter for the start of "create table" DDL. |
private static MessageFormat | alterTableAddConstraintStartFormatter for "add constraint" DDL. |
private static MessageFormat | alterTableDropConstraintFormatter for "drop constraing" DDL. |
private static MessageFormat | primaryKeyConstraintFormatter for DDL for adding a PK constraint. |
private static MessageFormat | foreignKeyConstraintFormatter for DDL for adding an FK constraint. |
private static MessageFormat | dropTableFormatter for "drop table" DDL. |
Methods Summary |
---|
static java.lang.String | formatAlterTableAddConstraint(java.lang.Object o)
return alterTableAddConstraintStart.format(o);
|
static java.lang.String | formatAlterTableDropConstraint(java.lang.Object o)
return alterTableDropConstraint.format(o);
|
static java.lang.String | formatCreateTable(java.lang.Object o)
return createTableStart.format(o);
|
static java.lang.String | formatDropTable(java.lang.Object o)
return dropTable.format(o);
|
static java.lang.String | formatFKConstraint(java.lang.Object o)
return foreignKeyConstraint.format(o);
|
static java.lang.String | formatPKConstraint(java.lang.Object o)
return primaryKeyConstraint.format(o);
|
static void | reset(MappingPolicy mappingPolicy)Resets MessageFormats for code generation as per policy.
createTableStart = new MessageFormat(
mappingPolicy.getCreateTableStart());
alterTableAddConstraintStart = new MessageFormat(
mappingPolicy.getAlterTableAddConstraintStart());
alterTableDropConstraint = new MessageFormat(
mappingPolicy.getAlterTableDropConstraint());
primaryKeyConstraint = new MessageFormat(
mappingPolicy.getPrimaryKeyConstraint());
foreignKeyConstraint = new MessageFormat(
mappingPolicy.getForeignKeyConstraint());
dropTable = new MessageFormat(
mappingPolicy.getDropTable());
|