|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.loom.persistence.AbstractExtendedEntityManagerOperations
public abstract class AbstractExtendedEntityManagerOperations
Default implementation of the extended operations
| Constructor Summary | |
|---|---|
AbstractExtendedEntityManagerOperations(javax.persistence.EntityManager entityManager)
|
|
| Method Summary | ||
|---|---|---|
|
find(java.lang.Class<T> clazz,
java.lang.Object id)
Retrieves a single persistent instance from the database |
|
|
find(java.lang.String queryString,
java.lang.Object... params)
Retrieves a non-paged query. |
|
|
findAll(java.lang.Class<T> clazz)
Retrieves all records for a specified persistent class This method should be used with care, as it could instantiate huge amounts of data. |
|
|
findNamed(java.lang.String namedQuery,
java.lang.Object... params)
Retrieves a non-paged query This method should be used with care, as it could instantiate huge amounts of data. |
|
|
findNamedSingle(java.lang.String namedQuery,
java.lang.Object... params)
Execute a query that retrieves a single object. |
|
|
findSingle(java.lang.String queryString,
java.lang.Object... params)
|
|
javax.persistence.EntityManager |
getEntityManager()
|
|
|
query(PagedListCriteria criteria)
Retrieve a paged query. |
|
|
remove(java.lang.Class<T> clazz,
java.lang.Object id)
Removes a persistent instance |
|
int |
update(java.lang.String queryString,
java.lang.Object... params)
Execute a query that updates the database. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.loom.persistence.ExtendedEntityManagerOperations |
|---|
evict, getIdPropertyName, getVersionPropertyName, getVersionValue, setReadOnly |
| Constructor Detail |
|---|
public AbstractExtendedEntityManagerOperations(javax.persistence.EntityManager entityManager)
| Method Detail |
|---|
public <T> PagedListData<T> query(PagedListCriteria criteria)
ExtendedEntityManagerOperations
query in interface ExtendedEntityManagerOperationsT - The type of the result itemscriteria - The criteria of the paged query: page index, page size, sorting, etc.
public <T> java.util.List<T> find(java.lang.String queryString,
java.lang.Object... params)
ExtendedEntityManagerOperations
find in interface ExtendedEntityManagerOperationsT - The type of the result itemsqueryString - the query to executeparams - the parameters to be added to the query, in order
public <T> T findSingle(java.lang.String queryString,
java.lang.Object... params)
findSingle in interface ExtendedEntityManagerOperationsqueryString - the query to executeparams - the parameters to be added to the query, in order
public <T> T remove(java.lang.Class<T> clazz,
java.lang.Object id)
ExtendedEntityManagerOperations
remove in interface ExtendedEntityManagerOperationsT - The persistent classclazz - The persistent classid - the primary key to remove
public <T> java.util.List<T> findAll(java.lang.Class<T> clazz)
ExtendedEntityManagerOperations
findAll in interface ExtendedEntityManagerOperationsT - The persistent class to retrieveclazz - The persistent class to retrieve
public <T> T find(java.lang.Class<T> clazz,
java.lang.Object id)
ExtendedEntityManagerOperations
find in interface ExtendedEntityManagerOperationsT - The class to retrieveclazz - The class to retrieveid - The primary key to retrieve
public <T> java.util.List<T> findNamed(java.lang.String namedQuery,
java.lang.Object... params)
ExtendedEntityManagerOperations
findNamed in interface ExtendedEntityManagerOperationsT - The type of the result itemsnamedQuery - the named query to executeparams - the parameters to be added to the query, in order
public <T> T findNamedSingle(java.lang.String namedQuery,
java.lang.Object... params)
ExtendedEntityManagerOperations
findNamedSingle in interface ExtendedEntityManagerOperationsT - The type of the result itemsnamedQuery - the named query to executeparams - the parameters to be added to the query, in order
public int update(java.lang.String queryString,
java.lang.Object... params)
ExtendedEntityManagerOperations
update in interface ExtendedEntityManagerOperationsqueryString - the update/delete/insert query to executeparams - the parameters to be added to the query, in order
public javax.persistence.EntityManager getEntityManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||