public class CSVStoreProvider extends AbstractMemoryStoreProvider implements ResourceConsumer
AbstractFeatureStoreProvider.FeatureProviderNotFoundException
FeatureStoreProvider.FeatureTypeChanged
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
static String |
METADATA_DEFINITION_NAME |
static String |
NAME |
data
Constructor and Description |
---|
CSVStoreProvider(CSVStoreParameters parameters,
DataStoreProviderServices storeServices) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowWrite()
unsupported by default, override this otherwise
|
void |
append(FeatureProvider featureProvider)
unsupported by default, override this otherwise
|
void |
beginAppend()
unsupported by default, override this otherwise
|
boolean |
closeResourceRequested(ResourceProvider resource) |
Object |
createNewOID()
Return a new OID valid for a new feature.
|
void |
endAppend()
unsupported by default, override this otherwise
|
Object |
getDynValue(String name) |
Envelope |
getEnvelope()
unsupported geometry by default (return
null ), override this
otherwise |
DataServerExplorer |
getExplorer()
unsupported by default (return null), override this otherwise
|
String |
getFullName() |
String |
getName() |
int |
getOIDType()
Return OID data type (from
DataTypes ) of this store. |
String |
getProviderName() |
ResourceProvider |
getResource() |
Object |
getSourceId() |
protected void |
initializeFeatureTypes() |
void |
loadFromState(PersistentState state) |
void |
open() |
void |
performChanges(Iterator deleteds,
Iterator inserteds,
Iterator updateds,
Iterator originalFeatureTypesUpdated)
unsupported by default, override this otherwise
|
void |
resourceChanged(ResourceProvider resource) |
void |
saveToState(PersistentState state) |
boolean |
supportsAppendMode()
unsupported by default, override this otherwise
|
addFeatureProvider, createFeatureProvider, createSet, doDispose, getDataSize, getFeatureCount, getMemoryProvider, internalGetFeatureProviderByReference, internalGetFeatureProviderByReference
abortAppend, allowAutomaticValues, canWriteGeometry, clear, close, createExpression, createFeatureLocks, createFeatureSelection, createResource, delegate, getChilds, getDynClass, getFeatureProviderByReference, getFeatureProviderByReference, getFeatureStore, getInterval, getParameters, getRetrievedFeaturesLimit, getStoreServices, getTimes, getTimes, hasDynMethod, hasDynValue, hasRetrievedFeaturesLimit, implement, invokeDynMethod, invokeDynMethod, isKnownEnvelope, isLocksSupported, refresh, savePrjFile, setDynValue, setMetadata
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public static final String NAME
public static final String DESCRIPTION
public static final String METADATA_DEFINITION_NAME
public CSVStoreProvider(CSVStoreParameters parameters, DataStoreProviderServices storeServices) throws InitializeException
InitializeException
public String getProviderName()
public boolean allowWrite()
AbstractFeatureStoreProvider
allowWrite
in interface FeatureStoreProvider
allowWrite
in class AbstractFeatureStoreProvider
FeatureStoreProvider.allowWrite()
public void open() throws OpenException
OpenException
public DataServerExplorer getExplorer() throws ReadException
AbstractFeatureStoreProvider
getExplorer
in class AbstractFeatureStoreProvider
ReadException
DataStoreProvider.getExplorer()
public void performChanges(Iterator deleteds, Iterator inserteds, Iterator updateds, 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 FeatureStoreProvider.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()
AbstractFeatureStoreProvider
supportsAppendMode
in interface FeatureStoreProvider
supportsAppendMode
in class AbstractFeatureStoreProvider
FeatureStoreProvider.supportsAppendMode()
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 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 Object getDynValue(String name) throws DynFieldNotFoundException
getDynValue
in interface DynObject
getDynValue
in class AbstractFeatureStoreProvider
DynFieldNotFoundException
public void resourceChanged(ResourceProvider resource)
resourceChanged
in interface ResourceConsumer
public Object getSourceId()
public String getName()
public String getFullName()
public ResourceProvider getResource()