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| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConstraint(ConstraintDomain constraint)
Add a constraint to the domain.
|
void |
checkConstraints(SessionLocal session,
Value value)
Check the specified value.
|
ArrayList<ConstraintDomain> |
getConstraints() |
String |
getCreateSQL()
Construct the CREATE ...
|
TypeInfo |
getDataType() |
Expression |
getDefaultExpression() |
String |
getDefaultSQL() |
Domain |
getDomain() |
String |
getDropSQL()
Construct a DROP ...
|
Expression |
getEffectiveDefaultExpression() |
Expression |
getEffectiveOnUpdateExpression() |
Expression |
getOnUpdateExpression() |
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 String getDropSQL()
DbObjectgetDropSQL 在类中 DbObjectpublic String getCreateSQL()
DbObjectgetCreateSQL 在类中 DbObjectpublic void setDataType(TypeInfo type)
public TypeInfo getDataType()
public void setDomain(Domain domain)
setDomain 在接口中 ColumnTemplatepublic Domain getDomain()
getDomain 在接口中 ColumnTemplatepublic void setDefaultExpression(SessionLocal session, Expression defaultExpression)
ColumnTemplatesetDefaultExpression 在接口中 ColumnTemplatesession - the sessiondefaultExpression - the default expressionpublic Expression getDefaultExpression()
getDefaultExpression 在接口中 ColumnTemplatepublic Expression getEffectiveDefaultExpression()
getEffectiveDefaultExpression 在接口中 ColumnTemplatepublic String getDefaultSQL()
getDefaultSQL 在接口中 ColumnTemplatepublic void setOnUpdateExpression(SessionLocal session, Expression onUpdateExpression)
ColumnTemplatesetOnUpdateExpression 在接口中 ColumnTemplatesession - the sessiononUpdateExpression - the on update expressionpublic Expression getOnUpdateExpression()
getOnUpdateExpression 在接口中 ColumnTemplatepublic Expression getEffectiveOnUpdateExpression()
getEffectiveOnUpdateExpression 在接口中 ColumnTemplatepublic String getOnUpdateSQL()
getOnUpdateSQL 在接口中 ColumnTemplatepublic void prepareExpressions(SessionLocal session)
ColumnTemplateprepareExpressions 在接口中 ColumnTemplatesession - the sessionpublic void addConstraint(ConstraintDomain constraint)
constraint - the constraint to addpublic ArrayList<ConstraintDomain> getConstraints()
public void removeConstraint(Constraint constraint)
constraint - the constraint to removepublic int getType()
DbObjectpublic void removeChildrenAndResources(SessionLocal session)
DbObjectremoveChildrenAndResources 在类中 DbObjectsession - the sessionpublic void checkConstraints(SessionLocal session, Value value)
session - the sessionvalue - the valueCopyright © 2022. All rights reserved.