@Relvars(relvarNames="CONSTRAINEDTYPE") public final class ConstrainedType extends AbstractUpdatableDBObject
| Constructor and Description |
|---|
ConstrainedType()
Creates an empty ConstrainedType
|
ConstrainedType(java.lang.String typeName,
java.lang.String baseTypeName,
java.lang.String expression)
Creates the ConstrainedType
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseTypeName()
Gets The base type's name
|
java.lang.String |
getExpressionText()
Gets The constraint expression
|
UpdatableDBObject |
getPreUpdateState()
Gets The state of the object as it was built by the J/R bridging engine immediately after the object was created from a database tuple (and which should have been set by/using the setPreUpdateState() method.
|
java.lang.String |
getTypeName()
Gets The type name
|
void |
setBaseTypeName(java.lang.String baseTypeName)
Sets The base type's name
|
void |
setBaseTypeName(ValueBuffer baseTypeName)
Sets The base type's name
|
void |
setExpressionText(java.lang.String expressionText)
Sets The constraint expression
|
void |
setExpressionText(ValueBuffer expressionText)
Sets The constraint expression
|
void |
setPreUpdateState()
This method is called by the J/R bridging engine after an object has been setup from some tuple retrieved from the database.
|
void |
setTypeName(java.lang.String typeName)
Sets The type name
|
void |
setTypeName(ValueBuffer typeName)
Sets The type name
|
dbUpdateCommand, dbUpdateCommand, dbUpdateCommanddbAddCommand, dbAddCommand, dbAddCommand, dbAddCommandAll, dbAssertCommand, dbAssertCommand, dbAssertCommand, dbAssertCommandAll, dbDeleteCommand, dbDeleteCommand, dbDeleteCommand, dbDeleteCommandAll, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommandAllpublic ConstrainedType()
public ConstrainedType(java.lang.String typeName,
java.lang.String baseTypeName,
java.lang.String expression)
typeName - The type namebaseTypeName - The constraint message text to be displayed in the event of violationsexpression - The file name@GetterMethod(attributeDefs=@AttributeDef(attributeName="BASETYPE",requiresEscaping=false,typeName="NAME"), relvarNames="CONSTRAINEDTYPE") public final java.lang.String getBaseTypeName()
@GetterMethod(attributeDefs=@AttributeDef(attributeName="SP_EXPRESSION",requiresEscaping=true,typeName="STRING"), relvarNames="CONSTRAINEDTYPE") public final java.lang.String getExpressionText()
public final UpdatableDBObject getPreUpdateState()
UpdatableDBObject@GetterMethod(attributeDefs=@AttributeDef(attributeName="TYPENAME",requiresEscaping=false,typeName="NAME"), relvarNames="CONSTRAINEDTYPE") public final java.lang.String getTypeName()
public final void setBaseTypeName(java.lang.String baseTypeName)
baseTypeName - The baseTypeName to set.@AttributeDef(attributeName="BASETYPE", requiresEscaping=false, typeName="NAME") public void setBaseTypeName(ValueBuffer baseTypeName)
baseTypeName - The baseTypeName to set.public final void setExpressionText(java.lang.String expressionText)
expressionText - The expression to set.@AttributeDef(attributeName="SP_EXPRESSION", requiresEscaping=true, typeName="STRING") public void setExpressionText(ValueBuffer expressionText)
expressionText - The expression to set.public final void setPreUpdateState()
UpdatableDBObjectpublic final void setTypeName(java.lang.String typeName)
typeName - The typeName to set.@AttributeDef(attributeName="TYPENAME", requiresEscaping=false, typeName="NAME") public void setTypeName(ValueBuffer typeName)
typeName - The typeName to set.