be.SIRAPRISE.client.jsba
Class StorageSpace

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

public final class StorageSpace
extends AbstractUpdatableDBObject
implements DBObjectToStoragespace, StoragespaceToDBObject

Author:
Erwin Smout

Constructor Summary
StorageSpace()
           
StorageSpace(java.lang.String fileName, int storageSpaceID, int pageCount, int extentsCount)
           
 
Method Summary
 int getExtentsCount()
          Gets extentsCount
 java.lang.String getFileName()
          Gets The file name
 int getPageCount()
          Gets The page count
 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 file name
 int getStorageSpaceID()
          Gets the ID
 java.lang.String getStoragespacePagecount()
          Gets The page count
 java.lang.String getStoragespaceStoragespaceid()
          Gets the ID
 void setExtentsCount(int extentsCount)
          Sets 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 x)
          Sets filename from the DB
 void setPageCount(int pageCount)
          Sets The page count
 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 x)
          Sets storagespaceid 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

StorageSpace

public StorageSpace()

StorageSpace

public StorageSpace(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()
Gets extentsCount

Returns:
extentsCount.

getFileName

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

Returns:
Returns the fileName.

getPageCount

public final int getPageCount()
Gets The page count

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 final java.lang.String getStoragespaceFilename()
Gets The file name

Specified by:
getStoragespaceFilename in interface DBObjectToStoragespace
Returns:
Returns the fileName.

getStorageSpaceID

public final int getStorageSpaceID()
Gets the ID

Returns:
the ID.

getStoragespacePagecount

public final java.lang.String getStoragespacePagecount()
Gets The page count

Specified by:
getStoragespacePagecount in interface DBObjectToStoragespace
Returns:
Returns the pageCount.

getStoragespaceStoragespaceid

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

Specified by:
getStoragespaceStoragespaceid in interface DBObjectToStoragespace
Returns:
the ID.

setExtentsCount

public final void setExtentsCount(int extentsCount)
Sets 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 void setFilenameFromDB(java.lang.String x)
Description copied from interface: StoragespaceToDBObject
Sets filename from the DB

Specified by:
setFilenameFromDB in interface StoragespaceToDBObject
Parameters:
x - The DB value for filename

setPageCount

public final void setPageCount(int pageCount)
Sets The page count

Parameters:
pageCount - The page count.

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 x)
Description copied from interface: StoragespaceToDBObject
Sets storagespaceid from the DB

Specified by:
setStoragespaceidFromDB in interface StoragespaceToDBObject
Parameters:
x - The DB value for storagespaceid