public class PerformChangesOperation extends AbstractConnectionWritableOperation
Modifier and Type | Field and Description |
---|---|
protected String |
dbName |
protected Iterator<FeatureReferenceProviderServices> |
deleteds |
protected FeatureType |
featureType |
protected Iterator<FeatureStoreProvider.FeatureTypeChanged> |
featureTypesChanged |
protected Iterator<FeatureProvider> |
inserteds |
protected String |
schemaName |
protected String |
tableName |
protected boolean |
typeChanged |
protected Iterator<FeatureProvider> |
updateds |
conn, helper, logger
Constructor and Description |
---|
PerformChangesOperation(JDBCHelper helper) |
PerformChangesOperation(JDBCHelper helper,
String dbName,
String schemaName,
String tableName,
FeatureType featureType,
Iterator<FeatureReferenceProviderServices> deleteds,
Iterator<FeatureProvider> inserteds,
Iterator<FeatureProvider> updateds,
Iterator<FeatureStoreProvider.FeatureTypeChanged> featureTypesChanged) |
getConnection
continueTransactionAllowed, createSQLBuilder, needTransaction, perform_operation, perform
protected String dbName
protected String schemaName
protected String tableName
protected FeatureType featureType
protected Iterator<FeatureReferenceProviderServices> deleteds
protected Iterator<FeatureStoreProvider.FeatureTypeChanged> featureTypesChanged
protected Iterator<FeatureProvider> updateds
protected Iterator<FeatureProvider> inserteds
protected boolean typeChanged
public PerformChangesOperation(JDBCHelper helper)
public PerformChangesOperation(JDBCHelper helper, String dbName, String schemaName, String tableName, FeatureType featureType, Iterator<FeatureReferenceProviderServices> deleteds, Iterator<FeatureProvider> inserteds, Iterator<FeatureProvider> updateds, Iterator<FeatureStoreProvider.FeatureTypeChanged> featureTypesChanged)
public boolean isTypeChanged()
public final Object perform(Connection conn) throws DataException
DataException
protected JDBCSQLBuilderBase buildDeleteSQL(String database, String schema, String table, FeatureType type)
public void performDeletes(Connection conn, String database, String schema, String table, FeatureType type, Iterator<FeatureReferenceProviderServices> deleteds) throws DataException
DataException
protected JDBCSQLBuilderBase buildInsertSQL(String database, String schema, String table, FeatureType type)
public void performInserts(Connection conn, String database, String schema, String table, FeatureType type, Iterator<FeatureProvider> inserteds) throws DataException
DataException
protected JDBCSQLBuilderBase buildUpdateSQL(String database, String schema, String table, FeatureType type)
public void performUpdates(Connection conn, String database, String schema, String table, FeatureType type, Iterator<FeatureProvider> updateds) throws DataException
DataException
protected JDBCSQLBuilderBase buildUpdateTableSQL(String database, String schema, String table, FeatureType original, FeatureType target)
public void performUpdateTable(Connection conn, String database, String schema, String table, FeatureType original, FeatureType target) throws DataException
DataException