be.SIRAPRISE.client.jsba
Class RelvarAttribute

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.RelvarAttribute
All Implemented Interfaces:
DBObject, DBObjectToRelvarattribute, RelvarattributeToDBObject, UpdatableDBObject

public final class RelvarAttribute
extends AbstractUpdatableDBObject
implements DBObjectToRelvarattribute, RelvarattributeToDBObject

Author:
Erwin

Constructor Summary
RelvarAttribute()
          Creates the RelvarAttribute
RelvarAttribute(java.lang.String relvarName, java.lang.String attributeName)
          Creates the RelvarAttribute
 
Method Summary
 java.lang.String getAttributeName()
          Gets attributeName
 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 getRelvarattributeAttributename()
          Gets the attributename for relvarattribute
 java.lang.String getRelvarattributeRelvarname()
          Gets the relvarname for relvarattribute
 java.lang.String getRelvarName()
          Gets relvarName
 void setAttributeName(java.lang.String attributeName)
          Sets attributeName
 void setAttributenameFromDB(java.lang.String attributename)
          Sets attributename 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.
 void setRelvarName(java.lang.String relvarName)
          Sets relvarName
 void setRelvarnameFromDB(java.lang.String relvarname)
          Sets relvarname 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

RelvarAttribute

public RelvarAttribute()
Creates the RelvarAttribute


RelvarAttribute

public RelvarAttribute(java.lang.String relvarName,
                       java.lang.String attributeName)
Creates the RelvarAttribute

Parameters:
relvarName -
attributeName -
Method Detail

getAttributeName

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

Returns:
attributeName.

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.

getRelvarattributeAttributename

public java.lang.String getRelvarattributeAttributename()
Description copied from interface: DBObjectToRelvarattribute
Gets the attributename for relvarattribute

Specified by:
getRelvarattributeAttributename in interface DBObjectToRelvarattribute
Returns:
The attributename for relvarattribute

getRelvarattributeRelvarname

public java.lang.String getRelvarattributeRelvarname()
Description copied from interface: DBObjectToRelvarattribute
Gets the relvarname for relvarattribute

Specified by:
getRelvarattributeRelvarname in interface DBObjectToRelvarattribute
Returns:
The relvarname for relvarattribute

getRelvarName

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

Returns:
relvarName.

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: RelvarattributeToDBObject
Sets attributename from the DB

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

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

setRelvarName

public final void setRelvarName(java.lang.String relvarName)
Sets relvarName

Parameters:
relvarName - The relvarName to set.

setRelvarnameFromDB

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

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