be.SIRAPRISE.client.jsba
Class DataSpace

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

public final class DataSpace
extends AbstractUpdatableDBObject
implements DBObjectToDataspace, DBObjectToStoragespace, DataspaceToDBObject, StoragespaceToDBObject

Author:
Erwin Smout

Constructor Summary
DataSpace()
           
DataSpace(java.lang.String fileName, int storageSpaceID, int pageCount, int gapCompressionThreshold, int maximumGaps)
           
DataSpace(java.lang.String fileName, int storageSpaceID, int pageCount, int gapCompressionThreshold, int maximumGaps, int extentsCount)
           
 
Method Summary
 java.lang.String getDataspaceFilename()
          Gets The file name
 java.lang.String getDataspaceGapcompressionthreshold()
          Gets The gap compression threshold
 java.lang.String getDataspaceMaximumgaps()
          Gets The gap compression threshold
 java.lang.String getDataspaceStoragespaceid()
          Gets the ID
 int getExtentsCount()
          Gets The extents count
 java.lang.String getFileName()
          Gets The file name
 int getGapCompressionThreshold()
          Gets The gap compression threshold
 int getMaximumGaps()
          Gets The maximum gap count
 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 getStoragespaceextentsExtentscount()
          Deprecated.  
 java.lang.String getStoragespaceextentsFilename()
          Deprecated.  
 java.lang.String getStoragespaceextentsStoragespaceid()
          Deprecated.  
 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 The extents count
 void setExtentscountFromDB(java.lang.String extentsCount)
          Sets The extents count
 void setFileName(java.lang.String fileName)
          Sets The file name
 void setFilenameFromDB(java.lang.String fileName)
          Sets The file name
 void setGapCompressionThreshold(int gapCompressionThreshold)
          Sets The gap compression threshold
 void setGapcompressionthresholdFromDB(java.lang.String gapCompressionThreshold)
          Sets The gap compression threshold
 void setMaximumGaps(int maximumGaps)
          Gets The maximum gap count
 void setMaximumgapsFromDB(java.lang.String maximumGaps)
          Sets The maximum gap count
 void setPageCount(int pageCount)
          Sets The page count
 void setPagecountFromDB(java.lang.String pageCount)
          Sets The page count
 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

DataSpace

public DataSpace()

DataSpace

public DataSpace(java.lang.String fileName,
                 int storageSpaceID,
                 int pageCount,
                 int gapCompressionThreshold,
                 int maximumGaps)
Parameters:
fileName - The file name
storageSpaceID - The ID
pageCount - The page count
gapCompressionThreshold - The gap compression threshold
maximumGaps - The maximum gap count

DataSpace

public DataSpace(java.lang.String fileName,
                 int storageSpaceID,
                 int pageCount,
                 int gapCompressionThreshold,
                 int maximumGaps,
                 int extentsCount)
Parameters:
fileName - The file name
storageSpaceID - The ID
pageCount - The page count
gapCompressionThreshold - The gap compression threshold
maximumGaps - The maximum gap count
extentsCount - The extents count
Method Detail

getDataspaceFilename

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

Specified by:
getDataspaceFilename in interface DBObjectToDataspace
Returns:
Returns the fileName.

getDataspaceGapcompressionthreshold

public final java.lang.String getDataspaceGapcompressionthreshold()
Gets The gap compression threshold

Specified by:
getDataspaceGapcompressionthreshold in interface DBObjectToDataspace
Returns:
The gap compression threshold

getDataspaceMaximumgaps

public final java.lang.String getDataspaceMaximumgaps()
Gets The gap compression threshold

Specified by:
getDataspaceMaximumgaps in interface DBObjectToDataspace
Returns:
The gap compression threshold

getDataspaceStoragespaceid

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

Specified by:
getDataspaceStoragespaceid in interface DBObjectToDataspace
Returns:
the ID.

getExtentsCount

public final int getExtentsCount()
Gets The extents count

Returns:
The extents count

getFileName

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

Returns:
Returns the fileName.

getGapCompressionThreshold

public final int getGapCompressionThreshold()
Gets The gap compression threshold

Returns:
The gap compression threshold

getMaximumGaps

public final int getMaximumGaps()
Gets The maximum gap count

Returns:
The maximum gap count

getPageCount

public final int getPageCount()
Gets The page count

Returns:
The page count

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

getStoragespaceextentsExtentscount

public final java.lang.String getStoragespaceextentsExtentscount()
Deprecated. 

Gets the extents count

Returns:
the extents count

getStoragespaceextentsFilename

public final java.lang.String getStoragespaceextentsFilename()
Deprecated. 

Gets The file name

Returns:
Returns the fileName.

getStoragespaceextentsStoragespaceid

public final java.lang.String getStoragespaceextentsStoragespaceid()
Deprecated. 

Gets the ID

Returns:
the ID.

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:
The page count

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 The extents count

Parameters:
extentsCount - The extents count

setExtentscountFromDB

public final void setExtentscountFromDB(java.lang.String extentsCount)
Sets The extents count

Specified by:
setExtentscountFromDB in interface StoragespaceToDBObject
Parameters:
extentsCount - The extents count

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 DataspaceToDBObject
Specified by:
setFilenameFromDB in interface StoragespaceToDBObject
Parameters:
fileName - The file name.

setGapCompressionThreshold

public final void setGapCompressionThreshold(int gapCompressionThreshold)
Sets The gap compression threshold

Parameters:
gapCompressionThreshold - The gap compression threshold

setGapcompressionthresholdFromDB

public final void setGapcompressionthresholdFromDB(java.lang.String gapCompressionThreshold)
Sets The gap compression threshold

Specified by:
setGapcompressionthresholdFromDB in interface DataspaceToDBObject
Parameters:
gapCompressionThreshold - The gap compression threshold

setMaximumGaps

public final void setMaximumGaps(int maximumGaps)
Gets The maximum gap count

Parameters:
maximumGaps - The maximum gap count.

setMaximumgapsFromDB

public final void setMaximumgapsFromDB(java.lang.String maximumGaps)
Sets The maximum gap count

Specified by:
setMaximumgapsFromDB in interface DataspaceToDBObject
Parameters:
maximumGaps - The maximum gap count.

setPageCount

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

Parameters:
pageCount - The page count

setPagecountFromDB

public final void setPagecountFromDB(java.lang.String pageCount)
Sets The page count

Specified by:
setPagecountFromDB in interface StoragespaceToDBObject
Parameters:
pageCount - The page count

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 DataspaceToDBObject
Specified by:
setStoragespaceidFromDB in interface StoragespaceToDBObject
Parameters:
storageSpaceID - The ID to set.