|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectQueryCapabilities
JDBCFeatureSource.JDBCQueryCapabilities
protected class JDBCFeatureSource.JDBCQueryCapabilities
A default QueryCapabilities implementation for JDBCFeatureSource with template methods JDBCFeatureSource subclasses may override.
This default implementation assumes sorting is supported both in ascending and descending
order by any FeatureType attribute. Sorting by SortBy.NATURAL_ORDER
and
SortBy.REVERSE_ORDER
, by the other hand, defaults to false
, since a
datastore may take explicit actions in orther to support those concepts, though most of the
time it implies sorting by the primary key for JDBC datastores.
supportsNaturalOrderSorting()
,
supportsReverseOrderSorting()
,
supportsPropertySorting(PropertyName, SortOrder)
Constructor Summary | |
---|---|
JDBCFeatureSource.JDBCQueryCapabilities(SimpleFeatureType fullFeatureType)
Creates a new JDBCQueryCapabilities to check for sorting support over the attributes of the provided feature type. |
Method Summary | |
---|---|
protected boolean |
isNullFidMapper(FIDMapper mapper)
Helper method to test if a fid mapper is a null fid mapper. |
boolean |
isReliableFIDSupported()
Consults the fid mapper for the feature source, if the null feature map reliable fids not supported. |
boolean |
isUseProvidedFIDSupported()
If true the datastore supports using the provided feature id in the data insertion workflow as opposed to generating a new id. |
protected boolean |
supportsNaturalOrderSorting()
Indicates whether sorting by SortBy.NATURAL_ORDER is supported; defaults to
false . |
protected boolean |
supportsPropertySorting(PropertyName propertyName,
SortOrder sortOrder)
Template method to check for sorting support in the given sort order for a specific attribute type, given by a PropertyName expression. |
protected boolean |
supportsReverseOrderSorting()
Indicates whether sorting by SortBy.REVERSE_ORDER is supported; defaults to
false . |
boolean |
supportsSorting(SortBy[] sortAttributes)
Overrides to delegate to the three template methods in order to check for sorting capabilities over the natural and reverse order, and each specific attribute type. |
Methods inherited from class QueryCapabilities |
---|
isOffsetSupported |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCFeatureSource.JDBCQueryCapabilities(SimpleFeatureType fullFeatureType)
fullFeatureType
- the feature type with all the registered attribtuesMethod Detail |
---|
public boolean supportsSorting(SortBy[] sortAttributes)
supportsSorting
in class QueryCapabilities
protected boolean supportsNaturalOrderSorting()
SortBy.NATURAL_ORDER
is supported; defaults to
false
.
protected boolean supportsReverseOrderSorting()
SortBy.REVERSE_ORDER
is supported; defaults to
false
.
protected boolean supportsPropertySorting(PropertyName propertyName, SortOrder sortOrder)
This default implementation assumes both orders are supported as long as the property name corresponds to the name of one of the attribute types in the complete FeatureType.
propertyName
- the expression holding the property name to check for sortability
supportsortOrder
- the order, ascending or descending, to check for sortability support
over the given property name.
public boolean isReliableFIDSupported()
isReliableFIDSupported
in class QueryCapabilities
protected boolean isNullFidMapper(FIDMapper mapper)
public boolean isUseProvidedFIDSupported()
QueryCapabilities
Property.getUserData()
) for a Hints.USE_PROVIDED_FID
key associated to a
Boolean.TRUE
value, if the key/value pair is there an attempt to use the provided
id will be made, and the operation will fail of the key cannot be parsed into a valid
storage identifier.
isUseProvidedFIDSupported
in class QueryCapabilities
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |