public abstract class ParameterRepository<E extends org.n52.series.db.beans.DescribableEntity,O extends org.n52.io.response.ParameterOutput> extends SessionAwareRepository implements SearchableRepository, OutputAssembler<O>
dbQueryFactory, serviceEntity| Constructor and Description |
|---|
ParameterRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.n52.series.spi.search.SearchResult> |
convertToSearchResults(List<E> found,
DbQuery query) |
protected List<O> |
createCondensed(Collection<E> allInstances,
DbQuery query,
org.hibernate.Session session) |
protected O |
createCondensed(E entity,
DbQuery query,
org.hibernate.Session session) |
protected abstract AbstractDao<E> |
createDao(org.hibernate.Session session) |
protected abstract org.n52.series.spi.search.SearchResult |
createEmptySearchResult(String id,
String label,
String baseUrl) |
protected List<O> |
createExpanded(Collection<E> allInstances,
DbQuery query,
org.hibernate.Session session) |
protected abstract O |
createExpanded(E instance,
DbQuery query,
org.hibernate.Session session) |
protected abstract SearchableDao<E> |
createSearchableDao(org.hibernate.Session session) |
boolean |
exists(String id,
DbQuery query) |
List<O> |
getAllCondensed(DbQuery query) |
List<O> |
getAllCondensed(DbQuery query,
org.hibernate.Session session) |
List<O> |
getAllExpanded(DbQuery query) |
List<O> |
getAllExpanded(DbQuery query,
org.hibernate.Session session) |
protected List<E> |
getAllInstances(DbQuery parameters,
org.hibernate.Session session) |
protected E |
getEntity(Long id,
AbstractDao<E> dao,
DbQuery query) |
protected E |
getInstance(Long id,
DbQuery query,
org.hibernate.Session session) |
O |
getInstance(String id,
DbQuery query) |
O |
getInstance(String id,
DbQuery query,
org.hibernate.Session session) |
protected abstract O |
prepareEmptyParameterOutput() |
Collection<org.n52.series.spi.search.SearchResult> |
searchFor(org.n52.io.request.IoParameters parameters) |
createCondensed, createDatasetParameters, createTimeseriesList, createTimeseriesOutput, getCondensedCategory, getCondensedExtendedCategory, getCondensedExtendedFeature, getCondensedExtendedOffering, getCondensedExtendedPhenomenon, getCondensedExtendedProcedure, getCondensedExtendedService, getCondensedFeature, getCondensedOffering, getCondensedPhenomenon, getCondensedProcedure, getCondensedService, getCrsUtils, getDbQuery, getDbQueryFactory, getGeometry, getPlatformId, getServiceEntity, getServiceEntity, getSession, getSessionStore, parseId, returnSession, setDbQueryFactory, setServiceEntity, setSessionStoreprotected abstract O prepareEmptyParameterOutput()
protected abstract org.n52.series.spi.search.SearchResult createEmptySearchResult(String id, String label, String baseUrl)
protected abstract AbstractDao<E> createDao(org.hibernate.Session session)
protected abstract SearchableDao<E> createSearchableDao(org.hibernate.Session session)
public boolean exists(String id, DbQuery query) throws DataAccessException
exists in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionpublic List<O> getAllCondensed(DbQuery query) throws DataAccessException
getAllCondensed in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionpublic List<O> getAllCondensed(DbQuery query, org.hibernate.Session session) throws DataAccessException
getAllCondensed in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionprotected List<O> createCondensed(Collection<E> allInstances, DbQuery query, org.hibernate.Session session)
public List<O> getAllExpanded(DbQuery query) throws DataAccessException
getAllExpanded in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionpublic List<O> getAllExpanded(DbQuery query, org.hibernate.Session session) throws DataAccessException
getAllExpanded in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionprotected abstract O createExpanded(E instance, DbQuery query, org.hibernate.Session session) throws DataAccessException
DataAccessExceptionprotected List<O> createExpanded(Collection<E> allInstances, DbQuery query, org.hibernate.Session session) throws DataAccessException
DataAccessExceptionprotected List<E> getAllInstances(DbQuery parameters, org.hibernate.Session session) throws DataAccessException
DataAccessExceptionpublic O getInstance(String id, DbQuery query) throws DataAccessException
getInstance in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionpublic O getInstance(String id, DbQuery query, org.hibernate.Session session) throws DataAccessException
getInstance in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>DataAccessExceptionprotected E getInstance(Long id, DbQuery query, org.hibernate.Session session) throws DataAccessException
DataAccessExceptionprotected E getEntity(Long id, AbstractDao<E> dao, DbQuery query) throws DataAccessException
DataAccessExceptionpublic Collection<org.n52.series.spi.search.SearchResult> searchFor(org.n52.io.request.IoParameters parameters)
searchFor in interface OutputAssembler<O extends org.n52.io.response.ParameterOutput>searchFor in interface SearchableRepositoryCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.