be.SIRAPRISE.client.jsba
Class User

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.User
All Implemented Interfaces:
DBObject, DBObjectToUser, UpdatableDBObject, UserToDBObject

public final class User
extends AbstractUpdatableDBObject
implements DBObjectToUser, UserToDBObject

Author:
Erwin

Constructor Summary
User()
          Creates the User
User(java.lang.String userID)
          Creates the User
 
Method Summary
 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 getUserID()
          Gets userID
 java.lang.String getUserUserid()
          Gets the userid for user
 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 setUserID(java.lang.String userID)
          Sets userID
 void setUseridFromDB(java.lang.String userid)
          Sets userid 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

User

public User()
Creates the User


User

public User(java.lang.String userID)
Creates the User

Parameters:
userID -
Method Detail

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.

getUserID

public final java.lang.String getUserID()
Gets userID

Returns:
userID.

getUserUserid

public java.lang.String getUserUserid()
Description copied from interface: DBObjectToUser
Gets the userid for user

Specified by:
getUserUserid in interface DBObjectToUser
Returns:
The userid for user

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

setUserID

public final void setUserID(java.lang.String userID)
Sets userID

Parameters:
userID - The userID to set.

setUseridFromDB

public void setUseridFromDB(java.lang.String userid)
Description copied from interface: UserToDBObject
Sets userid from the DB

Specified by:
setUseridFromDB in interface UserToDBObject
Parameters:
userid - The DB value for userid