public class FeatureOfInterestDAO extends AbstractIdentifierNameDescriptionDAO implements HibernateSqlQueryConstants
TimeCreator.MinMax
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private static String |
SQL_QUERY_GET_FEATURE_OF_INTEREST_IDENTIFIER_FOR_OBSERVATION_CONSTELLATION |
private static String |
SQL_QUERY_GET_FEATURE_OF_INTEREST_IDENTIFIER_FOR_OFFERING |
FEATURE, FEATURES, GEOMETRY, OBSERVABLE_PROPERTIES, OBSERVABLE_PROPERTY, OFFERING, OFFERINGS, PROCEDURE, PROCEDURES, SRID
Constructor and Description |
---|
FeatureOfInterestDAO() |
Modifier and Type | Method and Description |
---|---|
FeatureOfInterest |
checkOrInsertFeatureOfInterest(AbstractFeature featureOfInterest,
org.hibernate.Session session)
Insert featureOfInterest if it is supported
|
void |
checkOrInsertFeatureOfInterestRelatedFeatureRelation(FeatureOfInterest featureOfInterest,
Offering offering,
org.hibernate.Session session)
Insert featureOfInterest/related feature relations if relatedFeatures
exists for offering.
|
FeatureOfInterest |
getFeatureOfInterest(String identifier,
org.hibernate.Session session)
Get featureOfInterest object for identifier
|
List<String> |
getFeatureOfInterestIdentifiers(org.hibernate.Session session)
Get all featureOfInterest identifiers
|
List<String> |
getFeatureOfInterestIdentifiersForObservationConstellation(ObservationConstellation observationConstellation,
org.hibernate.Session session)
Get featureOfInterest identifiers for observation constellation
|
List<String> |
getFeatureOfInterestIdentifiersForOffering(String offeringIdentifiers,
org.hibernate.Session session)
Get featureOfInterest identifiers for an offering identifier
|
Map<String,Collection<String>> |
getFeatureOfInterestIdentifiersWithParents(org.hibernate.Session session)
Load FOI identifiers and parent ids for use in the cache.
|
List<FeatureOfInterest> |
getFeatureOfInterestObject(Collection<String> identifiers,
org.hibernate.Session session)
Get featureOfInterest objects for featureOfInterest identifiers
|
List<FeatureOfInterest> |
getFeatureOfInterestObjects(org.hibernate.Session session)
Get all featureOfInterest objects
|
FeatureOfInterest |
getOrInsertFeatureOfInterest(String identifier,
String url,
org.hibernate.Session session)
Insert and/or get featureOfInterest object for identifier
|
void |
insertFeatureOfInterestRelationShip(TFeatureOfInterest parentFeature,
FeatureOfInterest childFeature,
org.hibernate.Session session)
Insert featureOfInterest relationship
|
addDescription, addIdentifier, addIdentifierNameDescription, addName, getAndAddIdentifierNameDescription, getDescription, getIdentifier, getName, insertNameAndDescription, insertNames
addMinMaxProjection, createTimePeriod
private static final org.slf4j.Logger LOGGER
private static final String SQL_QUERY_GET_FEATURE_OF_INTEREST_IDENTIFIER_FOR_OFFERING
private static final String SQL_QUERY_GET_FEATURE_OF_INTEREST_IDENTIFIER_FOR_OBSERVATION_CONSTELLATION
public FeatureOfInterest getFeatureOfInterest(String identifier, org.hibernate.Session session)
identifier
- FeatureOfInterest identifiersession
- Hibernate session Hibernate sessionpublic List<String> getFeatureOfInterestIdentifiersForObservationConstellation(ObservationConstellation observationConstellation, org.hibernate.Session session) throws OwsExceptionReport
observationConstellation
- Observation constellationsession
- Hibernate session Hibernate sessionCodedException
OwsExceptionReport
public List<String> getFeatureOfInterestIdentifiersForOffering(String offeringIdentifiers, org.hibernate.Session session) throws OwsExceptionReport
offeringIdentifiers
- Offering identifiersession
- Hibernate session Hibernate sessionCodedException
OwsExceptionReport
public List<FeatureOfInterest> getFeatureOfInterestObject(Collection<String> identifiers, org.hibernate.Session session)
identifiers
- FeatureOfInterest identifierssession
- Hibernate sessionpublic List<FeatureOfInterest> getFeatureOfInterestObjects(org.hibernate.Session session)
session
- Hibernate sessionpublic Map<String,Collection<String>> getFeatureOfInterestIdentifiersWithParents(org.hibernate.Session session)
session
- public List<String> getFeatureOfInterestIdentifiers(org.hibernate.Session session)
session
- Hibernate sessionpublic FeatureOfInterest getOrInsertFeatureOfInterest(String identifier, String url, org.hibernate.Session session)
identifier
- FeatureOfInterest identifierurl
- FeatureOfInterest URL, if defined as linksession
- Hibernate sessionpublic void insertFeatureOfInterestRelationShip(TFeatureOfInterest parentFeature, FeatureOfInterest childFeature, org.hibernate.Session session)
parentFeature
- Parent featureOfInterestchildFeature
- Child featureOfInterestsession
- Hibernate sessionpublic void checkOrInsertFeatureOfInterestRelatedFeatureRelation(FeatureOfInterest featureOfInterest, Offering offering, org.hibernate.Session session)
featureOfInterest
- FeatureOfInerestoffering
- Offeringsession
- Hibernate sessionpublic FeatureOfInterest checkOrInsertFeatureOfInterest(AbstractFeature featureOfInterest, org.hibernate.Session session) throws OwsExceptionReport
featureOfInterest
- SOS featureOfInterest to insertsession
- Hibernate sessionNoApplicableCodeException
- If SOS feature type is not supported (with status
HTTPStatus
.BAD_REQUESTOwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.