public class AlterTableAddConstraint extends SchemaCommand
transactional
create, parameters, prepareAlways, session, sqlStatement
Constructor and Description |
---|
AlterTableAddConstraint(Session session,
Schema schema,
boolean ifNotExists) |
Modifier and Type | Method and Description |
---|---|
IndexColumn[] |
getIndexColumns() |
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setCheckExisting(boolean b) |
void |
setCheckExpression(Expression expression) |
void |
setComment(String comment) |
void |
setConstraintName(String constraintName) |
void |
setDeleteAction(ConstraintActionType action) |
void |
setIfTableExists(boolean b) |
void |
setIndex(Index index) |
void |
setIndexColumns(IndexColumn[] indexColumns) |
void |
setPrimaryKeyHash(boolean b) |
void |
setRefIndex(Index refIndex) |
void |
setRefIndexColumns(IndexColumn[] indexColumns) |
void |
setRefTableName(Schema refSchema,
String ref)
Set the referenced table.
|
void |
setTableName(String tableName) |
void |
setType(int type) |
void |
setUpdateAction(ConstraintActionType action) |
int |
update()
Execute the statement.
|
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString
public void setIfTableExists(boolean b)
public int update()
Prepared
public void setDeleteAction(ConstraintActionType action)
public void setUpdateAction(ConstraintActionType action)
public void setConstraintName(String constraintName)
public void setType(int type)
public int getType()
Prepared
public void setCheckExpression(Expression expression)
public void setTableName(String tableName)
public void setIndexColumns(IndexColumn[] indexColumns)
public IndexColumn[] getIndexColumns()
public void setRefTableName(Schema refSchema, String ref)
refSchema
- the schemaref
- the table namepublic void setRefIndexColumns(IndexColumn[] indexColumns)
public void setIndex(Index index)
public void setRefIndex(Index refIndex)
public void setComment(String comment)
public void setCheckExisting(boolean b)
public void setPrimaryKeyHash(boolean b)
Copyright © 2020 JBoss by Red Hat. All rights reserved.