Class PerformChangesOperation

All Implemented Interfaces:
ConnectionOperation

public class PerformChangesOperation extends AbstractConnectionWritableOperation
  • Field Details

    • table

    • featureType

      protected org.gvsig.fmap.dal.feature.FeatureType featureType
    • featureTypeSource

      protected org.gvsig.fmap.dal.feature.FeatureType featureTypeSource
    • featureTypeTarget

      protected org.gvsig.fmap.dal.feature.FeatureType featureTypeTarget
    • deleteds

      protected Iterator<org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices> deleteds
    • updateds

      protected Iterator<org.gvsig.fmap.dal.feature.spi.FeatureProvider> updateds
    • inserteds

      protected Iterator<org.gvsig.fmap.dal.feature.spi.FeatureProvider> inserteds
    • typeChanged

      protected boolean typeChanged
    • storeServices

      protected final org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices storeServices
  • Constructor Details

    • PerformChangesOperation

      public PerformChangesOperation(JDBCHelper helper)
    • PerformChangesOperation

      public PerformChangesOperation(JDBCHelper helper, OperationsFactory.TableReference table, org.gvsig.fmap.dal.feature.FeatureType featureType, Iterator<org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices> deleteds, Iterator<org.gvsig.fmap.dal.feature.spi.FeatureProvider> inserteds, Iterator<org.gvsig.fmap.dal.feature.spi.FeatureProvider> updateds, Iterator<org.gvsig.fmap.dal.feature.FeatureType.FeatureTypeChanged> featureTypesChanged, org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices storeServices)
  • Method Details

    • isTypeChanged

      public boolean isTypeChanged()
    • perform

      public Object perform(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getDeleteSQL

      public String getDeleteSQL()
    • getDeleteSQL

      public String getDeleteSQL(JDBCSQLBuilderBase sqlbuilder)
    • performDeletes

      public void performDeletes(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getInsertSQL

      public String getInsertSQL()
    • getInsertSQL

      public String getInsertSQL(JDBCSQLBuilderBase sqlbuilder)
    • performInserts

      public void performInserts(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getUpdateSQL

      public String getUpdateSQL()
    • getUpdateSQL

      public String getUpdateSQL(JDBCSQLBuilderBase sqlbuilder)
    • performUpdates

      public void performUpdates(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getCurrentFeatureTypeDB

      protected org.gvsig.fmap.dal.feature.FeatureType getCurrentFeatureTypeDB()
    • getUpdateTableSQLs

      public List<String> getUpdateTableSQLs()
    • getUpdateTableSQLs

      public List<String> getUpdateTableSQLs(org.gvsig.fmap.dal.feature.FeatureType currentFeatureTypeDB, Map<String,org.gvsig.tools.util.Bitmask> changes)
    • getUpdateTableChanges

      public Map<String,org.gvsig.tools.util.Bitmask> getUpdateTableChanges(org.gvsig.fmap.dal.feature.FeatureType currentFeatureTypeDB)
    • getAlterTableChanges

      protected org.gvsig.tools.util.Bitmask getAlterTableChanges(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor src, org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor target)
    • performUpdateTable

      public void performUpdateTable(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException