Class SessionAwareAssembler

java.lang.Object
org.n52.series.db.old.da.SessionAwareAssembler
All Implemented Interfaces:
TimeOutputCreator, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AbstractDataRepository, DatasetAssembler, GeometriesAssembler, ParameterAssembler

public abstract class SessionAwareAssembler extends Object implements org.springframework.beans.factory.InitializingBean, TimeOutputCreator
  • Field Details

  • Constructor Details

  • Method Details

    • getDbQuery

      protected DbQuery getDbQuery(org.n52.io.request.IoParameters parameters)
    • getCrsUtils

      protected org.n52.io.crs.CRSUtils getCrsUtils()
    • getMapperFactory

      protected OutputMapperFactory getMapperFactory()
    • getGeometry

      protected org.locationtech.jts.geom.Geometry getGeometry(org.n52.series.db.beans.GeometryEntity geometryEntity, DbQuery query)
    • parseId

      protected Long parseId(String id)
    • getSessionStore

      protected HibernateSessionStore getSessionStore()
    • returnSession

      public void returnSession(org.hibernate.Session session)
    • getSession

      public org.hibernate.Session getSession()
    • createDatasetParameters

      protected org.n52.io.response.dataset.DatasetParameters createDatasetParameters(org.n52.series.db.beans.DatasetEntity dataset, DbQuery query, org.hibernate.Session session)
    • getCondensedPhenomenon

      protected org.n52.io.response.PhenomenonOutput getCondensedPhenomenon(org.n52.series.db.beans.PhenomenonEntity entity, DbQuery parameters)
    • getCondensedOffering

      protected org.n52.io.response.OfferingOutput getCondensedOffering(org.n52.series.db.beans.OfferingEntity entity, DbQuery parameters)
    • getCondensedProcedure

      protected org.n52.io.response.ProcedureOutput getCondensedProcedure(org.n52.series.db.beans.ProcedureEntity entity, DbQuery parameters)
    • getCondensedService

      protected org.n52.io.response.ServiceOutput getCondensedService(org.n52.series.db.beans.ServiceEntity entity, DbQuery parameters)
    • getCondensedPlatform

      protected org.n52.io.response.PlatformOutput getCondensedPlatform(org.n52.series.db.beans.PlatformEntity entity, DbQuery parameters)
    • getCondensedFeature

      protected org.n52.io.response.FeatureOutput getCondensedFeature(org.n52.series.db.beans.AbstractFeatureEntity<?> entity, DbQuery parameters)
    • getCondensedCategory

      protected org.n52.io.response.CategoryOutput getCondensedCategory(org.n52.series.db.beans.CategoryEntity entity, DbQuery parameters)
    • getCondensedTags

      protected Collection<org.n52.io.response.ParameterOutput> getCondensedTags(Set<org.n52.series.db.beans.TagEntity> tags, DbQuery parameters)
    • getCondensedTag

      protected org.n52.io.response.TagOutput getCondensedTag(org.n52.series.db.beans.TagEntity entity, DbQuery parameters)
    • getServiceEntity

      protected org.n52.series.db.beans.ServiceEntity getServiceEntity()
    • getServiceEntity

      protected org.n52.series.db.beans.ServiceEntity getServiceEntity(org.n52.series.db.beans.DescribableEntity entity)
    • createCondensed

      protected <T extends org.n52.io.response.ParameterOutput> T createCondensed(T result, org.n52.series.db.beans.DescribableEntity entity, DbQuery query)
    • createGeometry

      protected org.locationtech.jts.geom.Geometry createGeometry(org.n52.series.db.beans.AbstractFeatureEntity<?> featureEntity, DbQuery query)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • createTimeOutput

      public org.n52.io.response.TimeOutput createTimeOutput(Date date, String originTimezone, org.n52.io.request.IoParameters parameters)
      Specified by:
      createTimeOutput in interface TimeOutputCreator
    • createTimeOutput

      protected org.n52.io.response.TimeOutput createTimeOutput(Date date, org.joda.time.DateTimeZone zone, boolean formatToUnixTime)
    • getOriginTimeZone

      public org.joda.time.DateTimeZone getOriginTimeZone(String originTimezone)
      Specified by:
      getOriginTimeZone in interface TimeOutputCreator