be.SIRAPRISE.client.jsba
Class DbmsFile

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.AbstractDBObject
      extended by be.SIRAPRISE.client.jsba.AbstractUpdatableDBObject
          extended by be.SIRAPRISE.client.jsba.DbmsFile
All Implemented Interfaces:
DbmsfileToDBObject, DBObject, DBObjectToDbmsfile, UpdatableDBObject

public final class DbmsFile
extends AbstractUpdatableDBObject
implements DBObjectToDbmsfile, DbmsfileToDBObject

Author:
Erwin Smout

Constructor Summary
DbmsFile()
           
DbmsFile(java.lang.String fileName, int pageSize)
           
 
Method Summary
 java.lang.String getDbmsfileFilename()
          Gets The file name
 java.lang.String getDbmsfilePagesize()
          Gets The page size
 java.lang.String getFileName()
          Gets The file name
 int getPageSize()
          Gets The page size
 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.
 void setFileName(java.lang.String fileName)
          Sets The file name
 void setFilenameFromDB(java.lang.String fileName)
          Sets The file name
 void setPageSize(int pageSize)
          Sets The page size
 void setPagesizeFromDB(java.lang.String pageSize)
          Sets The page size
 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.
 
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

DbmsFile

public DbmsFile()

DbmsFile

public DbmsFile(java.lang.String fileName,
                int pageSize)
Parameters:
fileName - The file name
pageSize - The page size
Method Detail

getDbmsfileFilename

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

Specified by:
getDbmsfileFilename in interface DBObjectToDbmsfile
Returns:
Returns the fileName.

getDbmsfilePagesize

public final java.lang.String getDbmsfilePagesize()
Gets The page size

Specified by:
getDbmsfilePagesize in interface DBObjectToDbmsfile
Returns:
Returns the pageSize.

getFileName

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

Returns:
Returns the fileName.

getPageSize

public final int getPageSize()
Gets The page size

Returns:
Returns the pageSize.

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.

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 DbmsfileToDBObject
Parameters:
fileName - The file name.

setPageSize

public final void setPageSize(int pageSize)
Sets The page size

Parameters:
pageSize - The page size.

setPagesizeFromDB

public final void setPagesizeFromDB(java.lang.String pageSize)
Sets The page size

Specified by:
setPagesizeFromDB in interface DbmsfileToDBObject
Parameters:
pageSize - The page size.

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