@Relvars(relvarNames={"ASSIGNMENTCONSTRAINT","CONSTRAINTMESSAGETEXT"}) public final class AssignmentConstraint extends AbstractUpdatableDBObject
Constructor and Description |
---|
AssignmentConstraint()
Creates the AssignmentConstraint
|
AssignmentConstraint(java.lang.String constraintExpressionText,
long errorCode,
java.lang.String constraintLabel)
Creates the AssignmentConstraint
|
AssignmentConstraint(java.lang.String constraintExpressionText,
long errorCode,
java.lang.String constraintLabel,
java.lang.String constraintMessageText)
Creates the AssignmentConstraint
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstraintExpressionText()
Gets The constraint expression
|
java.lang.String |
getConstraintLabel()
Gets The constraint label
|
java.lang.String |
getConstraintMessageText()
Gets The corresponding constraint message text, if any
|
long |
getErrorCode() |
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.
|
void |
setConstraintExpressionText(java.lang.String constraintExpressionText)
Sets The constraint expression
|
void |
setConstraintExpressionText(ValueBuffer constraintExpressionText)
Sets The constraint expression
|
void |
setConstraintLabel(java.lang.String constraintLabel)
Sets The constraint label
|
void |
setConstraintLabel(ValueBuffer constraintLabel)
Sets The constraint label
|
void |
setConstraintMessageText(java.lang.String constraintMessageText)
Sets The corresponding constraint message text, if any
|
void |
setConstraintMessageText(ValueBuffer constraintMessageText)
Sets The corresponding constraint message text, if any
|
void |
setErrorCode(long errorCode) |
void |
setErrorCode(ValueBuffer 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.
|
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 AssignmentConstraint()
public AssignmentConstraint(java.lang.String constraintExpressionText, long errorCode, java.lang.String constraintLabel)
constraintExpressionText
- The constraint expressionerrorCode
- The page sizeconstraintLabel
- The constraint labelpublic AssignmentConstraint(java.lang.String constraintExpressionText, long errorCode, java.lang.String constraintLabel, java.lang.String constraintMessageText)
constraintExpressionText
- The file nameerrorCode
- The page sizeconstraintLabel
- The constraint labelconstraintMessageText
- The constraint message text to be displayed in the event of violations@GetterMethod(attributeDefs=@AttributeDef(attributeName="SP_EXPRESSION",requiresEscaping=true,typeName="STRING"), relvarNames="ASSIGNMENTCONSTRAINT") public final java.lang.String getConstraintExpressionText()
@GetterMethod(attributeDefs=@AttributeDef(attributeName="CONSTRAINTLABEL",requiresEscaping=true,typeName="STRING"), relvarNames="ASSIGNMENTCONSTRAINT") public final java.lang.String getConstraintLabel()
@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="ASSIGNMENTCONSTRAINT") public final long getErrorCode()
public final UpdatableDBObject getPreUpdateState()
UpdatableDBObject
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 setConstraintLabel(java.lang.String constraintLabel)
constraintLabel
- The constraintLabel to set.@AttributeDef(attributeName="CONSTRAINTLABEL", requiresEscaping=true, typeName="STRING") public final void setConstraintLabel(ValueBuffer constraintLabel)
constraintLabel
- The constraintLabel to set.public final void setConstraintMessageText(java.lang.String constraintMessageText)
constraintMessageText
- The constraintMessageText 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 DmlAssignmentCommand[] smartUpdateCommand() throws NoUpdatesException
NoUpdatesException
- If there are no differences between the pre-update and the current state