public class CreateDomain extends SchemaCommand
transactional
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
Constructor and Description |
---|
CreateDomain(SessionLocal session,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
void |
addConstraintCommand(AlterDomainAddConstraint command)
Add a constraint command.
|
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setComment(java.lang.String comment) |
void |
setDataType(TypeInfo dataType) |
void |
setDefaultExpression(Expression defaultExpression) |
void |
setIfNotExists(boolean ifNotExists) |
void |
setOnUpdateExpression(Expression onUpdateExpression) |
void |
setParentDomain(Domain parentDomain) |
void |
setTypeName(java.lang.String name) |
long |
update()
Execute the statement.
|
getSchema
isReadOnly, isRetryable, isTransactional, queryMeta, setTransactional
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, isWithParamValues, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString
public CreateDomain(SessionLocal session, Schema schema)
public void setTypeName(java.lang.String name)
public void setIfNotExists(boolean ifNotExists)
public void setDataType(TypeInfo dataType)
public void setParentDomain(Domain parentDomain)
public void setDefaultExpression(Expression defaultExpression)
public void setOnUpdateExpression(Expression onUpdateExpression)
public void setComment(java.lang.String comment)
public int getType()
Prepared
public void addConstraintCommand(AlterDomainAddConstraint command)
command
- the command to add