|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.martiansoftware.trivialpersist.Store
The closest thing to a database provided by TrivialPersist. All Tables must be obtained from a Store; Records can then be created by or loaded from a Table.
Multiple Stores may exist; a singleton instance is available for convenience via the public field Store.SINGLETON.
Field Summary | |
static Store |
SINGLETON
Singleton instance for convenience |
Constructor Summary | |
Store()
Creates a new Store |
Method Summary | |
Table |
getTable(String tableName)
Obtains a reference to the specified table. |
void |
init(File base)
Initializes the Store to use the specified base directory. |
Iterator |
iterator()
Returns an Iterator over all Tables in this Store. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Store SINGLETON
Constructor Detail |
public Store()
Method Detail |
public void init(File base) throws TrivialPersistException
base
- the base directory for this Store
TrivialPersistException
- if any errors occur during
initializationpublic Table getTable(String tableName)
tableName
- the name of the table to obtain
public Iterator iterator()
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |