be.SIRAPRISE.client.jsba
Class HashingIndexSpace

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

public final class HashingIndexSpace
extends AbstractUpdatableDBObject
implements DBObjectToHashingindexspace, DBObjectToStoragespace, HashingindexspaceToDBObject, StoragespaceToDBObject

Author:
Erwin Smout

Constructor Summary
HashingIndexSpace()
           
HashingIndexSpace(java.lang.String fileName, int storageSpaceID, int pageCount)
           
HashingIndexSpace(java.lang.String fileName, int storageSpaceID, int pageCount, int extentsCount)
           
 
Method Summary
 int getExtentsCount()
          Gets The extents count
 java.lang.String getFileName()
          Gets The file name
 java.lang.String getHashingindexspaceFilename()
          Gets The file name
 java.lang.String getHashingindexspaceStoragespaceid()
          Gets the ID
 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()
          Gets the extents count
 java.lang.String getStoragespaceextentsFilename()
          Gets The file name
 java.lang.String getStoragespaceextentsStoragespaceid()
          Gets the ID
 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 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

HashingIndexSpace

public HashingIndexSpace()

HashingIndexSpace

public HashingIndexSpace(java.lang.String fileName,
                         int storageSpaceID,
                         int pageCount)
Parameters:
fileName - The file name
storageSpaceID - The ID
pageCount - The page count

HashingIndexSpace

public HashingIndexSpace(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 The extents count

Returns:
The extents count

getFileName

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

Returns:
Returns the fileName.

getHashingindexspaceStoragespaceid

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

Specified by:
getHashingindexspaceStoragespaceid in interface DBObjectToHashingindexspace
Returns:
the ID.

getHashingindexspaceFilename

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

Specified by:
getHashingindexspaceFilename in interface DBObjectToHashingindexspace
Returns:
Returns the fileName.

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()
Gets the extents count

Returns:
the extents count

getStoragespaceextentsFilename

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

Returns:
Returns the fileName.

getStoragespaceextentsStoragespaceid

public final java.lang.String getStoragespaceextentsStoragespaceid()
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 HashingindexspaceToDBObject
Specified by:
setFilenameFromDB in interface StoragespaceToDBObject
Parameters:
fileName - The file name.

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