public class MnTableCreator extends TableCreator
columnAdders, mnTablesStepList
includeAudTable, isAuditing, tableName
stepName
Modifier | Constructor and Description |
---|---|
protected |
MnTableCreator(java.util.List<ISchemaUpdaterStep> stepList,
java.lang.String stepName,
java.lang.String firstTableName,
java.lang.String firstTableAlias,
java.lang.String firstColumnName,
java.lang.String secondTableName,
java.lang.String secondTableAlias,
java.lang.String secondColumnName,
java.lang.String[] columnNames,
java.lang.String[] columnTypes,
java.util.List<java.lang.Object> defaultValues,
java.util.List<java.lang.Boolean> isNull,
boolean includeAudTable,
boolean isList,
boolean is1toM,
boolean includeCdmBaseAttributes,
boolean includeAnnotatableEntity,
boolean includeIdentifiableEntity,
java.lang.String description_mapkey_id) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMyColumns() |
static MnTableCreator |
NewDescriptionInstance(java.util.List<ISchemaUpdaterStep> stepList,
java.lang.String stepName,
java.lang.String firstTableName,
java.lang.String firstTableAlias,
java.lang.String attributeName,
boolean includeAudTable) |
static MnTableCreator |
NewMnInstance(java.util.List<ISchemaUpdaterStep> stepList,
java.lang.String stepName,
java.lang.String firstTableName,
java.lang.String secondTableName,
boolean includeAudTable,
boolean isList,
boolean is1toM) |
static MnTableCreator |
NewMnInstance(java.util.List<ISchemaUpdaterStep> stepList,
java.lang.String stepName,
java.lang.String firstTableName,
java.lang.String firstTableAlias,
java.lang.String secondTableName,
java.lang.String secondTableAlias,
java.lang.String attributeName,
boolean includeAudTable,
boolean isList,
boolean is1toM) |
static MnTableCreator |
NewMnInstance(java.util.List<ISchemaUpdaterStep> stepList,
java.lang.String stepName,
java.lang.String firstTableName,
java.lang.String firstTableAlias,
java.lang.String firstColumnName,
java.lang.String secondTableName,
java.lang.String secondTableAlias,
java.lang.String secondColumnName,
boolean includeAudTable,
boolean isList,
boolean is1toM) |
protected java.lang.String |
primaryKey(boolean isAudit)
Constructs the primary key creation string
|
protected java.lang.String |
unique(boolean isAudit)
Constructs the unique key creation string
|
getInnerSteps, invokeOnTable, makeForeignKey, makeMnTables, NewAnnotatableInstance, NewEventInstance, NewIdentifiableInstance, NewInstance, NewInstance, NewNonVersionableInstance, NewVersionableInstance, setPrimaryKeyParams, setUniqueParams
invoke
getBoolean, getEnglishLanguageId, getLanguageId, getNowString, getStepName, isIgnoreErrors, setIgnoreErrors, setStepName, toString
protected MnTableCreator(java.util.List<ISchemaUpdaterStep> stepList, java.lang.String stepName, java.lang.String firstTableName, java.lang.String firstTableAlias, java.lang.String firstColumnName, java.lang.String secondTableName, java.lang.String secondTableAlias, java.lang.String secondColumnName, java.lang.String[] columnNames, java.lang.String[] columnTypes, java.util.List<java.lang.Object> defaultValues, java.util.List<java.lang.Boolean> isNull, boolean includeAudTable, boolean isList, boolean is1toM, boolean includeCdmBaseAttributes, boolean includeAnnotatableEntity, boolean includeIdentifiableEntity, java.lang.String description_mapkey_id)
public static MnTableCreator NewMnInstance(java.util.List<ISchemaUpdaterStep> stepList, java.lang.String stepName, java.lang.String firstTableName, java.lang.String secondTableName, boolean includeAudTable, boolean isList, boolean is1toM)
public static MnTableCreator NewMnInstance(java.util.List<ISchemaUpdaterStep> stepList, java.lang.String stepName, java.lang.String firstTableName, java.lang.String firstTableAlias, java.lang.String secondTableName, java.lang.String secondTableAlias, java.lang.String attributeName, boolean includeAudTable, boolean isList, boolean is1toM)
stepName
- The step namefirstTableName
- The name of the first tablefirstTableAlias
- The alias for the first table as used in the MN table namesecondTableName
- The name of the second tablesecondTableAlias
- The alias for the second table as used in the MN table nameattributeName
- The name of the attribute pointing to the second table (this is used for the column name for the
column pointing to the second table)includeAudTable
- true
if also the Audit (_AUD) table should be createdhasSortIndex
- by default false
but true for maps
(or maybe user defined MN-tables)secondTableInKey
- should the column that links to the second table also be in the key? This is by default
true
but for lists
should be false
.public static MnTableCreator NewDescriptionInstance(java.util.List<ISchemaUpdaterStep> stepList, java.lang.String stepName, java.lang.String firstTableName, java.lang.String firstTableAlias, java.lang.String attributeName, boolean includeAudTable)
public static MnTableCreator NewMnInstance(java.util.List<ISchemaUpdaterStep> stepList, java.lang.String stepName, java.lang.String firstTableName, java.lang.String firstTableAlias, java.lang.String firstColumnName, java.lang.String secondTableName, java.lang.String secondTableAlias, java.lang.String secondColumnName, boolean includeAudTable, boolean isList, boolean is1toM)
stepName
- The step namefirstTableName
- The name of the first tablefirstTableAlias
- The alias for the first table as used in the MN table namefirstColumnName
- The name of the attribute pointing to the first table (this is used for the column name for the
column pointing to the first table)secondTableName
- The name of the second tablesecondTableAlias
- The alias for the second table as used in the MN table namesecondColumnName
- The name of the attribute pointing to the second table (this is used for the column name for the
column pointing to the second table)includeAudTable
- true
if also the Audit (_AUD) table should be createdisList
- by default false
but true for maps
(or maybe user defined MN-tables)is1ToM
- should the column that links to the second table also be in the key? This is by default
true
but for lists
should be false
.protected void addMyColumns()
protected java.lang.String primaryKey(boolean isAudit)
TableCreator
primaryKey
in class TableCreator
protected java.lang.String unique(boolean isAudit)
TableCreator
unique
in class TableCreator
Copyright © 2007-2020 EDIT. All Rights Reserved.