|
||||||||||
| 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.DataBaseJpa
public class DataBaseJpa
This is the JPA database implementation. This class could be used in the future if so desired by a user of the Serenity plugin. The issue with the JPA database is the speed of persistence and where the database will be. This could be configurable of course, but then the user has to do some serious configuration which will require technical knowledge, and of course set up a database. Too much effort I thinks.
| 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)
IDataBase
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 boolean isClosed()
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 void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||