be.SIRAPRISE.client.jsba
Class AssignmentConstraint

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.AssignmentConstraint
All Implemented Interfaces:
AssignmentconstraintToDBObject, ConstraintmessagetextToDBObject, DBObject, DBObjectToAssignmentconstraint, DBObjectToConstraintmessagetext, UpdatableDBObject

public final class AssignmentConstraint
extends AbstractUpdatableDBObject
implements DBObjectToAssignmentconstraint, AssignmentconstraintToDBObject, DBObjectToConstraintmessagetext, ConstraintmessagetextToDBObject

Author:
Erwin Smout

Constructor Summary
AssignmentConstraint()
          Creates the AssignmentConstraint
AssignmentConstraint(java.lang.String constraintExpression, long errorCode, java.lang.String constraintLabel)
          Creates the AssignmentConstraint
AssignmentConstraint(java.lang.String constraintExpression, long errorCode, java.lang.String constraintLabel, java.lang.String constraintMessageText)
          Creates the AssignmentConstraint
 
Method Summary
 java.lang.String getAssignmentconstraintConstraintlabel()
          Gets the constraintlabel for assignmentconstraint
 java.lang.String getAssignmentconstraintErrorcode()
          Gets the errorcode for assignmentconstraint
 java.lang.String getAssignmentconstraintSp_expression()
          Gets the sp_expression for assignmentconstraint
 java.lang.String getConstraintExpression()
          Gets The constraint expression
 java.lang.String getConstraintLabel()
          Gets The constraint label
 java.lang.String getConstraintMessageText()
          Gets The corresponding constraint message text, if any
 java.lang.String getConstraintmessagetextConstraintmessagetext()
          Gets the constraintmessagetext for constraintmessagetext
 java.lang.String getConstraintmessagetextErrorcode()
          Gets the errorcode for constraintmessagetext
 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 setConstraintExpression(java.lang.String constraintExpression)
          Sets The constraint expression
 void setConstraintLabel(java.lang.String constraintLabel)
          Sets The constraint label
 void setConstraintlabelFromDB(java.lang.String constraintlabel)
          Sets constraintlabel from the DB
 void setConstraintMessageText(java.lang.String constraintMessageText)
          Sets The corresponding constraint message text, if any
 void setConstraintmessagetextFromDB(java.lang.String constraintmessagetext)
          Sets constraintmessagetext from the DB
 void setErrorCode(long errorCode)
           
 void setErrorcodeFromDB(java.lang.String errorcode)
          Sets errorcode from the DB
 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 sp_expression)
          Sets sp_expression from the DB
 DmlAssignmentCommand[] smartUpdateCommand()
          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

AssignmentConstraint

public AssignmentConstraint()
Creates the AssignmentConstraint


AssignmentConstraint

public AssignmentConstraint(java.lang.String constraintExpression,
                            long errorCode,
                            java.lang.String constraintLabel)
Creates the AssignmentConstraint

Parameters:
constraintExpression - The constraint expression
errorCode - The page size
constraintLabel - The constraint label

AssignmentConstraint

public AssignmentConstraint(java.lang.String constraintExpression,
                            long errorCode,
                            java.lang.String constraintLabel,
                            java.lang.String constraintMessageText)
Creates the AssignmentConstraint

Parameters:
constraintExpression - The file name
errorCode - The page size
constraintLabel - The constraint label
constraintMessageText - The constraint message text to be displayed in the event of violations
Method Detail

getAssignmentconstraintConstraintlabel

public java.lang.String getAssignmentconstraintConstraintlabel()
Description copied from interface: DBObjectToAssignmentconstraint
Gets the constraintlabel for assignmentconstraint

Specified by:
getAssignmentconstraintConstraintlabel in interface DBObjectToAssignmentconstraint
Returns:
The constraintlabel for assignmentconstraint

getAssignmentconstraintErrorcode

public java.lang.String getAssignmentconstraintErrorcode()
Description copied from interface: DBObjectToAssignmentconstraint
Gets the errorcode for assignmentconstraint

Specified by:
getAssignmentconstraintErrorcode in interface DBObjectToAssignmentconstraint
Returns:
The errorcode for assignmentconstraint

getAssignmentconstraintSp_expression

public java.lang.String getAssignmentconstraintSp_expression()
Description copied from interface: DBObjectToAssignmentconstraint
Gets the sp_expression for assignmentconstraint

Specified by:
getAssignmentconstraintSp_expression in interface DBObjectToAssignmentconstraint
Returns:
The sp_expression for assignmentconstraint

getConstraintExpression

