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(int action) |
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(int action) |
int |
update()
Execute the statement.
|
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString
public int update()
Prepared
public void setDeleteAction(int action)
public void setUpdateAction(int 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 © 2012 JBoss by Red Hat. All Rights Reserved.