|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.client.jsba.AbstractDBObject
be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
be.SIRAPRISE.client.jsba.DatabaseConstraint
public final class DatabaseConstraint
Constructor Summary | |
---|---|
DatabaseConstraint()
Creates the DatabaseConstraint |
|
DatabaseConstraint(long errorCode,
java.lang.String expression,
java.lang.String label,
java.lang.String messageText)
Creates the DatabaseConstraint |
Method Summary | |
---|---|
java.lang.String |
getConstraintmessagetextConstraintmessagetext()
Gets the constraintmessagetext for constraintmessagetext |
java.lang.String |
getConstraintmessagetextErrorcode()
Gets the errorcode for constraintmessagetext |
java.lang.String |
getDatabaseconstraintConstraintlabel()
Gets the constraintlabel for databaseconstraint |
java.lang.String |
getDatabaseconstraintErrorcode()
Gets the errorcode for databaseconstraint |
java.lang.String |
getDatabaseconstraintSp_expression()
Gets the constraintexpression for databaseconstraint |
long |
getErrorCode()
Gets errorCode |
java.lang.String |
getExpression()
Gets expression |
java.lang.String |
getLabel()
Gets label |
java.lang.String |
getMessageText()
Gets messageText |
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 |
setConstraintlabelFromDB(java.lang.String constraintlabel)
Sets constraintlabel from the DB |
void |
setConstraintmessagetextFromDB(java.lang.String constraintmessagetext)
Sets constraintmessagetext from the DB |
void |
setErrorCode(long errorCode)
Sets errorCode |
void |
setErrorcodeFromDB(java.lang.String errorcode)
Sets errorcode from the DB |
void |
setExpression(java.lang.String expression)
Sets expression |
void |
setLabel(java.lang.String label)
Sets label |
void |
setMessageText(java.lang.String messageText)
Sets messageText |
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 |
setSp_expressionFromDB(java.lang.String constraintexpression)
Sets constraintexpression from the DB |
DmlAssignmentCommand |
smartUpdateComand()
Gets a "smart" update command that brings the catalog from the state reflected in preUpdateState, to the current state. |
Methods inherited from class be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject |
---|
dbUpdateCommand, dbUpdateCommand |
Methods inherited from class be.SIRAPRISE.client.jsba.AbstractDBObject |
---|
dbAddCommand, dbAddCommand, dbAddCommand, dbAddCommandAll, dbAssertCommand, dbAssertCommand, dbAssertCommand, dbAssertCommandAll, dbDeleteCommand, dbDeleteCommand, dbDeleteCommand, dbDeleteCommandAll, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommandAll |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseConstraint()
public DatabaseConstraint(long errorCode, java.lang.String expression, java.lang.String label, java.lang.String messageText)
errorCode
- expression
- label
- messageText
- the corresponding messagetext to be generated upon violations of the constraint. null or a dash ("-") means "none".Method Detail |
---|
public java.lang.String getConstraintmessagetextConstraintmessagetext()
DBObjectToConstraintmessagetext
getConstraintmessagetextConstraintmessagetext
in interface DBObjectToConstraintmessagetext
public java.lang.String getConstraintmessagetextErrorcode()
DBObjectToConstraintmessagetext
getConstraintmessagetextErrorcode
in interface DBObjectToConstraintmessagetext
public java.lang.String getDatabaseconstraintConstraintlabel()
DBObjectToDatabaseconstraint
getDatabaseconstraintConstraintlabel
in interface DBObjectToDatabaseconstraint
public java.lang.String getDatabaseconstraintErrorcode()
DBObjectToDatabaseconstraint
getDatabaseconstraintErrorcode
in interface DBObjectToDatabaseconstraint
public java.lang.String getDatabaseconstraintSp_expression()
DBObjectToDatabaseconstraint
getDatabaseconstraintSp_expression
in interface DBObjectToDatabaseconstraint
public final long getErrorCode()
public final java.lang.String getExpression()
public final java.lang.String getLabel()
public final java.lang.String getMessageText()
public UpdatableDBObject getPreUpdateState()
UpdatableDBObject
getPreUpdateState
in interface UpdatableDBObject
public void setConstraintlabelFromDB(java.lang.String constraintlabel)
DatabaseconstraintToDBObject
setConstraintlabelFromDB
in interface DatabaseconstraintToDBObject
constraintlabel
- The DB value for constraintlabelpublic void setConstraintmessagetextFromDB(java.lang.String constraintmessagetext)
ConstraintmessagetextToDBObject
setConstraintmessagetextFromDB
in interface ConstraintmessagetextToDBObject
constraintmessagetext
- The DB value for constraintmessagetextpublic final void setErrorCode(long errorCode)
errorCode
- The errorCode to set.public void setErrorcodeFromDB(java.lang.String errorcode)
DatabaseconstraintToDBObject
setErrorcodeFromDB
in interface ConstraintmessagetextToDBObject
setErrorcodeFromDB
in interface DatabaseconstraintToDBObject
errorcode
- The DB value for errorcodepublic final void setExpression(java.lang.String expression)
expression
- The expression to set.public final void setLabel(java.lang.String label)
label
- The label to set.public final void setMessageText(java.lang.String messageText)
messageText
- The corresponding messagetext to be generated upon violations of the constraint. null or a dash ("-") means "none".public void setPreUpdateState()
UpdatableDBObject
setPreUpdateState
in interface UpdatableDBObject
public void setSp_expressionFromDB(java.lang.String constraintexpression)
DatabaseconstraintToDBObject
setSp_expressionFromDB
in interface DatabaseconstraintToDBObject
constraintexpression
- The DB value for constraintexpressionpublic DmlAssignmentCommand smartUpdateComand() throws NoUpdatesException
NoUpdatesException
- If there are no differences between the pre-update and the current state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |