public abstract class AbstractDao<T> extends Object implements GenericDao<T,Long>
| Modifier and Type | Field and Description |
|---|---|
protected org.hibernate.Session |
session |
| Constructor and Description |
|---|
AbstractDao(org.hibernate.Session session) |
| Modifier and Type | Method and Description |
|---|---|
abstract List<T> |
find(DbQuery query) |
Integer |
getCount(DbQuery query) |
protected abstract String |
getDatasetProperty() |
protected org.hibernate.Criteria |
getDefaultCriteria() |
protected org.hibernate.Criteria |
getDefaultCriteria(String alias) |
protected abstract Class<T> |
getEntityClass() |
T |
getInstance(Long key,
DbQuery parameters) |
T |
getInstance(String key,
DbQuery parameters) |
boolean |
hasInstance(Long id,
DbQuery query,
Class<? extends T> clazz) |
boolean |
hasInstance(String id,
DbQuery query,
Class<? extends T> clazz) |
protected <I extends I18nEntity> |
i18n(Class<I> clazz,
org.hibernate.Criteria criteria,
DbQuery query) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllInstancesprotected abstract String getDatasetProperty()
public boolean hasInstance(String id, DbQuery query, Class<? extends T> clazz) throws DataAccessException
DataAccessExceptionpublic boolean hasInstance(Long id, DbQuery query, Class<? extends T> clazz)
hasInstance in interface GenericDao<T,Long>public T getInstance(String key, DbQuery parameters) throws DataAccessException
DataAccessExceptionpublic T getInstance(Long key, DbQuery parameters) throws DataAccessException
getInstance in interface GenericDao<T,Long>DataAccessExceptionpublic Integer getCount(DbQuery query) throws DataAccessException
getCount in interface GenericDao<T,Long>DataAccessExceptionprotected <I extends I18nEntity> org.hibernate.Criteria i18n(Class<I> clazz, org.hibernate.Criteria criteria, DbQuery query)
protected org.hibernate.Criteria getDefaultCriteria()
protected org.hibernate.Criteria getDefaultCriteria(String alias)
Copyright © 2015–2017 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.