public final class Domain extends SchemaObject implements ColumnTemplate
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
Domain(Schema schema,
int id,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(ConstraintDomain constraint)
Add a constraint to the domain.
|
void |
checkConstraints(SessionLocal session,
Value value)
Check the specified value.
|
java.util.ArrayList<ConstraintDomain> |
getConstraints() |
java.lang.String |
getCreateSQL()
Construct the CREATE ...
|
TypeInfo |
getDataType() |
Expression |
getDefaultExpression() |
java.lang.String |
getDefaultSQL() |
Domain |
getDomain() |
java.lang.String |
getDropSQL()
Construct a DROP ...
|
Expression |
getEffectiveDefaultExpression() |
Expression |
getEffectiveOnUpdateExpression() |
Expression |
getOnUpdateExpression() |
java.lang.String |
getOnUpdateSQL() |
int |
getType()
Get the object type.
|
void |
prepareExpressions(SessionLocal session)
Prepare all expressions of this column or domain.
|
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
void |
removeConstraint(Constraint constraint)
Remove the given constraint from the list.
|
void |
setDataType(TypeInfo type) |
void |
setDefaultExpression(SessionLocal session,
Expression defaultExpression)
Set the default expression.
|
void |
setDomain(Domain domain) |
void |
setOnUpdateExpression(SessionLocal session,
Expression onUpdateExpression)
Set the on update expression.
|
getSchema, getSQL, getSQL, isHiddencheckRename, getChildren, getComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic Domain(Schema schema, int id, java.lang.String name)
public java.lang.String getDropSQL()
DbObjectgetDropSQL in class DbObjectpublic java.lang.String getCreateSQL()
DbObjectgetCreateSQL in class DbObjectpublic void setDataType(TypeInfo type)
public TypeInfo getDataType()
public void setDomain(Domain domain)
setDomain in interface ColumnTemplatepublic Domain getDomain()
getDomain in interface ColumnTemplatepublic void setDefaultExpression(SessionLocal session, Expression defaultExpression)
ColumnTemplatesetDefaultExpression in interface ColumnTemplatesession - the sessiondefaultExpression - the default expressionpublic Expression getDefaultExpression()
getDefaultExpression in interface ColumnTemplatepublic Expression getEffectiveDefaultExpression()
getEffectiveDefaultExpression in interface ColumnTemplatepublic java.lang.String getDefaultSQL()
getDefaultSQL in interface ColumnTemplatepublic void setOnUpdateExpression(SessionLocal session, Expression onUpdateExpression)
ColumnTemplatesetOnUpdateExpression in interface ColumnTemplatesession - the sessiononUpdateExpression - the on update expressionpublic Expression getOnUpdateExpression()
getOnUpdateExpression in interface ColumnTemplatepublic Expression getEffectiveOnUpdateExpression()
getEffectiveOnUpdateExpression in interface ColumnTemplatepublic java.lang.String getOnUpdateSQL()
getOnUpdateSQL in interface ColumnTemplatepublic void prepareExpressions(SessionLocal session)
ColumnTemplateprepareExpressions in interface ColumnTemplatesession - the sessionpublic void addConstraint(ConstraintDomain constraint)
constraint - the constraint to addpublic java.util.ArrayList<ConstraintDomain> getConstraints()
public void removeConstraint(Constraint constraint)
constraint - the constraint to removepublic int getType()
DbObjectpublic void removeChildrenAndResources(SessionLocal session)
DbObjectremoveChildrenAndResources in class DbObjectsession - the sessionpublic void checkConstraints(SessionLocal session, Value value)
session - the sessionvalue - the value