be.SIRAPRISE.client.jsba
Class NewAttributeDefaultValue

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.NewAttributeDefaultValue
All Implemented Interfaces:
DBObject, DBObjectToNewattributedefaultvalue, NewattributedefaultvalueToDBObject, UpdatableDBObject

public final class NewAttributeDefaultValue
extends AbstractUpdatableDBObject
implements DBObjectToNewattributedefaultvalue, NewattributedefaultvalueToDBObject

Author:
Erwin Smout

Constructor Summary
NewAttributeDefaultValue()
           
NewAttributeDefaultValue(java.lang.String relvarName, java.lang.String attributeName, java.lang.String expression)
           
 
Method Summary
 java.lang.String getAttributeName()
          Gets The [name of the] new attribute
 java.lang.String getExpression()
          Gets expression
 java.lang.String getNewattributedefaultvalueAttributename()
          Gets the attributename for newattributedefaultvalue
 java.lang.String getNewattributedefaultvalueRelvarname()
          Gets the relvarname for newattributedefaultvalue
 java.lang.String getNewattributedefaultvalueSp_expression()
          Gets the sp_expression for newattributedefaultvalue
 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 setAttributeName(java.lang.String attributeName)
          Sets The [name of the] new attribute
 void setAttributenameFromDB(java.lang.String attributename)
          Sets attributename from the DB
 void setExpression(java.lang.String expression)
          Sets 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 setRelvarName(java.lang.String relvarName)
          Sets The [name of the] relvar to which a new attribute is being added
 void setRelvarnameFromDB(java.lang.String relvarname)
          Sets relvarname from the DB
 void setSp_expressionFromDB(java.lang.String spExpression)
          Sets sp_expression from the DB
 
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

NewAttributeDefaultValue

public NewAttributeDefaultValue()

NewAttributeDefaultValue

public NewAttributeDefaultValue(java.lang.String relvarName,
                                java.lang.String attributeName,
                                java.lang.String expression)
Parameters:
relvarName - The [name of the] relvar to which a new attribute is being added
attributeName - The [name of the] new attribute
expression - The expression for computing the value to be registered for the new attribute of the given name, in existing tuples of the relvar with the given name
Method Detail

getAttributeName

public final java.lang.String getAttributeName()
Gets The [name of the] new attribute

Returns:
The [name of the] new attribute

getExpression

public final java.lang.String getExpression()
Gets expression

Returns:
expression.

getNewattributedefaultvalueAttributename

public java.lang.String getNewattributedefaultvalueAttributename()
Description copied from interface: DBObjectToNewattributedefaultvalue
Gets the attributename for newattributedefaultvalue

Specified by:
getNewattributedefaultvalueAttributename in interface DBObjectToNewattributedefaultvalue
Returns:
The attributename for newattributedefaultvalue

getNewattributedefaultvalueRelvarname

public java.lang.String getNewattributedefaultvalueRelvarname()
Description copied from interface: DBObjectToNewattributedefaultvalue
Gets the relvarname for newattributedefaultvalue

Specified by:
getNewattributedefaultvalueRelvarname in interface DBObjectToNewattributedefaultvalue
Returns:
The relvarname for newattributedefaultvalue

getNewattributedefaultvalueSp_expression

public java.lang.String getNewattributedefaultvalueSp_expression()
Description copied from interface: DBObjectToNewattributedefaultvalue
Gets the sp_expression for newattributedefaultvalue

Specified by:
getNewattributedefaultvalueSp_expression in interface DBObjectToNewattributedefaultvalue
Returns:
The sp_expression for newattributedefaultvalue

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.

getRelvarName

public final java.lang.String getRelvarName()
Gets relvarName

Returns:
relvarName.

setAttributeName

public final void setAttributeName(java.lang.String attributeName)
Sets The [name of the] new attribute

Parameters:
attributeName - The [name of the] new attribute

setAttributenameFromDB

public void setAttributenameFromDB(java.lang.String attributename)
Description copied from interface: NewattributedefaultvalueToDBObject
Sets attributename from the DB

Specified by:
setAttributenameFromDB in interface NewattributedefaultvalueToDBObject
Parameters:
attributename - The DB value for attributename

setExpression

public final void setExpression(java.lang.String expression)
Sets expression

Parameters:
expression - The expression to set.

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

setRelvarName

public final void setRelvarName(java.lang.String relvarName)
Sets The [name of the] relvar to which a new attribute is being added

Parameters:
relvarName - The [name of the] relvar to which a new attribute is being added

setRelvarnameFromDB

public void setRelvarnameFromDB(java.lang.String relvarname)
Description copied from interface: NewattributedefaultvalueToDBObject
Sets relvarname from the DB

Specified by:
setRelvarnameFromDB in interface NewattributedefaultvalueToDBObject
Parameters:
relvarname - The DB value for relvarname

setSp_expressionFromDB

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

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