be.SIRAPRISE.client.jsba
Class RecordAttribute

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.RecordAttribute
All Implemented Interfaces:
DBObject, DBObjectToRecordattribute, RecordattributeToDBObject, UpdatableDBObject

public final class RecordAttribute
extends AbstractUpdatableDBObject
implements DBObjectToRecordattribute, RecordattributeToDBObject

Author:
Erwin

Constructor Summary
RecordAttribute()
          Creates the RecordAttribute
RecordAttribute(java.lang.String relvarName, java.lang.String recordTypeName, int ordinal, java.lang.String attributeName)
          Creates the RecordAttribute
 
Method Summary
 java.lang.String getAttributeName()
          Gets attributeName
 int getOrdinal()
          Gets ordinal
 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 getRecordattributeAttributename()
          Gets the attributename for recordattribute
 java.lang.String getRecordattributeOrdinal()
          Gets the ordinal for recordattribute
 java.lang.String getRecordattributeRecordtypename()
          Gets the recordtypename for recordattribute
 java.lang.String getRecordattributeRelvarname()
          Gets the relvarname for recordattribute
 java.lang.String getRecordTypeName()
          Gets recordTypeName
 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 setOrdinal(int ordinal)
          Sets ordinal
 void setOrdinalFromDB(java.lang.String ordinal)
          Sets ordinal 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 setRecordTypeName(java.lang.String recordTypeName)
          Sets recordTypeName
 void setRecordtypenameFromDB(java.lang.String recordtypename)
          Sets recordtypename from the DB
 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

RecordAttribute

public RecordAttribute()
Creates the RecordAttribute


RecordAttribute

public RecordAttribute(java.lang.String relvarName,
                       java.lang.String recordTypeName,
                       int ordinal,
                       java.lang.String attributeName)
Creates the RecordAttribute

Parameters:
relvarName -
recordTypeName -
ordinal -
attributeName -
Method Detail

getAttributeName

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

Returns:
attributeName.

getOrdinal

public final int getOrdinal()
Gets ordinal

Returns:
ordinal.

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.

getRecordattributeAttributename

public java.lang.String getRecordattributeAttributename()
Description copied from interface: DBObjectToRecordattribute
Gets the attributename for recordattribute

Specified by:
getRecordattributeAttributename in interface DBObjectToRecordattribute
Returns:
The attributename for recordattribute

getRecordattributeOrdinal

public java.lang.String getRecordattributeOrdinal()
Description copied from interface: DBObjectToRecordattribute
Gets the ordinal for recordattribute

Specified by:
getRecordattributeOrdinal in interface DBObjectToRecordattribute
Returns:
The ordinal for recordattribute

getRecordattributeRecordtypename

public java.lang.String getRecordattributeRecordtypename()
Description copied from interface: DBObjectToRecordattribute
Gets the recordtypename for recordattribute

Specified by:
getRecordattributeRecordtypename in interface DBObjectToRecordattribute
Returns:
The recordtypename for recordattribute

getRecordattributeRelvarname

public java.lang.String getRecordattributeRelvarname()
Description copied from interface: DBObjectToRecordattribute
Gets the relvarname for recordattribute

Specified by:
getRecordattributeRelvarname in interface DBObjectToRecordattribute
Returns:
The relvarname for recordattribute

getRecordTypeName

public final java.lang.String getRecordTypeName()
Gets recordTypeName

Returns:
recordTypeName.

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

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

setOrdinal

public final void setOrdinal(int ordinal)
Sets ordinal

Parameters:
ordinal - The ordinal to set.

setOrdinalFromDB

public void setOrdinalFromDB(java.lang.String ordinal)
Description copied from interface: RecordattributeToDBObject
Sets ordinal from the DB

Specified by:
setOrdinalFromDB in interface RecordattributeToDBObject
Parameters:
ordinal - The DB value for ordinal

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

setRecordTypeName

public final void setRecordTypeName(java.lang.String recordTypeName)
Sets recordTypeName

Parameters:
recordTypeName - The recordTypeName to set.

setRecordtypenameFromDB

public void setRecordtypenameFromDB(java.lang.String recordtypename)
Description copied from interface: RecordattributeToDBObject
Sets recordtypename from the DB

Specified by:
setRecordtypenameFromDB in interface RecordattributeToDBObject
Parameters:
recordtypename - The DB value for recordtypename

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: RecordattributeToDBObject
Sets relvarname from the DB

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