public class JExcelStoreProvider extends AbstractMemoryStoreProvider implements ResourceConsumer
AbstractMemoryStoreProvider.MemoryFeatureProvider
AbstractFeatureStoreProvider.FeatureProviderNotFoundException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESCRIPTION |
static java.lang.String |
METADATA_DEFINITION_NAME |
static java.lang.String |
NAME |
data
store
Constructor and Description |
---|
JExcelStoreProvider(JExcelStoreParameters parameters,
DataStoreProviderServices storeServices) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowWrite()
Informs that store supports write.
|
void |
append(FeatureProvider featureProvider)
unsupported by default, override this otherwise
|
void |
beginAppend()
unsupported by default, override this otherwise
|
boolean |
closeResourceRequested(ResourceProvider resource) |
java.lang.Object |
createNewOID()
Return a new OID valid for a new feature.
|
void |
endAppend()
unsupported by default, override this otherwise
|
java.lang.Object |
getDynValue(java.lang.String name) |
Envelope |
getEnvelope()
unsupported geometry by default (return
null ), override this
otherwise |
DataServerExplorer |
getExplorer()
unsupported by default (return null), override this otherwise
|
java.lang.String |
getFullName()
Returns a more descriptive name for the provider that getName.
|
java.lang.String |
getName()
Returns the name associated to the provider.
|
int |
getOIDType()
Return OID data type (from
DataTypes ) of this store. |
java.lang.String |
getProviderName()
Return the name of the provider.
|
ResourceProvider |
getResource()
Returns the
Resource from where the data is being loaded. |
java.lang.Object |
getSourceId()
Returns the unique identifier of the Store
FIXME add examples
|
protected void |
initializeFeatureTypes() |
void |
loadFromState(PersistentState state) |
void |
open()
Open store.
|
void |
performChanges(java.util.Iterator deleteds,
java.util.Iterator inserteds,
java.util.Iterator updateds,
java.util.Iterator originalFeatureTypesUpdated)
unsupported by default, override this otherwise
|
void |
resourceChanged(ResourceProvider resource) |
void |
saveToState(PersistentState state) |
boolean |
supportsAppendMode() |
addFeatureProvider, createFeatureProvider, createSet, doDispose, getDataSize, getFeatureCount, getMemoryProvider, internalGetFeatureProviderByReference, internalGetFeatureProviderByReference
abortAppend, allowAutomaticValues, allowGeometry, beginAppend, canWriteGeometry, clear, close, createExpression, createFeatureLocks, createFeatureSelection, createResource, createSet, delegate, fixFeatureTypeFromParameters, getChildren, getDynClass, getEnvelope, getFeatureProviderByReference, getFeatureProviderByReference, getFeatureStore, getInterval, getParameters, getResourcesStorage, getRetrievedFeaturesLimit, getStoreServices, getStoresRepository, getTimes, getTimes, hasDynMethod, hasDynValue, hasRetrievedFeaturesLimit, implement, invokeDynMethod, invokeDynMethod, isKnownEnvelope, isLocksSupported, isTemporary, passThroughDelete, passThroughDelete, passThroughInsert, passThroughInsertOrUpdate, passThroughUpdate, passThroughUpdate, refresh, savePrjFile, setDynValue, setMetadata, supportsPassThroughMode, toString
setTransaction
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setTransaction
dispose
public static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public static final java.lang.String METADATA_DEFINITION_NAME
public JExcelStoreProvider(JExcelStoreParameters parameters, DataStoreProviderServices storeServices) throws InitializeException
InitializeException
public java.lang.String getProviderName()
DataStoreProvider
public boolean allowWrite()
FeatureStoreProvider
allowWrite
in interface FeatureStoreProvider
allowWrite
in class AbstractFeatureStoreProvider
public void open() throws OpenException
DataStoreProvider
OpenException
public DataServerExplorer getExplorer() throws ReadException
AbstractFeatureStoreProvider
getExplorer
in class AbstractFeatureStoreProvider
ReadException
DataStoreProvider.getExplorer()
public void performChanges(java.util.Iterator deleteds, java.util.Iterator inserteds, java.util.Iterator updateds, java.util.Iterator originalFeatureTypesUpdated) throws PerformEditingException
AbstractFeatureStoreProvider
performChanges
in interface FeatureStoreProvider
performChanges
in class AbstractMemoryStoreProvider
deleteds
- iterator of FeatureReferenceProviderServices
inserteds
- iterator of FeatureProvider
updateds
- iterator of FeatureProvider
originalFeatureTypesUpdated
- iterator of FeatureType.FeatureTypeChanged
PerformEditingException
FeatureStoreProvider.performChanges(Iterator,
Iterator, Iterator, Iterator)
public boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested
in interface ResourceConsumer
public int getOIDType()
FeatureStoreProvider
DataTypes
) of this store.getOIDType
in interface FeatureStoreProvider
FeatureStoreProvider#createNewOID()} {@link DataTypes}
public boolean supportsAppendMode()
supportsAppendMode
in interface FeatureStoreProvider
supportsAppendMode
in class AbstractFeatureStoreProvider
public void append(FeatureProvider featureProvider)
AbstractFeatureStoreProvider
append
in interface FeatureStoreProvider
append
in class AbstractFeatureStoreProvider
org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider#append(org.gvsig.
fmap.dal.feature.spi.FeatureProvider)
public void beginAppend()
AbstractFeatureStoreProvider
beginAppend
in interface FeatureStoreProvider
beginAppend
in class AbstractFeatureStoreProvider
FeatureStoreProvider.beginAppend()
public void endAppend()
AbstractFeatureStoreProvider
endAppend
in interface FeatureStoreProvider
endAppend
in class AbstractFeatureStoreProvider
FeatureStoreProvider.endAppend()
public void saveToState(PersistentState state) throws PersistenceException
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
PersistenceException
public java.lang.Object createNewOID()
FeatureStoreProvider
createNewOID
in interface FeatureStoreProvider
FeatureStoreProvider#getOIDType()}
protected void initializeFeatureTypes() throws InitializeException
InitializeException
public Envelope getEnvelope() throws DataException
AbstractFeatureStoreProvider
null
), override this
otherwisegetEnvelope
in interface FeatureStoreProvider
getEnvelope
in class AbstractFeatureStoreProvider
null
if
store not have geometry informationDataException
FeatureStoreProvider.getEnvelope()
public java.lang.Object getDynValue(java.lang.String name) throws DynFieldNotFoundException
getDynValue
in interface DynObject
getDynValue
in class AbstractFeatureStoreProvider
DynFieldNotFoundException
public void resourceChanged(ResourceProvider resource)
resourceChanged
in interface ResourceConsumer
public java.lang.Object getSourceId()
DataStoreProvider
public java.lang.String getName()
DataStoreProvider
public java.lang.String getFullName()
DataStoreProvider
public ResourceProvider getResource()
DataStoreProvider
Resource
from where the data is being loaded.Resource