be.SIRAPRISE.client.jsba
Class TreeIndexSpace

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.TreeIndexSpace
All Implemented Interfaces:
DBObject, DBObjectToStoragespace, DBObjectToTreeindexspace, StoragespaceToDBObject, TreeindexspaceToDBObject, UpdatableDBObject

public final class TreeIndexSpace
extends AbstractUpdatableDBObject
implements DBObjectToTreeindexspace, DBObjectToStoragespace, TreeindexspaceToDBObject, StoragespaceToDBObject

Author:
Erwin Smout

Constructor Summary
TreeIndexSpace()
           
TreeIndexSpace(java.lang.String fileName, int storageSpaceID, int pageCount, int extentsCount)
           
 
Method Summary
 int getExtentsCount()
           
 java.lang.String getFileName()
          Gets The file name
 int getPageCount()
           
 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 getStoragespaceExtentscount()
          Gets the extentscount for storagespaceextents
 java.lang.String getStoragespaceFilename()
          Gets the filename for storagespace
 int getStorageSpaceID()
          Gets the ID
 java.lang.String getStoragespacePagecount()
          Gets the pagecount for storagespace
 java.lang.String getStoragespaceStoragespaceid()
          Gets the storagespaceid for storagespace
 java.lang.String getTreeindexspaceFilename()
          Gets The file name
 java.lang.String getTreeindexspaceStoragespaceid()
          Gets the ID
 void setExtentsCount(int extentsCount)
           
 void setExtentscountFromDB(java.lang.String extentscount)
          Sets extentscount from the DB
 void setFileName(java.lang.String fileName)
          Sets The file name
 void setFilenameFromDB(java.lang.String fileName)
          Sets The file name
 void setPageCount(int pageCount)
           
 void setPagecountFromDB(java.lang.String x)
          Sets pagecount 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 setStorageSpaceID(int storageSpaceID)
          Sets the ID
 void setStoragespaceidFromDB(java.lang.String storageSpaceID)
          Sets the ID
 
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

TreeIndexSpace

public TreeIndexSpace()

TreeIndexSpace

public TreeIndexSpace(java.lang.String fileName,
                      int storageSpaceID,
                      int pageCount,
                      int extentsCount)
Parameters:
fileName - The file name
storageSpaceID - The ID
pageCount - The page count
extentsCount - The extents count
Method Detail

getExtentsCount

public final int getExtentsCount()
Returns:
Returns the extentsCount.

getFileName

public final java.lang.String getFileName()
Gets The file name

Returns:
Returns the fileName.

getPageCount

public final int getPageCount()
Returns:
Returns the pageCount.

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.

getStoragespaceExtentscount

public java.lang.String getStoragespaceExtentscount()
Description copied from interface: DBObjectToStoragespace
Gets the extentscount for storagespaceextents

Specified by:
getStoragespaceExtentscount in interface DBObjectToStoragespace
Returns:
The extentscount for storagespaceextents

getStoragespaceFilename

public java.lang.String getStoragespaceFilename()
Description copied from interface: DBObjectToStoragespace
Gets the filename for storagespace

Specified by:
getStoragespaceFilename in interface DBObjectToStoragespace
Returns:
The filename for storagespace

getStorageSpaceID

public final int getStorageSpaceID()
Gets the ID

Returns:
the ID.

getStoragespacePagecount

public java.lang.String getStoragespacePagecount()
Description copied from interface: DBObjectToStoragespace
Gets the pagecount for storagespace

Specified by:
getStoragespacePagecount in interface DBObjectToStoragespace
Returns:
The pagecount for storagespace

getStoragespaceStoragespaceid

public java.lang.String getStoragespaceStoragespaceid()
Description copied from interface: DBObjectToStoragespace
Gets the storagespaceid for storagespace

Specified by:
getStoragespaceStoragespaceid in interface DBObjectToStoragespace
Returns:
The storagespaceid for storagespace

getTreeindexspaceFilename

public final java.lang.String getTreeindexspaceFilename()
Gets The file name

Specified by:
getTreeindexspaceFilename in interface DBObjectToTreeindexspace
Returns:
Returns the fileName.

getTreeindexspaceStoragespaceid

public final java.lang.String getTreeindexspaceStoragespaceid()
Gets the ID

Specified by:
getTreeindexspaceStoragespaceid in interface DBObjectToTreeindexspace
Returns:
the ID.

setExtentsCount

public final void setExtentsCount(int extentsCount)
Parameters:
extentsCount - The extentsCount to set.

setExtentscountFromDB

public void setExtentscountFromDB(java.lang.String extentscount)
Description copied from interface: StoragespaceToDBObject
Sets extentscount from the DB

Specified by:
setExtentscountFromDB in interface StoragespaceToDBObject
Parameters:
extentscount - The DB value for extentscount

setFileName

public final void setFileName(java.lang.String fileName)
Sets The file name

Parameters:
fileName - The file name.

setFilenameFromDB

public final void setFilenameFromDB(java.lang.String fileName)
Sets The file name

Specified by:
setFilenameFromDB in interface StoragespaceToDBObject
Specified by:
setFilenameFromDB in interface TreeindexspaceToDBObject
Parameters:
fileName - The file name.

setPageCount

public final void setPageCount(int pageCount)
Parameters:
pageCount - The pageCount to set.

setPagecountFromDB

public void setPagecountFromDB(java.lang.String x)
Description copied from interface: StoragespaceToDBObject
Sets pagecount from the DB

Specified by:
setPagecountFromDB in interface StoragespaceToDBObject
Parameters:
x - The DB value for pagecount

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

setStorageSpaceID

public final void setStorageSpaceID(int storageSpaceID)
Sets the ID

Parameters:
storageSpaceID - The ID to set.

setStoragespaceidFromDB

public final void setStoragespaceidFromDB(java.lang.String storageSpaceID)
Sets the ID

Specified by:
setStoragespaceidFromDB in interface StoragespaceToDBObject
Specified by:
setStoragespaceidFromDB in interface TreeindexspaceToDBObject
Parameters:
storageSpaceID - The ID to set.