T - Type of objectpublic interface IRepository<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_SHOW_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T object)
Add a new Object at repository.
|
void |
flush()
Command to execute SQL statements that are in the buffer.
|
T |
get(IQuery query)
Get one object instance from repository using a query.
|
T |
get(T object)
Get one object instance from repository using a query with name "T.get",
where 'T' it's a generic type.
|
List<T> |
list()
Get a set of objects from repository using a query with name "T.list",
where 'T' it's a generic type.
|
List<T> |
list(IQuery query)
Get a set of objects from repository using a query.
|
<G> List<G> |
list(IQuery query,
Class<G> c)
Get a set of objects 'G' from repository using a query.
|
int |
remove(IQuery query)
Execute a query to remove one or many objects from repository.
|
void |
remove(T object)
Remove an existent object at repository.
|
int |
update(IQuery query)
Up date by query many objects.
|
void |
update(T object)
Up date the object value at repository.
|
static final String PROPERTY_SHOW_CONFIG
void add(T object)
object - void remove(T object)
object - int remove(IQuery query)
query - Query with parametersIllegalArgumentException - when the query is different from deletevoid update(T object)
object - int update(IQuery query)
query - Query with parametersIllegalArgumentException - when the query is different from update sentenceT get(T object)
object - Properties values of clause where to get the object.T get(IQuery query)
query - Query with parametersList<T> list()
List<T> list(IQuery query)
query - Query with parameters<G> List<G> list(IQuery query, Class<G> c)
query - Query with parametersclazz - Type of object from list of objectvoid flush()
Copyright © 2015 jkniv. All rights reserved.