public class PerformChangesOperation extends AbstractConnectionWritableOperation
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Iterator<FeatureReferenceProviderServices> |
deleteds |
protected FeatureType |
featureType |
protected FeatureType |
featureTypeSource |
protected FeatureType |
featureTypeTarget |
protected java.util.Iterator<FeatureProvider> |
inserteds |
protected FeatureStoreProviderServices |
storeServices |
protected OperationsFactory.TableReference |
table |
protected boolean |
typeChanged |
protected java.util.Iterator<FeatureProvider> |
updateds |
conn, helper, LOGGER| Constructor and Description |
|---|
PerformChangesOperation(JDBCHelper helper) |
PerformChangesOperation(JDBCHelper helper,
OperationsFactory.TableReference table,
FeatureType featureType,
java.util.Iterator<FeatureReferenceProviderServices> deleteds,
java.util.Iterator<FeatureProvider> inserteds,
java.util.Iterator<FeatureProvider> updateds,
java.util.Iterator<FeatureType.FeatureTypeChanged> featureTypesChanged,
FeatureStoreProviderServices storeServices) |
| Modifier and Type | Method and Description |
|---|---|
protected Bitmask |
getAlterTableChanges(FeatureAttributeDescriptor src,
FeatureAttributeDescriptor target) |
protected FeatureType |
getCurrentFeatureTypeDB() |
java.lang.String |
getDeleteSQL() |
java.lang.String |
getDeleteSQL(JDBCSQLBuilderBase sqlbuilder) |
java.lang.String |
getInsertSQL() |
java.lang.String |
getInsertSQL(JDBCSQLBuilderBase sqlbuilder) |
java.lang.String |
getUpdateSQL() |
java.lang.String |
getUpdateSQL(JDBCSQLBuilderBase sqlbuilder) |
java.util.Map<java.lang.String,Bitmask> |
getUpdateTableChanges(FeatureType currentFeatureTypeDB) |
java.util.List<java.lang.String> |
getUpdateTableSQLs() |
java.util.List<java.lang.String> |
getUpdateTableSQLs(FeatureType currentFeatureTypeDB,
java.util.Map<java.lang.String,Bitmask> changes) |
boolean |
isTypeChanged() |
java.lang.Object |
perform(JDBCConnection conn) |
void |
performDeletes(JDBCConnection conn) |
void |
performInserts(JDBCConnection conn) |
void |
performUpdates(JDBCConnection conn) |
void |
performUpdateTable(JDBCConnection conn) |
getConnectioncloseConnection, continueTransactionAllowed, createSQLBuilder, needTransaction, perform_operation, performprotected OperationsFactory.TableReference table
protected FeatureType featureType
protected FeatureType featureTypeSource
protected FeatureType featureTypeTarget
protected java.util.Iterator<FeatureReferenceProviderServices> deleteds
protected java.util.Iterator<FeatureProvider> updateds
protected java.util.Iterator<FeatureProvider> inserteds
protected boolean typeChanged
protected final FeatureStoreProviderServices storeServices
public PerformChangesOperation(JDBCHelper helper)
public PerformChangesOperation(JDBCHelper helper, OperationsFactory.TableReference table, FeatureType featureType, java.util.Iterator<FeatureReferenceProviderServices> deleteds, java.util.Iterator<FeatureProvider> inserteds, java.util.Iterator<FeatureProvider> updateds, java.util.Iterator<FeatureType.FeatureTypeChanged> featureTypesChanged, FeatureStoreProviderServices storeServices)
public boolean isTypeChanged()
public java.lang.Object perform(JDBCConnection conn) throws DataException
DataExceptionpublic java.lang.String getDeleteSQL()
public java.lang.String getDeleteSQL(JDBCSQLBuilderBase sqlbuilder)
public void performDeletes(JDBCConnection conn) throws DataException
DataExceptionpublic java.lang.String getInsertSQL()
public java.lang.String getInsertSQL(JDBCSQLBuilderBase sqlbuilder)
public void performInserts(JDBCConnection conn) throws DataException
DataExceptionpublic java.lang.String getUpdateSQL()
public java.lang.String getUpdateSQL(JDBCSQLBuilderBase sqlbuilder)
public void performUpdates(JDBCConnection conn) throws DataException
DataExceptionprotected FeatureType getCurrentFeatureTypeDB()
public java.util.List<java.lang.String> getUpdateTableSQLs()
public java.util.List<java.lang.String> getUpdateTableSQLs(FeatureType currentFeatureTypeDB, java.util.Map<java.lang.String,Bitmask> changes)
public java.util.Map<java.lang.String,Bitmask> getUpdateTableChanges(FeatureType currentFeatureTypeDB)
protected Bitmask getAlterTableChanges(FeatureAttributeDescriptor src, FeatureAttributeDescriptor target)
public void performUpdateTable(JDBCConnection conn) throws DataException
DataException