public class ResourceIdImpl extends FeatureIdVersionedImpl implements ResourceId
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.
featureVersion, previousRid
fid, origionalFid
VERSION_SEPARATOR
Constructor and Description |
---|
ResourceIdImpl(String fid,
Date start,
Date end)
Date range constructor for a feature id; none or one of
start and end can be
null , making for an unconstrained date range at either of the ends. |
ResourceIdImpl(String fid,
String featureVersion)
Obtain a ResourceId that represents an explicit request for feature id and feature version
(essentially the quivalent of
FeatureId ) |
ResourceIdImpl(String fid,
String featureVersion,
Version version)
Obtain a ResourceId based on version lookup.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Identifier is a data object, equals is based just on getID()
|
Date |
getEndTime()
Used to select versions of a resource between start and end time.
|
Date |
getStartTime()
Used to select versions of a resource between start and end time.
|
Version |
getVersion()
Used to navigate versions of a resource.
|
int |
hashCode()
Identifier is a data object, hashCode is based just on getID()
|
void |
setEndTime(Date endTime) |
void |
setPreviousRid(String previousRid) |
void |
setRid(String rid) |
void |
setStartTime(Date startTime) |
void |
setVersion(Version version) |
equalsExact, equalsFID, getFeatureVersion, getPreviousRid, getRid, toString
getID, matches, matches, setID
equalsExact, equalsFID, getFeatureVersion, getID, getPreviousRid, getRid, matches
toString
public ResourceIdImpl(String fid, String featureVersion, Version version)
fid
- feature being queriedfeatureVersion
- version used as a reference pointversion
- scope of version based query (first, last, index, all, date, etc...)public ResourceIdImpl(String fid, String featureVersion)
FeatureId
)public ResourceIdImpl(String fid, Date start, Date end)
start
and end
can be
null
, making for an unconstrained date range at either of the ends.fid
- feature id, non null;start
- lower end of the time range, inclusive, or null
only if end !=
null
end
- upper end of the time range, inclusive, or null
only if start !=
null
public void setRid(String rid)
public void setPreviousRid(String previousRid)
public void setVersion(Version version)
public Date getStartTime()
ResourceId
getStartTime
in interface ResourceId
null
if using version or an end time
was provided but the start time is unconstrained TODO: consider using an
org.geotools.util.Rangepublic void setStartTime(Date startTime)
public Date getEndTime()
ResourceId
getEndTime
in interface ResourceId
null
if using version or an start time
was provided but the end time is unconstrained TODO: consider using an
org.geotools.util.Rangepublic void setEndTime(Date endTime)
public Version getVersion()
ResourceId
getVersion
in interface ResourceId
null
but possibly empty
if used a date range query or asked for a specific feature id + version idpublic boolean equals(Object obj)
Identifier
equals
in interface Identifier
equals
in class FeatureIdVersionedImpl
public int hashCode()
Identifier
hashCode
in interface Identifier
hashCode
in class FeatureIdVersionedImpl
Copyright © 1996–2023 Geotools. All rights reserved.