be.SIRAPRISE.client.jsba
Class JavaBackedType

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.JavaBackedType
All Implemented Interfaces:
DBObject, DBObjectToJavabackedtype, DBObjectToTypeproperties, JavabackedtypeToDBObject, TypepropertiesToDBObject, UpdatableDBObject

public final class JavaBackedType
extends AbstractUpdatableDBObject
implements JavabackedtypeToDBObject, TypepropertiesToDBObject, DBObjectToJavabackedtype, DBObjectToTypeproperties

Author:
Erwin

Constructor Summary
JavaBackedType()
          Creates the Type
JavaBackedType(java.lang.String typeName)
          Creates the Type
JavaBackedType(java.lang.String typeName, boolean ordered, boolean scalar, int minimumSize, int maximumSize)
          Creates the Type
 
Method Summary
 java.lang.String getJavabackedtypeTypename()
          Gets the typename for type
 int getMaximumSize()
          Gets maximumSize
 int getMinimumSize()
          Gets minimumSize
 java.lang.String getName()
          Gets typeName
 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 getTypepropertiesIsordered()
          Gets the isordered for typeproperties
 java.lang.String getTypepropertiesIsscalar()
          Gets the isscalar for typeproperties
 java.lang.String getTypepropertiesMaximumsize()
          Gets the maximumsize for typeproperties
 java.lang.String getTypepropertiesMinimumsize()
          Gets the minimumsize for typeproperties
 java.lang.String getTypepropertiesTypename()
          Gets the typename for typeproperties
 boolean isOrdered()
          Gets ordered
 boolean isScalar()
          Gets scalar
 void setIsorderedFromDB(java.lang.String isordered)
          Sets isordered from the DB
 void setIsscalarFromDB(java.lang.String isscalar)
          Sets isscalar from the DB
 void setMaximumSize(int maximumSize)
          Sets maximumSize
 void setMaximumsizeFromDB(java.lang.String maximumsize)
          Sets maximumsize from the DB
 void setMinimumSize(int minimumSize)
          Sets minimumSize
 void setMinimumsizeFromDB(java.lang.String minimumsize)
          Sets minimumsize from the DB
 void setName(java.lang.String typeName)
          Sets typeName
 void setOrdered(boolean ordered)
          Sets ordered
 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 setScalar(boolean scalar)
          Sets scalar
 void setTypenameFromDB(java.lang.String typename)
          Sets typename 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

JavaBackedType

public JavaBackedType()
Creates the Type


JavaBackedType

public JavaBackedType(java.lang.String typeName)
Creates the Type

Parameters:
typeName -

JavaBackedType

public JavaBackedType(java.lang.String typeName,
                      boolean ordered,
                      boolean scalar,
                      int minimumSize,
                      int maximumSize)
Creates the Type

Parameters:
typeName -
ordered -
scalar -
minimumSize -
maximumSize -
Method Detail

getJavabackedtypeTypename

public java.lang.String getJavabackedtypeTypename()
Description copied from interface: DBObjectToJavabackedtype
Gets the typename for type

Specified by:
getJavabackedtypeTypename in interface DBObjectToJavabackedtype
Returns:
The typename for type

getMaximumSize

public final int getMaximumSize()
Gets maximumSize

Returns:
maximumSize.

getMinimumSize

public final int getMinimumSize()
Gets minimumSize

Returns:
minimumSize.

getName

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

Returns:
typeName.

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.

getTypepropertiesIsordered

public java.lang.String getTypepropertiesIsordered()
Description copied from interface: DBObjectToTypeproperties
Gets the isordered for typeproperties

Specified by:
getTypepropertiesIsordered in interface DBObjectToTypeproperties
Returns:
The isordered for typeproperties

getTypepropertiesIsscalar

public java.lang.String getTypepropertiesIsscalar()
Description copied from interface: DBObjectToTypeproperties
Gets the isscalar for typeproperties

Specified by:
getTypepropertiesIsscalar in interface DBObjectToTypeproperties
Returns:
The isscalar for typeproperties

getTypepropertiesMaximumsize

public java.lang.String getTypepropertiesMaximumsize()
Description copied from interface: DBObjectToTypeproperties
Gets the maximumsize for typeproperties

Specified by:
getTypepropertiesMaximumsize in interface DBObjectToTypeproperties
Returns:
The maximumsize for typeproperties

getTypepropertiesMinimumsize

public java.lang.String getTypepropertiesMinimumsize()
Description copied from interface: DBObjectToTypeproperties
Gets the minimumsize for typeproperties

Specified by:
getTypepropertiesMinimumsize in interface DBObjectToTypeproperties
Returns:
The minimumsize for typeproperties

getTypepropertiesTypename

public java.lang.String getTypepropertiesTypename()
Description copied from interface: DBObjectToTypeproperties
Gets the typename for typeproperties

Specified by:
getTypepropertiesTypename in interface DBObjectToTypeproperties
Returns:
The typename for typeproperties

isOrdered

public final boolean isOrdered()
Gets ordered

Returns:
ordered.

isScalar

public final boolean isScalar()
Gets scalar

Returns:
scalar.

setIsorderedFromDB

public void setIsorderedFromDB(java.lang.String isordered)
Description copied from interface: TypepropertiesToDBObject
Sets isordered from the DB

Specified by:
setIsorderedFromDB in interface TypepropertiesToDBObject
Parameters:
isordered - The DB value for isordered

setIsscalarFromDB

public void setIsscalarFromDB(java.lang.String isscalar)
Description copied from interface: TypepropertiesToDBObject
Sets isscalar from the DB

Specified by:
setIsscalarFromDB in interface TypepropertiesToDBObject
Parameters:
isscalar - The DB value for isscalar

setMaximumSize

public final void setMaximumSize(int maximumSize)
Sets maximumSize

Parameters:
maximumSize - The maximumSize to set.

setMaximumsizeFromDB

public void setMaximumsizeFromDB(java.lang.String maximumsize)
Description copied from interface: TypepropertiesToDBObject
Sets maximumsize from the DB

Specified by:
setMaximumsizeFromDB in interface TypepropertiesToDBObject
Parameters:
maximumsize - The DB value for maximumsize

setMinimumSize

public final void setMinimumSize(int minimumSize)
Sets minimumSize

Parameters:
minimumSize - The minimumSize to set.

setMinimumsizeFromDB

public void setMinimumsizeFromDB(java.lang.String minimumsize)
Description copied from interface: TypepropertiesToDBObject
Sets minimumsize from the DB

Specified by:
setMinimumsizeFromDB in interface TypepropertiesToDBObject
Parameters:
minimumsize - The DB value for minimumsize

setName

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

Parameters:
typeName - The typeName to set.

setOrdered

public final void setOrdered(boolean ordered)
Sets ordered

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

setScalar

public final void setScalar(boolean scalar)
Sets scalar

Parameters:
scalar - The scalar to set.

setTypenameFromDB

public void setTypenameFromDB(java.lang.String typename)
Description copied from interface: JavabackedtypeToDBObject
Sets typename from the DB

Specified by:
setTypenameFromDB in interface JavabackedtypeToDBObject
Specified by:
setTypenameFromDB in interface TypepropertiesToDBObject
Parameters:
typename - The DB value for typename