Class JDBCStoreProviderBase

java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.dal.spi.AbstractDataStoreProvider
org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
org.gvsig.fmap.dal.store.jdbc2.spi.JDBCStoreProviderBase
All Implemented Interfaces:
org.gvsig.fmap.dal.DataFactoryUnit, org.gvsig.fmap.dal.DataStoreProvider, org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider, org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider_v2, org.gvsig.fmap.dal.resource.spi.ResourceConsumer, org.gvsig.fmap.dal.spi.DataStoreProvider, JDBCStoreProvider, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.dynobject.DynObject, org.gvsig.tools.dynobject.DynObject_v2

public class JDBCStoreProviderBase extends org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider implements org.gvsig.fmap.dal.resource.spi.ResourceConsumer, JDBCStoreProvider
  • Field Details

  • Constructor Details

    • JDBCStoreProviderBase

      protected JDBCStoreProviderBase(org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters params, org.gvsig.fmap.dal.spi.DataStoreProviderServices storeServices, org.gvsig.tools.dynobject.DynObject metadata, JDBCHelper helper) throws org.gvsig.fmap.dal.exception.InitializeException
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException
  • Method Details

    • getParameters

      public org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters getParameters()
      Specified by:
      getParameters in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Specified by:
      getParameters in interface JDBCStoreProvider
      Overrides:
      getParameters in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • getHelper

      public JDBCHelper getHelper()
      Specified by:
      getHelper in interface JDBCStoreProvider
    • getOperations

      public OperationsFactory getOperations()
    • getProviderName

      public String getProviderName()
      Specified by:
      getProviderName in interface org.gvsig.fmap.dal.spi.DataStoreProvider
    • getOIDType

      public int getOIDType()
      Specified by:
      getOIDType in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
    • createNewOID

      public Object createNewOID()
      Specified by:
      createNewOID in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
    • allowAutomaticValues

      public boolean allowAutomaticValues()
      Specified by:
      allowAutomaticValues in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      allowAutomaticValues in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • allowWrite

      public boolean allowWrite()
      Specified by:
      allowWrite in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      allowWrite in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • getDynValue

      public Object getDynValue(String name) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
      Specified by:
      getDynValue in interface org.gvsig.tools.dynobject.DynObject
      Overrides:
      getDynValue in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
    • getCountValue

      public JDBCStoreProvider.CalculatedValue<Long> getCountValue()
      Specified by:
      getCountValue in interface JDBCStoreProvider
    • getEnvelopeValue

      public JDBCStoreProvider.CalculatedValue<org.gvsig.fmap.geom.primitive.Envelope> getEnvelopeValue()
      Specified by:
      getEnvelopeValue in interface JDBCStoreProvider
    • getAllowWriteValue

      public JDBCStoreProvider.CalculatedValue<Boolean> getAllowWriteValue()
      Specified by:
      getAllowWriteValue in interface JDBCStoreProvider
    • getFeatureCount

      public long getFeatureCount() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getFeatureCount in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • closeResourceRequested

      public boolean closeResourceRequested(org.gvsig.fmap.dal.resource.spi.ResourceProvider resource)
      Specified by:
      closeResourceRequested in interface org.gvsig.fmap.dal.resource.spi.ResourceConsumer
    • close

      public void close() throws org.gvsig.fmap.dal.exception.CloseException
      Specified by:
      close in interface org.gvsig.fmap.dal.spi.DataStoreProvider
      Overrides:
      close in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.CloseException
    • resourceChanged

      public void resourceChanged(org.gvsig.fmap.dal.resource.spi.ResourceProvider resource)
      Specified by:
      resourceChanged in interface org.gvsig.fmap.dal.resource.spi.ResourceConsumer
    • getExplorer

      public org.gvsig.fmap.dal.DataServerExplorer getExplorer() throws org.gvsig.fmap.dal.exception.ReadException
      Specified by:
      getExplorer in interface org.gvsig.fmap.dal.spi.DataStoreProvider
      Overrides:
      getExplorer in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Overrides:
      doDispose in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.tools.exception.BaseException
    • getSourceId

      public String getSourceId()
      Specified by:
      getSourceId in interface org.gvsig.fmap.dal.spi.DataStoreProvider
      Specified by:
      getSourceId in interface JDBCStoreProvider
    • getName

      public String getName()
      Specified by:
      getName in interface org.gvsig.fmap.dal.spi.DataStoreProvider
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface org.gvsig.fmap.dal.spi.DataStoreProvider
    • getResource

      public org.gvsig.fmap.dal.resource.spi.ResourceProvider getResource()
      Specified by:
      getResource in interface org.gvsig.fmap.dal.spi.DataStoreProvider
    • open

      public void open() throws org.gvsig.fmap.dal.exception.OpenException
      Specified by:
      open in interface org.gvsig.fmap.dal.spi.DataStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.OpenException
    • createSet

      public org.gvsig.fmap.dal.feature.spi.FeatureSetProvider createSet(org.gvsig.fmap.dal.feature.FeatureQuery query, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      createSet in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • createSet

      public org.gvsig.fmap.dal.feature.spi.FeatureSetProvider createSet(org.gvsig.fmap.dal.feature.FeatureQuery query, org.gvsig.fmap.dal.feature.FeatureType providerFeatureType, org.gvsig.fmap.dal.feature.FeatureType storeFeatureType) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      createSet in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      createSet in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • initializeFeatureType

      protected void initializeFeatureType()
    • internalGetFeatureProviderByReference

      protected org.gvsig.fmap.dal.feature.spi.FeatureProvider internalGetFeatureProviderByReference(org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices reference, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      internalGetFeatureProviderByReference in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getEnvelope

      public org.gvsig.fmap.geom.primitive.Envelope getEnvelope() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getEnvelope in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      getEnvelope in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • performChanges

      public void performChanges(Iterator deleteds, Iterator inserteds, Iterator updateds, Iterator featureTypesChanged) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      performChanges in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      performChanges in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • supportsAppendMode

      public boolean supportsAppendMode()
      Specified by:
      supportsAppendMode in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      supportsAppendMode in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • createAppendOperation

      protected AppendOperation createAppendOperation() throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • endAppend

      public void endAppend() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      endAppend in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      endAppend in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • abortAppend

      public void abortAppend() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      abortAppend in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      abortAppend in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • beginAppend

      public void beginAppend() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      beginAppend in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      beginAppend in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • beginAppend

      public void beginAppend(int submode) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      beginAppend in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      beginAppend in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • append

      public void append(org.gvsig.fmap.dal.feature.spi.FeatureProvider featureProvider) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      append in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      append in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • canWriteGeometry

      public boolean canWriteGeometry(int geometryType, int geometrySubtype) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      canWriteGeometry in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      canWriteGeometry in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • supportsPassThroughMode

      public boolean supportsPassThroughMode()
      Specified by:
      supportsPassThroughMode in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      supportsPassThroughMode in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • passThroughInsert

      public void passThroughInsert(org.gvsig.fmap.dal.feature.spi.FeatureProvider featureProvider) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      passThroughInsert in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      passThroughInsert in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • passThroughUpdate

      public void passThroughUpdate(org.gvsig.fmap.dal.feature.spi.FeatureProvider featureProvider) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      passThroughUpdate in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      passThroughUpdate in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • passThroughUpdate

      public void passThroughUpdate(Object[] parameters, org.gvsig.expressionevaluator.Expression filter)
      Specified by:
      passThroughUpdate in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      passThroughUpdate in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • passThroughDelete

      public void passThroughDelete(org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices featureReference) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      passThroughDelete in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      passThroughDelete in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • passThroughDelete

      public void passThroughDelete(org.gvsig.expressionevaluator.Expression expression) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      passThroughDelete in interface org.gvsig.fmap.dal.feature.spi.FeatureStoreProvider
      Overrides:
      passThroughDelete in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setTransaction

      public void setTransaction(org.gvsig.fmap.dal.spi.DataTransactionServices transaction)
      Specified by:
      setTransaction in interface org.gvsig.fmap.dal.spi.DataStoreProvider
      Overrides:
      setTransaction in class org.gvsig.fmap.dal.spi.AbstractDataStoreProvider
    • toString

      public String toString()
      Overrides:
      toString in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
    • refresh

      public void refresh() throws org.gvsig.fmap.dal.exception.OpenException
      Specified by:
      refresh in interface org.gvsig.fmap.dal.spi.DataStoreProvider
      Overrides:
      refresh in class org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider
      Throws:
      org.gvsig.fmap.dal.exception.OpenException