public final java.lang.String getConstraintExpression()
Gets The constraint expression

Returns:
The constraint expression.

getConstraintLabel

public final java.lang.String getConstraintLabel()
Gets The constraint label

Returns:
The constraint label.

getConstraintMessageText

public final java.lang.String getConstraintMessageText()
Gets The corresponding constraint message text, if any

Returns:
The corresponding constraint message text, if any

getConstraintmessagetextConstraintmessagetext

public java.lang.String getConstraintmessagetextConstraintmessagetext()
Description copied from interface: DBObjectToConstraintmessagetext
Gets the constraintmessagetext for constraintmessagetext

Specified by:
getConstraintmessagetextConstraintmessagetext in interface DBObjectToConstraintmessagetext
Returns:
The constraintmessagetext for constraintmessagetext

getConstraintmessagetextErrorcode

public java.lang.String getConstraintmessagetextErrorcode()
Description copied from interface: DBObjectToConstraintmessagetext
Gets the errorcode for constraintmessagetext

Specified by:
getConstraintmessagetextErrorcode in interface DBObjectToConstraintmessagetext
Returns:
The errorcode for constraintmessagetext

getErrorCode

public final long getErrorCode()
Returns:
Returns the errorCode.

getPreUpdateState

public final UpdatableDBObject getPreUpdateState()
Description copied from interface: UpdatableDBObject
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.

Specified by:
getPreUpdateState in interface UpdatableDBObject
Returns:
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.

setConstraintExpression

public final void setConstraintExpression(java.lang.String constraintExpression)
Sets The constraint expression

Parameters:
constraintExpression - The constraintExpression to set.

setConstraintLabel

public final void setConstraintLabel(java.lang.String constraintLabel)
Sets The constraint label

Parameters:
constraintLabel - The constraintLabel to set.

setConstraintlabelFromDB

public void setConstraintlabelFromDB(java.lang.String constraintlabel)
Description copied from interface: AssignmentconstraintToDBObject
Sets constraintlabel from the DB

Specified by:
setConstraintlabelFromDB in interface AssignmentconstraintToDBObject
Parameters:
constraintlabel - The DB value for constraintlabel

setConstraintMessageText

public final void setConstraintMessageText(java.lang.String constraintMessageText)
Sets The corresponding constraint message text, if any

Parameters:
constraintMessageText - The constraintMessageText to set.

setConstraintmessagetextFromDB

public void setConstraintmessagetextFromDB(java.lang.String constraintmessagetext)
Description copied from interface: ConstraintmessagetextToDBObject
Sets constraintmessagetext from the DB

Specified by:
setConstraintmessagetextFromDB in interface ConstraintmessagetextToDBObject
Parameters:
constraintmessagetext - The DB value for constraintmessagetext

setErrorCode

public final void setErrorCode(long errorCode)
Parameters:
errorCode - The errorCode to set.

setErrorcodeFromDB

public void setErrorcodeFromDB(java.lang.String errorcode)
Description copied from interface: AssignmentconstraintToDBObject
Sets errorcode from the DB

Specified by:
setErrorcodeFromDB in interface AssignmentconstraintToDBObject
Specified by:
setErrorcodeFromDB in interface ConstraintmessagetextToDBObject
Parameters:
errorcode - The DB value for errorcode

setPreUpdateState

public final void setPreUpdateState()
Description copied from interface: UpdatableDBObject
This method is called by the J/R bridging engine after an object has been setup from some tuple retrieved from the database. The method must cause the object to save a copy (/clone) of all the fields that are pertinent to the database. This copy will be retrieved by the J/R bridging engine using the getPreUpdateState() method call, and will subsequently be used by the J/R bridging engine to determine which fields have changed value, and thus to determine which attributes need to be updated in the database.

Specified by:
setPreUpdateState in interface UpdatableDBObject

setSp_expressionFromDB

public void setSp_expressionFromDB(java.lang.String sp_expression)
Description copied from interface: AssignmentconstraintToDBObject
Sets sp_expression from the DB

Specified by:
setSp_expressionFromDB in interface AssignmentconstraintToDBObject
Parameters:
sp_expression - The DB value for sp_expression

smartUpdateCommand

public DmlAssignmentCommand[] smartUpdateCommand()
                                          throws NoUpdatesException
Gets a "smart" update command that brings the catalog from the state reflected in preUpdateState, to the current state. The "smart" update command consists of :

Returns:
a "smart" update command that brings the catalog from the state reflected in preUpdateState, to the current state.
Throws:
NoUpdatesException - If there are no differences between the pre-update and the current state