public final class DataBaseRam extends DataBase
IDataBase.DataBaseManager| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the database.
|
<E extends Composite<?,?>> |
find(Class<E> klass)
Selects all the classes of a particular type.
|
<E extends Composite<?,?>> |
find(Class<E> klass,
int start,
int end)
Selects all the classes of a particular type starting from an index and going to an index.
|
<E extends Composite<?,?>> |
find(Class<E> klass,
List<?> parameters)
Selects a class based on the combination of field values in the parameter list.
|
<E extends Composite<?,?>> |
find(Class<E> klass,
Long id)
Selects a composite based on the class type and the id of the class.
|
<E extends Composite<?,?>> |
find(Class<E> klass,
Map<String,?> 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.
|
<E extends Composite<?,?>> |
persist(E composite)
Persists an object to a persistent store.
|
<E extends Composite<?,?>> |
remove(Class<E> klass,
Long id)
Removes an object from the database and returns the removed object as a convenience.
|
public final <E extends Composite<?,?>> E persist(E composite)
E - the typecomposite - the composite to persistpublic final <E extends Composite<?,?>> E find(Class<E> klass, Long id)
E - the return type of the classklass - the type of class to selectid - the unique id of the classpublic final <E extends Composite<?,?>> E find(Class<E> klass, List<?> parameters)
E - the return type of the classklass - the type of class to selectparameters - the unique combination of field values to select the class withpublic final <E extends Composite<?,?>> List<E> find(Class<E> klass)
E - the return type of the classklass - the type of class to selectpublic <E extends Composite<?,?>> List<E> find(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 objectspublic final <E extends Composite<?,?>> E remove(Class<E> klass, Long id)
E - the return type of the classklass - the type of class to selectid - the unique id of the classpublic final boolean isClosed()
public final void close()
public <E extends Composite<?,?>> List<E> find(Class<E> klass, Map<String,?> parameters)
IDataBaseE - 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 valuesCopyright © 2016–2020. All rights reserved.