public interface FeatureStoreProvider extends DataStoreProvider
FeatureStoreProvider(DataStoreParameters
, FeatureStoreProviderServices
)
Modifier and Type | Method and Description |
---|---|
void |
abortAppend() |
boolean |
allowAutomaticValues()
Inform if the store provider supports automatic values for attributues
(autonumeric)
|
int |
allowGeometry(java.lang.String name,
Geometry geometry) |
boolean |
allowWrite()
Informs that store supports write.
|
void |
append(FeatureProvider featureProvider) |
void |
beginAppend() |
void |
beginAppend(int submode) |
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 . |
java.lang.Object |
createNewOID()
Return a new OID valid for a new feature.
|
FeatureSetProvider |
createSet(FeatureQuery query,
FeatureType featureType)
Factory of
FeatureSetProvider . |
FeatureSetProvider |
createSet(FeatureQuery query,
FeatureType providerFeatureType,
FeatureType storeFeatureType) |
void |
endAppend() |
void |
fixFeatureTypeFromParameters() |
Envelope |
getEnvelope()
Returns this store's total envelope (extent).
|
Envelope |
getEnvelope(java.lang.String geomname) |
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)
|
FeatureStore |
getFeatureStore() |
int |
getOIDType()
Return OID data type (from
DataTypes ) of this store. |
DataStoreParameters |
getParameters() |
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
|
boolean |
isTemporary()
Indicates if the storage is temporary.
|
void |
passThroughDelete(Expression filter) |
void |
passThroughDelete(FeatureReferenceProviderServices featureReference) |
void |
passThroughInsert(FeatureProvider featureProvider) |
void |
passThroughInsertOrUpdate(FeatureProvider featureProvider) |
void |
passThroughUpdate(FeatureProvider featureProvider) |
void |
passThroughUpdate(java.lang.Object[] parameters,
Expression filter) |
void |
performChanges(java.util.Iterator deleteds,
java.util.Iterator inserteds,
java.util.Iterator updateds,
java.util.Iterator featureTypesChanged)
Perform changes on store.
|
boolean |
supportsAppendMode() |
boolean |
supportsPassThroughMode() |
close, getChildren, getExplorer, getFullName, getInterval, getName, getProviderName, getResource, getResourcesStorage, getSourceId, getStoresRepository, getTimes, getTimes, open, refresh, setTransaction
hasDynMethod
clear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
java.lang.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.type,
- 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
FeatureSetProvider createSet(FeatureQuery query, FeatureType providerFeatureType, FeatureType storeFeatureType) throws DataException
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
- featureType
- DataException
boolean allowWrite()
boolean canWriteGeometry(int geometryType, int geometrySubType) throws DataException
geometryType
- geometrySubType
- DataException
void performChanges(java.util.Iterator deleteds, java.util.Iterator inserteds, java.util.Iterator updateds, java.util.Iterator featureTypesChanged) throws DataException
deleteds
- iterator of FeatureReferenceProviderServices
inserteds
- iterator of FeatureProvider
updateds
- iterator of FeatureProvider
featureTypesChanged
- iterator of FeatureType.FeatureTypeChanged
DataException
Envelope getEnvelope() throws DataException
null
if
store not have geometry informationDataException
Envelope getEnvelope(java.lang.String geomname) throws DataException
DataException
boolean isLocksSupported()
FeatureStoreProviderServices getStoreServices()
FeatureStoreProviderServices
for this storeboolean allowAutomaticValues()
true
if supportedlong getFeatureCount() throws DataException
DataException
boolean supportsAppendMode()
void beginAppend() throws DataException
DataException
void beginAppend(int submode) 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.FeatureStore getFeatureStore()
DataStoreParameters getParameters()
boolean isTemporary()
void fixFeatureTypeFromParameters()
boolean supportsPassThroughMode()
void passThroughInsert(FeatureProvider featureProvider) throws DataException
DataException
void passThroughInsertOrUpdate(FeatureProvider featureProvider) throws DataException
DataException
void passThroughUpdate(FeatureProvider featureProvider) throws DataException
DataException
void passThroughDelete(FeatureReferenceProviderServices featureReference) throws DataException
DataException
void passThroughDelete(Expression filter) throws DataException
DataException
void passThroughUpdate(java.lang.Object[] parameters, Expression filter)
int allowGeometry(java.lang.String name, Geometry geometry)