be.SIRAPRISE.client.jsba
Class Relvar

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.Relvar
All Implemented Interfaces:
DBObject, DBObjectToRelvar, RelvarToDBObject, UpdatableDBObject

public final class Relvar
extends AbstractUpdatableDBObject
implements DBObjectToRelvar, RelvarToDBObject

Author:
Erwin

Constructor Summary
Relvar()
          Creates the Relvar
Relvar(java.lang.String name, java.lang.String predicate)
          Creates the Relvar
 
Method Summary
 java.lang.String getName()
          Gets name
 java.lang.String getPredicate()
          Gets predicate
 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 getRelvarRelvarname()
          Gets the relvarname for relvar
 java.lang.String getRelvarRelvarpredicate()
          Gets the relvarpredicate for relvar
 void setName(java.lang.String name)
          Sets name
 void setPredicate(java.lang.String predicate)
          Sets predicate
 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 setRelvarnameFromDB(java.lang.String relvarname)
          Sets relvarname from the DB
 void setRelvarpredicateFromDB(java.lang.String relvarpredicate)
          Sets relvarpredicate 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

Relvar

public Relvar()
Creates the Relvar


Relvar

public Relvar(java.lang.String name,
              java.lang.String predicate)
Creates the Relvar

Parameters:
name -
predicate -
Method Detail

getName

public final java.lang.String getName()
Gets name

Returns:
name.

getPredicate

public final java.lang.String getPredicate()
Gets predicate

Returns:
predicate.

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.

getRelvarRelvarname

public java.lang.String getRelvarRelvarname()
Description copied from interface: DBObjectToRelvar
Gets the relvarname for relvar

Specified by:
getRelvarRelvarname in interface DBObjectToRelvar
Returns:
The relvarname for relvar

getRelvarRelvarpredicate

public java.lang.String getRelvarRelvarpredicate()
Description copied from interface: DBObjectToRelvar
Gets the relvarpredicate for relvar

Specified by:
getRelvarRelvarpredicate in interface DBObjectToRelvar
Returns:
The relvarpredicate for relvar

setName

public final void setName(java.lang.String name)
Sets name

Parameters:
name - The name to set.

setPredicate

public final void setPredicate(java.lang.String predicate)
Sets predicate

Parameters:
predicate - The predicate 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

setRelvarnameFromDB

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

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

setRelvarpredicateFromDB

public void setRelvarpredicateFromDB(java.lang.String relvarpredicate)
Description copied from interface: RelvarToDBObject
Sets relvarpredicate from the DB

Specified by:
setRelvarpredicateFromDB in interface RelvarToDBObject
Parameters:
relvarpredicate - The DB value for relvarpredicate