be.SIRAPRISE.client.jsba
Class VirtualRelvar

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.VirtualRelvar
All Implemented Interfaces:
DBObject, DBObjectToVirtualrelvar, UpdatableDBObject, VirtualrelvarToDBObject

public final class VirtualRelvar
extends AbstractUpdatableDBObject
implements DBObjectToVirtualrelvar, VirtualrelvarToDBObject

Author:
Erwin Smout

Constructor Summary
VirtualRelvar()
          Creates an empty VirtualRelvar
VirtualRelvar(java.lang.String relvarName, java.lang.String expression)
          Creates the VirtualRelvar
 
Method Summary
 java.lang.String getExpression()
          Gets The expression
 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 The constraint label
 java.lang.String getVirtualrelvarRelvarname()
          Gets the relvarname for virtualrelvar
 java.lang.String getVirtualrelvarSp_expression()
          Gets the sp_expression for virtualrelvar
 void setExpression(java.lang.String expression)
          Sets The expression
 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 The constraint label
 void setRelvarnameFromDB(java.lang.String relvarName)
          Sets relvarname from the DB
 void setSp_expressionFromDB(java.lang.String sp_expression)
          Sets sp_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

VirtualRelvar

public VirtualRelvar()
Creates an empty VirtualRelvar


VirtualRelvar

public VirtualRelvar(java.lang.String relvarName,
                     java.lang.String expression)
Creates the VirtualRelvar

Parameters:
relvarName - The constraint label
expression - The expression
Method Detail

getExpression

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

Returns:
The expression.

getPreUpdateState

public final 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 The constraint label

Returns:
The constraint label.

getVirtualrelvarRelvarname

public java.lang.String getVirtualrelvarRelvarname()
Description copied from interface: DBObjectToVirtualrelvar
Gets the relvarname for virtualrelvar

Specified by:
getVirtualrelvarRelvarname in interface DBObjectToVirtualrelvar
Returns:
The relvarname for virtualrelvar

getVirtualrelvarSp_expression

public java.lang.String getVirtualrelvarSp_expression()
Description copied from interface: DBObjectToVirtualrelvar
Gets the sp_expression for virtualrelvar

Specified by:
getVirtualrelvarSp_expression in interface DBObjectToVirtualrelvar
Returns:
The sp_expression for virtualrelvar

setExpression

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

Parameters:
expression - The expression to set.

setPreUpdateState

public final 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 The constraint label

Parameters:
relvarName - The relvarName to set.

setRelvarnameFromDB

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

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

setSp_expressionFromDB

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

Specified by:
setSp_expressionFromDB in interface VirtualrelvarToDBObject
Parameters:
sp_expression - The DB value for sp_expression