|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ikokoon.serenity.persistence.DataBase
com.ikokoon.serenity.persistence.DataBaseOdb
public class DataBaseOdb
This is the database class using Neodatis as the persistence tool.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ikokoon.serenity.persistence.IDataBase |
|---|
IDataBase.DataBaseManager |
| Method Summary | ||
|---|---|---|
void |
close()
Closes the database. |
|
|
find(java.lang.Class<E> klass)
Selects all the classes of a particular type. |
|
|
find(java.lang.Class<E> klass,
java.util.List<java.lang.Object> parameters)
Selects a class based on the combination of field values in the parameter list. |
|
|
find(java.lang.Class<E> klass,
java.lang.Long id)
Selects a composite based on the class type and the id of the class. |
|
|
find(java.lang.Class<E> klass,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Selects a list of objects based on the values in the objects and the class of the object. |
|
boolean |
isClosed()
Checks the open status of the database. |
|
|
persist(E composite)
Persists an object to a persistent store. |
|
|
remove(java.lang.Class<E> klass,
java.lang.Long id)
Removes an object from the database and returns the removed object as a convenience. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public <E extends Composite<?,?>> E find(java.lang.Class<E> klass,
java.lang.Long id)
E - the return type of the classklass - the type of class to selectid - the unique id of the class
public <E extends Composite<?,?>> E find(java.lang.Class<E> klass,
java.util.List<java.lang.Object> parameters)
E - the return type of the classklass - the type of class to selectparameters - the unique combination of field values to select the class with
public <E extends Composite<?,?>> java.util.List<E> find(java.lang.Class<E> klass)
E - the return type of the classklass - the type of class to select
public <E extends Composite<?,?>> java.util.List<E> find(java.lang.Class<E> klass,
java.util.Map<java.lang.String,java.lang.Object> parameters)
E - the return type of the classklass - the type of class to selectparameters - the parameters to do the selection with. These are the fields in the objects and the values
public <E extends Composite<?,?>> E persist(E composite)
composite - the composite to persist
public <E extends Composite<?,?>> E remove(java.lang.Class<E> klass,
java.lang.Long id)
E - the return type of the classklass - the type of class to selectid - the unique id of the class
public boolean isClosed()
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||