be.SIRAPRISE.client.jsba
Class Client

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.Client
All Implemented Interfaces:
ClientToDBObject, DBObject, DBObjectToClient, UpdatableDBObject

public final class Client
extends AbstractUpdatableDBObject
implements DBObjectToClient, ClientToDBObject

Author:
Erwin

Constructor Summary
Client()
          Creates the Client
Client(java.lang.String clientID, boolean trustAuthentications)
          Creates the Client
 
Method Summary
 java.lang.String getClientClientid()
          Gets the client for client
 java.lang.String getClientTrustauthentication()
          Gets the trustauthentication for client
 java.lang.String getID()
          Gets clientID
 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.
 boolean isTrustAuthentications()
          Gets trustAuthentications
 void setClientidFromDB(java.lang.String client)
          Sets client from the DB
 void setID(java.lang.String clientID)
          Sets clientID
 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 setTrustauthenticationFromDB(java.lang.String trustauthentication)
          Sets trustauthentication from the DB
 void setTrustAuthentications(boolean trustAuthentications)
          Sets trustAuthentications
 
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

Client

public Client()
Creates the Client


Client

public Client(java.lang.String clientID,
              boolean trustAuthentications)
Creates the Client

Parameters:
clientID -
trustAuthentications -
Method Detail

getClientClientid

public java.lang.String getClientClientid()
Description copied from interface: DBObjectToClient
Gets the client for client

Specified by:
getClientClientid in interface DBObjectToClient
Returns:
The client for client

getClientTrustauthentication

public java.lang.String getClientTrustauthentication()
Description copied from interface: DBObjectToClient
Gets the trustauthentication for client

Specified by:
getClientTrustauthentication in interface DBObjectToClient
Returns:
The trustauthentication for client

getID

public final java.lang.String getID()
Gets clientID

Returns:
clientID.

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.

isTrustAuthentications

public final boolean isTrustAuthentications()
Gets trustAuthentications

Returns:
trustAuthentications.

setClientidFromDB

public void setClientidFromDB(java.lang.String client)
Description copied from interface: ClientToDBObject
Sets client from the DB

Specified by:
setClientidFromDB in interface ClientToDBObject
Parameters:
client - The DB value for client

setID

public final void setID(java.lang.String clientID)
Sets clientID

Parameters:
clientID - The clientID to set.

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

setTrustauthenticationFromDB

public void setTrustauthenticationFromDB(java.lang.String trustauthentication)
Description copied from interface: ClientToDBObject
Sets trustauthentication from the DB

Specified by:
setTrustauthenticationFromDB in interface ClientToDBObject
Parameters:
trustauthentication - The DB value for trustauthentication

setTrustAuthentications

public final void setTrustAuthentications(boolean trustAuthentications)
Sets trustAuthentications

Parameters:
trustAuthentications - The trustAuthentications to set.