|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universe.server.database.Database | +--universe.server.database.DatabaseDiskbased
This database type is completely disk based. All objects are stored on disk using the HashStore object.
Field Summary | |
private java.util.Hashtable |
currentGalaxies
|
private java.util.Hashtable |
currentPlanets
|
private java.util.Hashtable |
currentPlayers
|
private java.util.Hashtable |
currentSystems
|
private java.util.Hashtable |
galaxiesToBeDeleted
|
private java.util.Hashtable |
galaxiesToBeSaved
|
private com.equitysoft.hashstore.SyncDiskHashtable |
GalaxyDB
|
private com.equitysoft.hashstore.SyncDiskHashtable |
PlanetDB
|
private java.util.Hashtable |
planetsToBeDeleted
|
private java.util.Hashtable |
planetsToBeSaved
|
private com.equitysoft.hashstore.SyncDiskHashtable |
PlayerDB
|
private java.util.Hashtable |
playersToBeDeleted
|
private java.util.Hashtable |
playersToBeSaved
|
private com.equitysoft.hashstore.SyncDiskHashtable |
SystemDB
|
private java.util.Hashtable |
systemsToBeDeleted
|
private java.util.Hashtable |
systemsToBeSaved
|
Constructor Summary | |
DatabaseDiskbased(java.lang.String directory)
Constructor |
Method Summary | |
void |
delete(DBItem item)
The delete method is used to remove an item from the database. |
DBItem |
get(Index index)
The get method is used to retrieve specific data from the database. |
java.util.Enumeration |
query(Query query)
The query method is used to retrieve a set of data elements from the database. |
private Index |
save_item(DBItem item)
|
void |
save()
The save method is used to store the current state of the database in permanent storage. |
Index |
store(DBItem item)
The store method is used to change the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private com.equitysoft.hashstore.SyncDiskHashtable PlayerDB
private com.equitysoft.hashstore.SyncDiskHashtable GalaxyDB
private com.equitysoft.hashstore.SyncDiskHashtable SystemDB
private com.equitysoft.hashstore.SyncDiskHashtable PlanetDB
private java.util.Hashtable currentPlayers
private java.util.Hashtable playersToBeSaved
private java.util.Hashtable playersToBeDeleted
private java.util.Hashtable currentGalaxies
private java.util.Hashtable galaxiesToBeSaved
private java.util.Hashtable galaxiesToBeDeleted
private java.util.Hashtable currentSystems
private java.util.Hashtable systemsToBeSaved
private java.util.Hashtable systemsToBeDeleted
private java.util.Hashtable currentPlanets
private java.util.Hashtable planetsToBeSaved
private java.util.Hashtable planetsToBeDeleted
Constructor Detail |
public DatabaseDiskbased(java.lang.String directory)
directory
- Where to store the database files.Method Detail |
public Index store(DBItem item)
Database
store
in class Database
private Index save_item(DBItem item)
public DBItem get(Index index)
Database
get
in class Database
public java.util.Enumeration query(Query query)
Database
query
in class Database
public void delete(DBItem item)
Database
delete
in class Database
public void save()
Database
save
in class Database
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |