|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
JDbmInterface is intended to be the interface to jdbm, jgdbm, and berkeley btree Tue Dec 04 12:00:16 EST 2001, divita Initial Version
| Method Summary | |
java.util.ArrayList |
beginsWith(java.lang.String pKey)
Method beginsWith [TBD] |
java.util.ArrayList |
beginsWithWord(java.lang.String pString)
Method beginsWithWord [TBD] |
void |
close()
Method close closes the db. |
java.util.Enumeration |
elements()
Method elements |
int |
get(long pRowId)
Method get retrieves an int from the datastore using an int as the key This method returns a -1 if nothing was found. |
byte[] |
getBytes(int pRowId)
Method getBytes |
byte[] |
getBytes(java.lang.String pRowId)
Method getBytes |
int |
getInt(java.lang.String pKey)
Method getInt gets an int back from the datastore, using a string as the key This method will return -1 if nothing is found. |
int[] |
getInts(int pKey)
Method getInts retrieves an array of ints from the datastore using an int as the key |
int[] |
getInts(java.lang.String pKey)
Method getInts retrieves an array of ints from the datastore using a string as the key |
int[] |
getNonUniqInts(java.lang.String pKey)
Method getNonUniqInts retrieves an array of ints from the datastore using a string as the key |
long |
getNumberOfRecords()
Method getNumberOfRecords retrieves the number of records from the table that is keyed by a record id. |
long |
getNumberOfStringKeyedRows()
Method getNumberOfStringKeyedRows retrieves the number of rows in the table that contains strings as keys. |
java.lang.Object |
getObject(int pRowId)
Method get |
java.lang.Object |
getObject(java.lang.String pRowId)
Method getObject |
java.lang.String |
getString(int pRowId)
Method getString retrieves UTF-8 Strings from the datastore using an int as the key |
java.lang.String |
getString(java.lang.String pKey)
Method getString retrieves from the datastore using a String as the key |
java.lang.String[] |
getStrings(java.lang.String pKey)
Method getStrings retrieves an array of String from the datastore using a string as the key |
java.util.Iterator |
keyIterator()
Method keyIterator |
java.util.Enumeration |
keys()
Method keys |
void |
open(java.lang.String pFileName)
Method open opens the database |
void |
put(int pKey,
int pValue)
Method put |
void |
put(java.lang.String pKey,
int pValue)
Method put |
void |
put(java.lang.String pKey,
java.lang.String pValue)
Method put |
void |
putAString(java.lang.String pKey,
java.lang.String pValue)
Method putStrings add a value to the key|values[] set |
void |
putBytes(int pKey,
byte[] pValue)
Method putBytes |
void |
putBytes(java.lang.String pKey,
byte[] pValue)
Method putBytes |
void |
putInts(int pKey,
int[] pValue)
Method putInts |
void |
putInts(java.lang.String pKey,
int[] pValue)
Method putInts |
void |
putNonUniqInts(java.lang.String pKey,
int pValue)
Method putNonUniqInts |
void |
putObject(int pKey,
java.lang.Object pValue)
Method put |
void |
putObject(java.lang.String pKey,
java.lang.Object pValue)
Method putObject |
void |
putString(int pRowID,
java.lang.String pValue)
Method putString |
void |
putStrings(java.lang.String pKey,
java.lang.String[] pValue)
Method putStrings sets a key|values[] set. |
void |
reorganize()
Method reorganize reorganizes the db into an optimized or balanced btree and does a save as a side effect. |
void |
save()
Method save [TBD] writes out the current state to disk. |
| Method Detail |
public void open(java.lang.String pFileName)
throws java.lang.Exception
pFileName -
java.lang.Exception
public void close()
throws java.lang.Exception
java.lang.Exception
public void save()
throws java.lang.Exception
java.lang.Exception
public void reorganize()
throws java.lang.Exception
java.lang.Exception
public void putObject(java.lang.String pKey,
java.lang.Object pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putBytes(java.lang.String pKey,
byte[] pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putBytes(int pKey,
byte[] pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void put(java.lang.String pKey,
java.lang.String pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putObject(int pKey,
java.lang.Object pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void put(int pKey,
int pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putInts(java.lang.String pKey,
int[] pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putInts(int pKey,
int[] pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putNonUniqInts(java.lang.String pKey,
int pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putString(int pRowID,
java.lang.String pValue)
throws java.lang.Exception
pRowID - pValue -
java.lang.Exception
public void put(java.lang.String pKey,
int pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putAString(java.lang.String pKey,
java.lang.String pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public void putStrings(java.lang.String pKey,
java.lang.String[] pValue)
throws java.lang.Exception
pKey - pValue -
java.lang.Exception
public java.lang.Object getObject(java.lang.String pRowId)
throws java.lang.Exception
pRowId -
java.lang.Exception
public byte[] getBytes(java.lang.String pRowId)
throws java.lang.Exception
pRowId -
java.lang.Exception
public byte[] getBytes(int pRowId)
throws java.lang.Exception
pRowId -
java.lang.Exception
public int getInt(java.lang.String pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public java.lang.Object getObject(int pRowId)
throws java.lang.Exception
pRowId -
java.lang.Exception
public int[] getInts(java.lang.String pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public int[] getInts(int pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public int[] getNonUniqInts(java.lang.String pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public int get(long pRowId)
throws java.lang.Exception
pRowId - ( (long) needs to be distinguished from the other get(int) signature)
java.lang.Exception
public java.lang.String getString(int pRowId)
throws java.lang.Exception
pRowId -
java.lang.Exception
public java.lang.String getString(java.lang.String pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public java.lang.String[] getStrings(java.lang.String pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public java.util.Enumeration elements()
throws java.lang.Exception
java.lang.Exception
public java.util.Enumeration keys()
throws java.lang.Exception
java.lang.Exception
public java.util.Iterator keyIterator()
throws java.lang.Exception
java.lang.Exceptionpublic long getNumberOfRecords()
public long getNumberOfStringKeyedRows()
public java.util.ArrayList beginsWith(java.lang.String pKey)
throws java.lang.Exception
pKey -
java.lang.Exception
public java.util.ArrayList beginsWithWord(java.lang.String pString)
throws java.lang.Exception
pString -
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||