Class GeoLocationRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>

All Implemented Interfaces:
EntityRepository<G>, GeoLocationRepository<G>, IdentifiableRepository<G>, PagingSortingFilteringRepository<G>, UniqueObjectRepository<G>
Direct Known Subclasses:
CanyonRepositoryImpl, CaveRepositoryImpl, ContinentRepositoryImpl, CountryRepositoryImpl, CreekRepositoryImpl, HumanSettlementRepositoryImpl, LakeRepositoryImpl, MountainRepositoryImpl, OceanRepositoryImpl, RiverRepositoryImpl, SeaRepositoryImpl, StillWatersRepositoryImpl, ValleyRepositoryImpl

@Repository("geoLocationRepository") public class GeoLocationRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> extends EntityRepositoryImpl<G> implements GeoLocationRepository<G>
  • Field Details

  • Constructor Details

    • GeoLocationRepositoryImpl

      @Autowired public GeoLocationRepositoryImpl(org.jdbi.v3.core.Jdbi dbi, CudamiConfig cudamiConfig, IdentifierRepository identifierRepository, UrlAliasRepository urlAliasRepository)
    • GeoLocationRepositoryImpl

      public GeoLocationRepositoryImpl(org.jdbi.v3.core.Jdbi dbi, String tableName, String tableAlias, String mappingPrefix, Class<? extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> geoLocationImplClass, int offsetForAlternativePaging, IdentifierRepository identifierRepository, UrlAliasRepository urlAliasRepository)
  • Method Details

    • getColumnName

      public String getColumnName(String modelProperty)
      Overrides:
      getColumnName in class EntityRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
      Parameters:
      modelProperty - name of model property passed as String, e.g. "lastModified"
      Returns:
      full qualified column name as used in sql queries ("last_modified" or e.g. "w.last_modified" if prefix used in queries)
    • getSqlInsertFields

      protected String getSqlInsertFields()
      Overrides:
      getSqlInsertFields in class EntityRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
      Returns:
      SQL for field names for insert statement of UniqueObject
    • getSqlInsertValues

      protected String getSqlInsertValues()
      Description copied from class: UniqueObjectRepositoryImpl
      Do not change order! Must match order in getSqlInsertFields!!!
      Overrides:
      getSqlInsertValues in class EntityRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
      Returns:
      SQL for value mapping for field names for insert statement of UniqueObject
    • getSqlSelectAllFields

      public String getSqlSelectAllFields(String tableAlias, String mappingPrefix)
      Description copied from class: IdentifiableRepositoryImpl
      SQL-snippet for fields to be returned for complete field request.
      If already all fields are returned with reduced fields request: just return reduced field set here, otherwise add additional fields to reduced set to get all fields.
      Overrides:
      getSqlSelectAllFields in class EntityRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
      Returns:
      SQL snippet
    • getSqlSelectReducedFields

      public String getSqlSelectReducedFields(String tableAlias, String mappingPrefix)
      Overrides:
      getSqlSelectReducedFields in class EntityRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
      Returns:
      SQL for fields of reduced field set of UniqueObject
    • getSqlUpdateFieldValues

      protected String getSqlUpdateFieldValues()
      Overrides:
      getSqlUpdateFieldValues in class EntityRepositoryImpl<G extends de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>