primaryKeyHash
private boolean primaryKeyHash
private booleanprivate Expressionprivate Stringprivate Stringprivate ConstraintUniqueprivate ConstraintActionTypeprivate final booleanprivate Indexprivate IndexColumn[]private booleanprivate Indexprivate IndexColumn[]private Schemaprivate Stringprivate final intprivate ConstraintActionTypeifTableExists, tableNametransactionalcreate, parameters, prepareAlways, session, sqlStatement, sqlTokensAlterTableAddConstraint(SessionLocal session,
Schema schema,
int type,
boolean ifNotExists) private voidaddConstraintToTable(Database db,
Table table,
Constraint constraint) private static booleancanUseIndex(Index index,
Table table,
IndexColumn[] cols,
boolean unique) private IndexcreateIndex(Table t,
IndexColumn[] cols,
boolean unique) private ConstraintUniquecreateUniqueConstraint(Table table,
Index index,
IndexColumn[] indexColumns,
boolean forForeignKey) private StringgenerateConstraintName(Table table) private static IndexgetIndex(Table t,
IndexColumn[] cols,
boolean unique) intgetType()private static ConstraintUniquegetUniqueConstraint(Table t,
IndexColumn[] cols) voidsetCheckExisting(boolean b) voidsetCheckExpression(Expression expression) voidsetComment(String comment) voidsetConstraintName(String constraintName) voidsetDeleteAction(ConstraintActionType action) voidvoidsetIndexColumns(IndexColumn[] indexColumns) voidsetPrimaryKeyHash(boolean b) voidsetRefIndex(Index refIndex) voidsetRefIndexColumns(IndexColumn[] indexColumns) voidsetRefTableName(Schema refSchema,
String ref) voidsetUpdateAction(ConstraintActionType action) private intlongsetIfTableExists, setTableName, updategetSchemaisReadOnly, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toStringupdate in class AlterTable