be.SIRAPRISE.client.jsba
Class KeyAttribute

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.KeyAttribute
All Implemented Interfaces:
DBObject, DBObjectToKeyattribute, KeyattributeToDBObject, UpdatableDBObject

public final class KeyAttribute
extends AbstractUpdatableDBObject
implements DBObjectToKeyattribute, KeyattributeToDBObject

Author:
Erwin

Constructor Summary
KeyAttribute()
          Creates the KeyAttribute
KeyAttribute(long errorCode, java.lang.String attributeName)
          Creates the KeyAttribute
 
Method Summary
 java.lang.String getAttributeName()
          Gets attributeName
 long getErrorCode()
          Gets keyID
 java.lang.String getKeyattributeAttributename()
          Gets the attributename for keyattribute
 java.lang.String getKeyattributeErrorcode()
          Gets the keyid for keyattribute
 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 setAttributeName(java.lang.String attributeName)
          Sets attributeName
 void setAttributenameFromDB(java.lang.String attributename)
          Sets attributename from the DB
 void setErrorCode(long errorCode)
          Sets keyID
 void setErrorcodeFromDB(java.lang.String errorCode)
          Sets keyid 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.
 
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

KeyAttribute

public KeyAttribute()
Creates the KeyAttribute


KeyAttribute

public KeyAttribute(long errorCode,
                    java.lang.String attributeName)
Creates the KeyAttribute

Parameters:
errorCode -
attributeName -
Method Detail

getAttributeName

public final java.lang.String getAttributeName()
Gets attributeName

Returns:
attributeName.

getKeyattributeAttributename

public java.lang.String getKeyattributeAttributename()
Description copied from interface: DBObjectToKeyattribute
Gets the attributename for keyattribute

Specified by:
getKeyattributeAttributename in interface DBObjectToKeyattribute
Returns:
The attributename for keyattribute

getKeyattributeErrorcode

public java.lang.String getKeyattributeErrorcode()
Description copied from interface: DBObjectToKeyattribute
Gets the keyid for keyattribute

Specified by:
getKeyattributeErrorcode in interface DBObjectToKeyattribute
Returns:
The keyid for keyattribute

getErrorCode

public final long getErrorCode()
Gets keyID

Returns:
keyID.

getPreUpdateState

public 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.

setAttributeName

public final void setAttributeName(java.lang.String attributeName)
Sets attributeName

Parameters:
attributeName - The attributeName to set.

setAttributenameFromDB

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

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

setErrorCode

public final void setErrorCode(long errorCode)
Sets keyID

Parameters:
errorCode - The keyID to set.

setErrorcodeFromDB

public void setErrorcodeFromDB(java.lang.String errorCode)
Description copied from interface: KeyattributeToDBObject
Sets keyid from the DB

Specified by:
setErrorcodeFromDB in interface KeyattributeToDBObject
Parameters:
errorCode - The DB value for keyid

setPreUpdateState

public 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