public class ResultRowPersistence extends AbstractPersistence<ResultRow>
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.criteria.CriteriaBuilder |
criteriaBuilder |
protected javax.persistence.criteria.CriteriaQuery<Object> |
criteriaQuery |
protected org.gcube.common.core.utils.logging.GCUBELog |
logger |
protected javax.persistence.criteria.Root<ResultRow> |
rootFrom |
AND, entityManagerFactory| Constructor and Description |
|---|
ResultRowPersistence(javax.persistence.EntityManagerFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
int |
countItems() |
int |
deleteItemByIdField(String idField) |
List<ResultRow> |
executeCriteriaQuery(javax.persistence.criteria.CriteriaQuery<Object> criteriaQuery) |
List<ResultRow> |
executeTypedQuery(javax.persistence.criteria.CriteriaQuery<Object> cq,
int startIndex,
int offset) |
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder() |
ResultRow |
getItemByKey(Integer id) |
List<ResultRow> |
getList() |
List<ResultRow> |
getList(int startIndex,
int offset) |
List<ResultRow> |
getList(Map<String,String> filterMap,
int startIndex,
int offset) |
int |
removeAll() |
javax.persistence.criteria.Root<ResultRow> |
rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq) |
createNewManager, getEntityManagerFactory, insert, remove, updateprotected javax.persistence.criteria.CriteriaBuilder criteriaBuilder
protected javax.persistence.criteria.CriteriaQuery<Object> criteriaQuery
protected javax.persistence.criteria.Root<ResultRow> rootFrom
protected org.gcube.common.core.utils.logging.GCUBELog logger
public ResultRowPersistence(javax.persistence.EntityManagerFactory factory)
throws DatabaseServiceException
DatabaseServiceExceptionpublic javax.persistence.criteria.Root<ResultRow> rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
rootFrom in class AbstractPersistence<ResultRow>public List<ResultRow> getList() throws DatabaseServiceException
getList in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic int countItems()
throws DatabaseServiceException
countItems in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic List<ResultRow> executeCriteriaQuery(javax.persistence.criteria.CriteriaQuery<Object> criteriaQuery) throws DatabaseServiceException
executeCriteriaQuery in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic ResultRow getItemByKey(Integer id) throws DatabaseServiceException
getItemByKey in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
throws DatabaseServiceException
getCriteriaBuilder in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic int removeAll()
throws DatabaseServiceException
removeAll in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic List<ResultRow> getList(int startIndex, int offset) throws DatabaseServiceException
getList in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic List<ResultRow> getList(Map<String,String> filterMap, int startIndex, int offset) throws DatabaseServiceException
getList in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic List<ResultRow> executeTypedQuery(javax.persistence.criteria.CriteriaQuery<Object> cq, int startIndex, int offset) throws DatabaseServiceException
executeTypedQuery in class AbstractPersistence<ResultRow>DatabaseServiceExceptionpublic int deleteItemByIdField(String idField) throws DatabaseServiceException
deleteItemByIdField in class AbstractPersistence<ResultRow>DatabaseServiceExceptionCopyright © 2013. All Rights Reserved.