be.SIRAPRISE.client.jsba
Class IndexComponent

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.IndexComponent
All Implemented Interfaces:
DBObject, DBObjectToIndexcomponent, IndexcomponentToDBObject, UpdatableDBObject

public final class IndexComponent
extends AbstractUpdatableDBObject
implements IndexcomponentToDBObject, DBObjectToIndexcomponent

Author:
Erwin

Constructor Summary
IndexComponent()
          Creates the IndexComponent
IndexComponent(java.lang.String relvarName, java.lang.String indexName, int ordinal, java.lang.String expression)
          Creates the IndexComponent
 
Method Summary
 java.lang.String getExpression()
          Gets expression
 java.lang.String getIndexcomponentIndexname()
          Gets the indexname for indexcomponent
 java.lang.String getIndexcomponentOrdinal()
          Gets the ordinal for indexcomponent
 java.lang.String getIndexcomponentRelvarname()
          Gets the relvarname for indexcomponent
 java.lang.String getIndexcomponentSp_expression()
          Gets the expression for indexcomponent
 java.lang.String getIndexName()
          Gets indexName
 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 getRelvarName()
          Gets relvarName
 void setExpression(java.lang.String expression)
          Sets expression
 void setIndexName(java.lang.String indexName)
          Sets indexName
 void setIndexnameFromDB(java.lang.String indexname)
          Sets indexname 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 setRelvarName(java.lang.String relvarName)
          Sets relvarName
 void setRelvarnameFromDB(java.lang.String relvarname)
          Sets relvarname from the DB
 void setSp_expressionFromDB(java.lang.String expression)
          Sets expression 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

IndexComponent

public IndexComponent()
Creates the IndexComponent


IndexComponent

public IndexComponent(java.lang.String relvarName,
                      java.lang.String indexName,
                      int ordinal,
                      java.lang.String expression)
Creates the IndexComponent

Parameters:
relvarName -
indexName -
ordinal -
expression -
Method Detail

getExpression

public final java.lang.String getExpression()
Gets expression

Returns:
expression.

getIndexcomponentSp_expression

public java.lang.String getIndexcomponentSp_expression()
Description copied from interface: DBObjectToIndexcomponent
Gets the expression for indexcomponent

Specified by:
getIndexcomponentSp_expression in interface DBObjectToIndexcomponent
Returns:
The expression for indexcomponent

getIndexcomponentIndexname

public java.lang.String getIndexcomponentIndexname()
Description copied from interface: DBObjectToIndexcomponent
Gets the indexname for indexcomponent

Specified by:
getIndexcomponentIndexname in interface DBObjectToIndexcomponent
Returns:
The indexname for indexcomponent

getIndexcomponentOrdinal

public java.lang.String getIndexcomponentOrdinal()
Description copied from interface: DBObjectToIndexcomponent
Gets the ordinal for indexcomponent

Specified by:
getIndexcomponentOrdinal in interface DBObjectToIndexcomponent
Returns:
The ordinal for indexcomponent

getIndexcomponentRelvarname

public java.lang.String getIndexcomponentRelvarname()
Description copied from interface: DBObjectToIndexcomponent
Gets the relvarname for indexcomponent

Specified by:
getIndexcomponentRelvarname in interface DBObjectToIndexcomponent
Returns:
The relvarname for indexcomponent

getIndexName

public final java.lang.String getIndexName()
Gets indexName

Returns:
indexName.

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.

getRelvarName

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

Returns:
relvarName.

setExpression

public final void setExpression(java.lang.String expression)
Sets expression

Parameters:
expression - The expression to set.

setSp_expressionFromDB

public void setSp_expressionFromDB(java.lang.String expression)
Description copied from interface: IndexcomponentToDBObject
Sets expression from the DB

Specified by:
setSp_expressionFromDB in interface IndexcomponentToDBObject
Parameters:
expression - The DB value for expression

setIndexName

public final void setIndexName(java.lang.String indexName)
Sets indexName

Parameters:
indexName - The indexName to set.

setIndexnameFromDB

public void setIndexnameFromDB(java.lang.String indexname)
Description copied from interface: IndexcomponentToDBObject
Sets indexname from the DB

Specified by:
setIndexnameFromDB in interface IndexcomponentToDBObject
Parameters:
indexname - The DB value for indexname

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: IndexcomponentToDBObject
Sets ordinal from the DB

Specified by:
setOrdinalFromDB in interface IndexcomponentToDBObject
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

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

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