Package org.geotools.filter.identity
Class FeatureIdVersionedImpl
Object
FeatureIdImpl
FeatureIdVersionedImpl
- All Implemented Interfaces:
FeatureId
,Identifier
- Direct Known Subclasses:
ResourceIdImpl
Implementation of
FeatureId
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:
- 2.5
- Author:
- Justin Deoliveira, The Open Planning Project
-
Field Summary
FieldsFields inherited from class FeatureIdImpl
fid, origionalFid
Fields inherited from interface FeatureId
VERSION_SEPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureIdVersionedImpl
(String fid, String version) FeatureIdVersionedImpl
(String fid, String version, String previousRid) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Identifier is a data object, equals is based just on getID()boolean
equalsExact
(FeatureId id) Check if the provided FeatureId is an exact match (including any optional version information).boolean
Checks if the provided FeatureId reflects the same feature.Version identifier for the feature instance, may benull
previousRid attribute may be used, in implementations that support versioning, to report the previous identifier of a resource.getRid()
id of the resource that shall be selected by the predicate.int
hashCode()
Identifier is a data object, hashCode is based just on getID()toString()
Returns a string representation of the identifier.Methods inherited from class FeatureIdImpl
getID, matches, matches, setID
-
Field Details
-
featureVersion
-
previousRid
-
-
Constructor Details
-
FeatureIdVersionedImpl
-
FeatureIdVersionedImpl
-
-
Method Details
-
toString
Description copied from interface:Identifier
Returns a string representation of the identifier.- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classFeatureIdImpl
- Returns:
- getID().toString()
-
equals
Description copied from interface:Identifier
Identifier is a data object, equals is based just on getID()- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classFeatureIdImpl
- Returns:
- true if obj is an Identifier with the same getID()
-
hashCode
public int hashCode()Description copied from interface:Identifier
Identifier is a data object, hashCode is based just on getID()- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classFeatureIdImpl
- Returns:
- hashCode based on getID()
-
equalsExact
Description copied from interface:FeatureId
Check if the provided FeatureId is an exact match (including any optional version information).- Specified by:
equalsExact
in interfaceFeatureId
- Overrides:
equalsExact
in classFeatureIdImpl
- Returns:
- true if this is an exact match (including any optional version information)
-
equalsFID
Description copied from interface:FeatureId
Checks if the provided FeatureId reflects the same feature.This comparison does not compare any optional version information.
- Specified by:
equalsFID
in interfaceFeatureId
- Overrides:
equalsFID
in classFeatureIdImpl
- Returns:
- true if both identifiers describe the same feature (does not compare version information).
-
getRid
Description copied from interface:FeatureId
id of the resource that shall be selected by the predicate.Equals to
FeatureId.getID()
if no feature version is provided, orgetID() + "@" + getFeatureVersion()
ifgetFeatureVersion() != null
If an implementation that references this International Standard supports versioning, the rid shall be a system generated hash containing a logical resource identifier and a version number. The specific details of the hash are implementation dependant and shall be opaque to a client
If versioning is not supported, the same value than
FeatureId.getID()
shall be returned.- Specified by:
getRid
in interfaceFeatureId
- Overrides:
getRid
in classFeatureIdImpl
- Returns:
- Resource identifier made up of FID (combined with FeatureVersion if available)
-
getPreviousRid
Description copied from interface:FeatureId
previousRid attribute may be used, in implementations that support versioning, to report the previous identifier of a resource.- Specified by:
getPreviousRid
in interfaceFeatureId
- Overrides:
getPreviousRid
in classFeatureIdImpl
- Returns:
- Previous rid if available; or
null
-
getFeatureVersion
Description copied from interface:FeatureId
Version identifier for the feature instance, may benull
- Specified by:
getFeatureVersion
in interfaceFeatureId
- Overrides:
getFeatureVersion
in classFeatureIdImpl
- Returns:
- Optional version information;
null
if not available - See Also:
-