Package org.geotools.filter.identity
Class ResourceIdImpl
Object
FeatureIdImpl
FeatureIdVersionedImpl
ResourceIdImpl
- All Implemented Interfaces:
FeatureId,Identifier,ResourceId
Implementation of
ResourceId used for Query.
This class is mutable under one condition only; during a commit a datastore can update the internal fid to reflect the real identify assigned by the database or wfs.
- Since:
- 8.0
- Author:
- Justin Deoliveira, The Open Planning Project
-
Field Summary
Fields inherited from class FeatureIdVersionedImpl
featureVersion, previousRidFields inherited from class FeatureIdImpl
fid, origionalFidFields inherited from interface FeatureId
VERSION_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionResourceIdImpl(String fid, String featureVersion) Obtain a ResourceId that represents an explicit request for feature id and feature version (essentially the quivalent ofFeatureId)ResourceIdImpl(String fid, String featureVersion, Version version) Obtain a ResourceId based on version lookup.ResourceIdImpl(String fid, Date start, Date end) Date range constructor for a feature id; none or one ofstartandendcan benull, making for an unconstrained date range at either of the ends. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentifier is a data object, equals is based just on getID()Used to select versions of a resource between start and end time.Used to select versions of a resource between start and end time.Used to navigate versions of a resource.inthashCode()Identifier is a data object, hashCode is based just on getID()voidsetEndTime(Date endTime) voidsetPreviousRid(String previousRid) voidvoidsetStartTime(Date startTime) voidsetVersion(Version version) Methods inherited from class FeatureIdVersionedImpl
equalsExact, equalsFID, getFeatureVersion, getPreviousRid, getRid, toStringMethods inherited from class FeatureIdImpl
getID, matches, matches, setIDMethods inherited from interface FeatureId
equalsExact, equalsFID, getFeatureVersion, getID, getPreviousRid, getRid, matchesMethods inherited from interface Identifier
toString
-
Constructor Details
-
ResourceIdImpl
Obtain a ResourceId based on version lookup.- Parameters:
fid- feature being queriedfeatureVersion- version used as a reference pointversion- scope of version based query (first, last, index, all, date, etc...)
-
ResourceIdImpl
Obtain a ResourceId that represents an explicit request for feature id and feature version (essentially the quivalent ofFeatureId) -
ResourceIdImpl
Date range constructor for a feature id; none or one ofstartandendcan benull, making for an unconstrained date range at either of the ends.- Parameters:
fid- feature id, non null;start- lower end of the time range, inclusive, ornullonly ifend != nullend- upper end of the time range, inclusive, ornullonly ifstart != null
-
-
Method Details
-
setRid
-
setPreviousRid
-
setVersion
-
getStartTime
Description copied from interface:ResourceIdUsed to select versions of a resource between start and end time.- Specified by:
getStartTimein interfaceResourceId- Returns:
- start time for a time based query; or
nullif using version or an end time was provided but the start time is unconstrained TODO: consider using an org.geotools.util.Rangeinstead of both start and end time?
-
setStartTime
-
getEndTime
Description copied from interface:ResourceIdUsed to select versions of a resource between start and end time.- Specified by:
getEndTimein interfaceResourceId- Returns:
- end time for a time based query; or
nullif using version or an start time was provided but the end time is unconstrained TODO: consider using an org.geotools.util.Rangeinstead of both start and end time?
-
setEndTime
-
getVersion
Description copied from interface:ResourceIdUsed to navigate versions of a resource.- Specified by:
getVersionin interfaceResourceId- Returns:
- Version based resource query; non
nullbut possiblyemptyif used a date range query or asked for a specific feature id + version id
-
equals
Description copied from interface:IdentifierIdentifier is a data object, equals is based just on getID()- Specified by:
equalsin interfaceIdentifier- Overrides:
equalsin classFeatureIdVersionedImpl- Returns:
- true if obj is an Identifier with the same getID()
-
hashCode
public int hashCode()Description copied from interface:IdentifierIdentifier is a data object, hashCode is based just on getID()- Specified by:
hashCodein interfaceIdentifier- Overrides:
hashCodein classFeatureIdVersionedImpl- Returns:
- hashCode based on getID()
-