primaryKeyHash
private boolean primaryKeyHash
private boolean
private Expression
private String
private String
private ConstraintUnique
private ConstraintActionType
private final boolean
private Index
private IndexColumn[]
private boolean
private Index
private IndexColumn[]
private Schema
private String
private final int
private ConstraintActionType
ifTableExists, tableName
transactional
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
AlterTableAddConstraint(SessionLocal session,
Schema schema,
int type,
boolean ifNotExists)
private void
addConstraintToTable(Database db,
Table table,
Constraint constraint)
private static boolean
canUseIndex(Index index,
Table table,
IndexColumn[] cols,
boolean unique)
private Index
createIndex(Table t,
IndexColumn[] cols,
boolean unique)
private ConstraintUnique
createUniqueConstraint(Table table,
Index index,
IndexColumn[] indexColumns,
boolean forForeignKey)
private String
generateConstraintName(Table table)
private static Index
getIndex(Table t,
IndexColumn[] cols,
boolean unique)
int
getType()
private static ConstraintUnique
getUniqueConstraint(Table t,
IndexColumn[] cols)
void
setCheckExisting(boolean b)
void
setCheckExpression(Expression expression)
void
setComment(String comment)
void
setConstraintName(String constraintName)
void
setDeleteAction(ConstraintActionType action)
void
void
setIndexColumns(IndexColumn[] indexColumns)
void
setPrimaryKeyHash(boolean b)
void
setRefIndex(Index refIndex)
void
setRefIndexColumns(IndexColumn[] indexColumns)
void
setRefTableName(Schema refSchema,
String ref)
void
setUpdateAction(ConstraintActionType action)
private int
long
setIfTableExists, setTableName, update
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, 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, toString
update
in class AlterTable
Prepared
refSchema
- the schemaref
- the table name