public interface FeatureStoreProvider extends DataStoreProvider
FeatureStoreProvider(DataStoreParameters
, FeatureStoreProviderServices
)
Modifier and Type | Interface and Description |
---|---|
static interface |
FeatureStoreProvider.FeatureTypeChanged |
Modifier and Type | Method and Description |
---|---|
void |
abortAppend() |
boolean |
allowAutomaticValues()
Inform if the store provider supports automatic values for attributues
(autonumeric)
|
boolean |
allowWrite()
Informs that store supports write.
|
void |
append(FeatureProvider featureProvider) |
void |
beginAppend() |
boolean |
canWriteGeometry(int geometryType,
int geometrySubType)
Informs that store supports write a geometry.
|
FeatureLocks |
createFeatureLocks()
Factory of
FeatureLocks . |
FeatureProvider |
createFeatureProvider(FeatureType type)
Factory of
FeatureProvider . |
FeatureSelection |
createFeatureSelection()
Factory of
FeatureSelection . |
Object |
createNewOID()
Return a new OID valid for a new feature.
|
FeatureSetProvider |
createSet(FeatureQuery query,
FeatureType featureType)
Factory of
FeatureSetProvider . |
void |
endAppend() |
Envelope |
getEnvelope()
Returns this store's total envelope (extent).
|
long |
getFeatureCount()
Returns total feature count of this store.
|
FeatureProvider |
getFeatureProviderByReference(FeatureReferenceProviderServices reference)
Return
FeatureProvider from a
FeatureReferenceProviderServices using
FeatureStore.getDefaultFeatureType() as FeatureType |
FeatureProvider |
getFeatureProviderByReference(FeatureReferenceProviderServices reference,
FeatureType featureType)
|
int |
getOIDType()
Return OID data type (from
DataTypes ) of this store. |
int |
getRetrievedFeaturesLimit()
If the
hasRetrievedFeaturesLimit() returns true,
it returns the limit of features retrieved from the provider. |
FeatureStoreProviderServices |
getStoreServices()
Return
FeatureStoreProviderServices for this store |
boolean |
hasRetrievedFeaturesLimit()
Return if the maximum number of features provided by the
provider are limited.
|
boolean |
isKnownEnvelope()
Return if the provider knows the real envelope of a layer.
|
boolean |
isLocksSupported()
Informs if store supports locks
|
void |
performChanges(Iterator deleteds,
Iterator inserteds,
Iterator updateds,
Iterator featureTypesChanged)
Perform changes on store.
|
boolean |
supportsAppendMode() |
close, getChilds, getExplorer, getFullName, getInterval, getName, getProviderName, getResource, getSourceId, getTimes, getTimes, open, refresh
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
Object createNewOID()
FeatureStoreProvider#getOIDType()}
int getOIDType()
DataTypes
) of this store.FeatureStoreProvider#createNewOID()} {@link DataTypes}
FeatureProvider createFeatureProvider(FeatureType type) throws DataException
FeatureProvider
. Create a new FeatureProvider
instance
valid for this Store.{@link
- FeatureType} of the FeatureProvider
DataException
FeatureSelection createFeatureSelection() throws DataException
FeatureSelection
. Create a new
FeatureSelection
instance valid for this Store.DataException
FeatureLocks createFeatureLocks() throws DataException
FeatureLocks
. Create a new FeatureLocks
instance valid for this Store.FeatureLocks
or null
if not
isLocksSupported()
DataException
FeatureSetProvider createSet(FeatureQuery query, FeatureType featureType) throws DataException
FeatureSetProvider
. Create a new
FeatureSetProvider
that represents result of FeatureQuery
.query
- (never will be null)featureType
- (never will be null)DataException
FeatureProvider getFeatureProviderByReference(FeatureReferenceProviderServices reference) throws DataException
FeatureProvider
from a
FeatureReferenceProviderServices
using
FeatureStore.getDefaultFeatureType()
as FeatureType
reference
- DataException
FeatureProvider getFeatureProviderByReference(FeatureReferenceProviderServices reference, FeatureType featureType) throws DataException
reference
- DataException
boolean allowWrite()
boolean canWriteGeometry(int geometryType, int geometrySubType) throws DataException
geometryType
- geometrySubType
- DataException
void performChanges(Iterator deleteds, Iterator inserteds, Iterator updateds, Iterator featureTypesChanged) throws DataException
deleteds
- iterator of FeatureReferenceProviderServices
inserteds
- iterator of FeatureProvider
updateds
- iterator of FeatureProvider
featureTypesChanged
- iterator of FeatureStoreProvider.FeatureTypeChanged
DataException
Envelope getEnvelope() throws DataException
null
if
store not have geometry informationDataException
boolean isLocksSupported()
FeatureStoreProviderServices getStoreServices()
FeatureStoreProviderServices
for this storeboolean allowAutomaticValues()
true
if supportedlong getFeatureCount() throws DataException
DataException
boolean supportsAppendMode()
void beginAppend() throws DataException
DataException
void endAppend() throws DataException
DataException
void append(FeatureProvider featureProvider) throws DataException
DataException
void abortAppend() throws DataException
DataException
boolean isKnownEnvelope()
getEnvelope()
method doesn't return
the full envelope.boolean hasRetrievedFeaturesLimit()
int getRetrievedFeaturesLimit()
hasRetrievedFeaturesLimit()
returns true,
it returns the limit of features retrieved from the provider.