@Relvars(relvarNames={"TUPLECONSTRAINT","CONSTRAINTMESSAGETEXT"}) public final class TupleConstraint extends AbstractUpdatableDBObject
Constructor and Description |
---|
TupleConstraint()
Creates the TupleConstraint
|
TupleConstraint(java.lang.String relvarName,
long errorCode,
java.lang.String constraintExpressionText,
java.lang.String constraintMessageText)
Creates the TupleConstraint
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstraintExpressionText()
Gets constraintExpression
|
java.lang.String |
getConstraintMessageText()
Gets messageText
|
long |
getErrorCode()
Gets errorCode
|
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 |
getRelvarName()
Gets relvarName
|
void |
setConstraintExpressionText(java.lang.String constraintExpressionText)
Sets constraintExpression
|
void |
setConstraintExpressionText(ValueBuffer constraintExpressionText)
Sets constraintExpression
|
void |
setConstraintMessageText(java.lang.String constraintMessageText)
Sets messageText
|
void |
setConstraintMessageText(ValueBuffer constraintMessageText)
Sets constraintMessageText
|
void |
setErrorCode(long errorCode)
Sets errorCode
|
void |
setErrorCode(ValueBuffer errorCode)
Sets errorCode
|
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 |
setRelvarName(java.lang.String relvarName)
Sets relvarName
|
void |
setRelvarName(ValueBuffer relvarName)
Sets relvarName
|
DmlAssignmentCommand[] |
smartUpdateCommand()
Gets a "smart" update command that brings the catalog from the state reflected in preUpdateState, to the current state.
|
dbUpdateCommand, dbUpdateCommand, dbUpdateCommand
dbAddCommand, dbAddCommand, dbAddCommand, dbAddCommandAll, dbAssertCommand, dbAssertCommand, dbAssertCommand, dbAssertCommandAll, dbDeleteCommand, dbDeleteCommand, dbDeleteCommand, dbDeleteCommandAll, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommandAll
public TupleConstraint()
public TupleConstraint(java.lang.String relvarName, long errorCode, java.lang.String constraintExpressionText, java.lang.String constraintMessageText)
relvarName
- -errorCode
- -constraintExpressionText
- -constraintMessageText
- -@GetterMethod(attributeDefs=@AttributeDef(attributeName="SP_EXPRESSION",requiresEscaping=true,typeName="STRING"), relvarNames="TUPLECONSTRAINT") public final java.lang.String getConstraintExpressionText()
@GetterMethod(attributeDefs=@AttributeDef(attributeName="CONSTRAINTMESSAGETEXT",requiresEscaping=true,typeName="STRING"), relvarNames="CONSTRAINTMESSAGETEXT") public final java.lang.String getConstraintMessageText()
@GetterMethod(attributeDefs=@AttributeDef(attributeName="ERRORCODE",requiresEscaping=false,typeName="LONG"), relvarNames={"TUPLECONSTRAINT","CONSTRAINTMESSAGETEXT"}) public final long getErrorCode()
public final UpdatableDBObject getPreUpdateState()
UpdatableDBObject
@GetterMethod(attributeDefs=@AttributeDef(attributeName="RELVARNAME",requiresEscaping=false,typeName="NAME"), relvarNames="TUPLECONSTRAINT") public final java.lang.String getRelvarName()
public final void setConstraintExpressionText(java.lang.String constraintExpressionText)
constraintExpressionText
- The constraintExpression to set.@AttributeDef(attributeName="SP_EXPRESSION", requiresEscaping=true, typeName="STRING") public final void setConstraintExpressionText(ValueBuffer constraintExpressionText)
constraintExpressionText
- The constraintExpression to set.public final void setConstraintMessageText(java.lang.String constraintMessageText)
constraintMessageText
- The messageText to set.@AttributeDef(attributeName="CONSTRAINTMESSAGETEXT", requiresEscaping=true, typeName="STRING") public final void setConstraintMessageText(ValueBuffer constraintMessageText)
constraintMessageText
- The constraintMessageText to set.public final void setErrorCode(long errorCode)
errorCode
- The errorCode to set.@AttributeDef(attributeName="ERRORCODE", requiresEscaping=false, typeName="LONG") public final void setErrorCode(ValueBuffer errorCode)
errorCode
- The errorCode to set.public final void setPreUpdateState()
UpdatableDBObject
public final void setRelvarName(java.lang.String relvarName)
relvarName
- The relvarName to set.@AttributeDef(attributeName="RELVARNAME", requiresEscaping=false, typeName="NAME") public final void setRelvarName(ValueBuffer relvarName)
relvarName
- The relvarName to set.public final DmlAssignmentCommand[] smartUpdateCommand() throws NoUpdatesException
NoUpdatesException
- If there are no differences between the pre-update and the current state