|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.dbxml.util.SimpleConfigurable
com.dbxml.db.common.filers.FSFiler
FSFiler allows you to use existing file systems withing dbXML.
| Constructor Summary | |
FSFiler()
|
|
| Method Summary | |
boolean |
close()
close closes the Filer |
boolean |
create()
create creates a new Filer and any associated resources for the new Filer, such as disk files, etc. |
boolean |
deleteRecord(Transaction tx,
Key key)
deleteRecord removes a Record from the Filer based on the specified Key. |
boolean |
drop()
drop instructs the Filerimplementation to remove itself from existence. |
boolean |
exists()
exists returns whether or not a physical representation of this Filer actually exists. |
void |
flush(Transaction tx)
flush forcefully flushes any unwritten buffers to disk. |
java.lang.String |
getName()
getName returns the name of this Filer. |
long |
getRecordCount(Transaction tx)
getRecordCount returns the number of Records in the Filer. |
RecordMetaData |
getRecordMetaData(Transaction tx,
Key key)
getRecordMetaData returns metadata about the Record identified by the provided Key. |
RecordSet |
getRecordSet(Transaction tx)
getRecordSet returns a RecordSet object for the current Filer. |
TransactionLog |
getTransactionLog()
getTransactionLog returns the Transaction Log for this Filer. |
boolean |
isOpened()
isOpened returns whether or not the Filer is opened for business. |
boolean |
open()
open opens the Filer |
Record |
readRecord(Transaction tx,
Key key)
readRecord returns a Record from the Filer based on the specified Key. |
void |
setCollection(Collection collection)
setCollection tells the Filer who its parent is. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
boolean |
writeRecord(Transaction tx,
Key key,
Value value)
writeRecord writes a Value to the Filer based on the specified Key. |
| Methods inherited from class com.dbxml.util.SimpleConfigurable |
getConfig |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.dbxml.util.Configurable |
getConfig |
| Constructor Detail |
public FSFiler()
| Method Detail |
public java.lang.String getName()
Filer
getName in interface Filerpublic void setCollection(Collection collection)
Filer
setCollection in interface Filercollection - The owner Collection
public void setConfig(Configuration config)
throws dbXMLException
Configurable
setConfig in interface ConfigurablesetConfig in class SimpleConfigurabledbXMLExceptionpublic boolean close()
Filer
close in interface Filerpublic boolean open()
Filer
open in interface Filerpublic boolean drop()
Filer
drop in interface Filerpublic boolean isOpened()
Filer
isOpened in interface Filerpublic boolean exists()
Filer
exists in interface Filerpublic boolean create()
Filer
create in interface Filerpublic void flush(Transaction tx)
Filer
flush in interface Filertx - The controlling Transaction
public RecordMetaData getRecordMetaData(Transaction tx,
Key key)
throws DBException
Filer
getRecordMetaData in interface Filertx - The controlling Transactionkey - The Record's Key
DBException
public Record readRecord(Transaction tx,
Key key)
throws DBException
Filer
readRecord in interface Filertx - The controlling Transactionkey - The Record's Key
DBException
public boolean writeRecord(Transaction tx,
Key key,
Value value)
throws DBException
Filer
writeRecord in interface Filertx - The controlling Transactionkey - The Record's Keyvalue - The Record's Value
DBException
public boolean deleteRecord(Transaction tx,
Key key)
throws DBException
Filer
deleteRecord in interface Filertx - The controlling Transactionkey - The Record's Key
DBException
public long getRecordCount(Transaction tx)
throws DBException
Filer
getRecordCount in interface Filertx - The controlling Transaction
DBException
public RecordSet getRecordSet(Transaction tx)
throws DBException
Filer
getRecordSet in interface Filertx - The controlling Transaction
DBExceptionpublic TransactionLog getTransactionLog()
Filer
getTransactionLog in interface Filer
|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||