|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataBase
This is the persistence interface for the Serenity code coverage and dependency functionality.
| Nested Class Summary | |
|---|---|
static class |
IDataBase.DataBaseManager
This class manages the databases if there are more than one. |
| 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,
int start,
int end)
Selects all the classes of a particular type starting from an index and going to an index. |
|
|
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. |
|
| Method Detail |
|---|
<E extends Composite<?,?>> E persist(E composite)
composite - the composite to persist
<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
<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
<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
<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
<E extends Composite<?,?>> java.util.List<E> find(java.lang.Class<E> klass,
int start,
int end)
E - the return type of the classklass - the type of class to selectstart - the beginning index to retrieve objects fromend - the end index for the list of objects
<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
boolean isClosed()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||