All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.util.Database
java.lang.Object
|
+----com.bulletproof.util.Database
- public class Database
- extends Object
-
thisDatabaseIndex
- This virtual Database index number
-
Database()
- Create a new virtual temporary database
-
Database(String)
- Create a new virtual cachable database
-
add(byte[])
- Append the data to the database
-
add(char[], int, int)
- Append the data to the database
-
add(String)
- Append the data to the database
-
append(String)
- Append the data to the first record
-
clear()
-
-
clearCaches()
- Clear the cached databases
-
get()
- Get the data for the zero record.
-
get(int)
- Get the data for this record.
-
getBytes(int)
- Get the data for this record.
-
getChars(int)
- Get the data for this record.
-
remove(int)
-
-
set(int, byte[])
- Set the value of the selected element
-
set(int, String)
- Set the value of the selected element
-
set(String)
- Set the value of the 0 element
-
size()
-
thisDatabaseIndex
public int thisDatabaseIndex
- This virtual Database index number
Database
public Database()
- Create a new virtual temporary database
Database
public Database(String cacheLookup)
- Create a new virtual cachable database
- Parameters:
- cacheLookup - a unique 20 character string that will be used to
gain access to this Database when the VM is reloaded the next time.
clearCaches
public static void clearCaches()
- Clear the cached databases
getBytes
public synchronized byte[] getBytes(int index)
- Get the data for this record. This can be likened to getting the value for a particular
array index
getChars
public synchronized char[] getChars(int index)
- Get the data for this record. This can be likened to getting the value for a particular
array index
get
public synchronized String get(int index)
- Get the data for this record. This can be likened to getting the value for a particular
array index
get
public synchronized String get()
- Get the data for the zero record. This can be likened to getting the value for a particular
array index
add
public synchronized boolean add(byte data[])
- Append the data to the database
- Parameters:
- data - the data to append in the form of a record
add
public boolean add(char data[],
int offset,
int length)
- Append the data to the database
- Parameters:
- data - the data to append in the form of a record
- offset - the starting position to read from in the array
- length - the number of characters to write
add
public synchronized boolean add(String data)
- Append the data to the database
- Parameters:
- data - the data to append in the form of a record
append
public synchronized boolean append(String data)
- Append the data to the first record
- Parameters:
- data - the data to append in the form of a record
set
public synchronized boolean set(int index,
byte data[])
- Set the value of the selected element
- Parameters:
- data - the data to set for this record
set
public synchronized boolean set(int index,
String data)
- Set the value of the selected element
- Parameters:
- data - the data to set for this record
set
public synchronized boolean set(String data)
- Set the value of the 0 element
- Parameters:
- data - the data to set for this record
clear
public synchronized void clear()
remove
public synchronized void remove(int index)
size
public int size()
All Packages Class Hierarchy This Package Previous Next Index