net.sourceforge.neurosdbm.db
Class MDB
java.lang.Object
net.sourceforge.neurosdbm.db.MDB
- Direct Known Subclasses:
- AlbumsMDB, ArtistAlbumMDB, ArtistMDB, AudioMDB, FailedHiSiMDB, GenreMDB, IdedHiSiMDB, PlaylistMDB, RecordingsMDB, UnidedHiSiMDB
- abstract class MDB
- extends java.lang.Object
Constructor Summary |
protected |
MDB(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fileName
protected java.lang.String fileName
attributes
protected Word attributes
useDBname
protected boolean useDBname
status
protected Word status
numOfKeys
protected Word numOfKeys
numOfFieldsPerRecord
protected Word numOfFieldsPerRecord
recordStart
protected WordPointer recordStart
pXIM
protected WordPointer pXIM
db_ID
protected Word db_ID
pDB_Name
protected WordPointerToDisplayData pDB_Name
pParentDBFilename
protected WordPointerToWordString pParentDBFilename
pRules
protected Rule[] pRules
db_Name
protected DisplayData db_Name
parentDBFilename
protected WordString parentDBFilename
ximData
protected byte[] ximData
nullPtr
protected WordPointer nullPtr
keysToMDBRecordsMap
protected java.util.Map keysToMDBRecordsMap
keysToWordPointersMap
protected java.util.Map keysToWordPointersMap
nextKey
protected int nextKey
MDB
protected MDB(java.lang.String fileName)
parseMDBHeader
protected void parseMDBHeader(java.nio.ByteBuffer bytes)
write
void write()
throws java.io.IOException
- Throws:
java.io.IOException
write
protected void write(NIOFile file)
throws java.io.IOException,
DatabaseInternalCorruptionException
- Throws:
java.io.IOException
DatabaseInternalCorruptionException
numAccessKeys
protected int numAccessKeys()
numExtraInfo
protected int numExtraInfo()
generatePointers
void generatePointers()
computeHeaderPointers
void computeHeaderPointers()
- This function computes the pointers used in the header.
getMDBRecord
MDBRecord getMDBRecord(java.lang.Integer key)
- Returns the MDB record given the key from this object's MDB
database. The MDB record will have to be downcasted to a
specific MDB record type.
- Parameters:
key
- The key!
- Returns:
- The record!
getMDBRecord
MDBRecord getMDBRecord(int key)
getKey
int getKey(WordPointer ptr)
getPointer
WordPointer getPointer(int key)
deleteRecord
void deleteRecord(int key)
toString
public java.lang.String toString()
Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.