Package org.jumpmind.symmetric.io
Class JdbcBatchBulkDatabaseWriter
- All Implemented Interfaces:
IDataResource,IDataWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
AbstractDatabaseWriter.LoadStatus -
Field Summary
Fields inherited from class org.jumpmind.symmetric.io.data.writer.DynamicDefaultDatabaseWriter
tablePrefix, targetPlatform, targetTransactionFields inherited from class org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter
CUR_DATA, currentDmlStatement, currentDmlValues, hasUncommittedDdl, isCteExpression, logSqlBuilder, platform, transactionFields inherited from class org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
batch, CONFLICT_ERROR, CONFLICT_IGNORE, conflictResolver, context, isRequiresSavePointsInTransaction, lastApplyChangesOnly, lastData, lastUseConflictDetection, missingTables, sourceTable, statistics, targetTable, targetTables, TRANSACTION_ABORTED, uncommittedCount, writerSettings -
Constructor Summary
ConstructorsConstructorDescriptionJdbcBatchBulkDatabaseWriter(IDatabasePlatform symmetricPlatform, IDatabasePlatform targetPlatform, String tablePrefix, DatabaseWriterSettings writerSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidcheckForConflict(boolean isDml) protected AbstractDatabaseWriter.LoadStatusvoidprotected intprotected AbstractDatabaseWriter.LoadStatusprotected voidprepare()protected booleanrequireNewStatement(DmlStatement.DmlType currentType, CsvData data, boolean applyChangesOnly, boolean useConflictDetection, Conflict.DetectConflict detectType) voidprotected AbstractDatabaseWriter.LoadStatusMethods inherited from class org.jumpmind.symmetric.io.AbstractBulkDatabaseWriter
isFallBackToDefault, write, writeDefaultMethods inherited from class org.jumpmind.symmetric.io.data.writer.DynamicDefaultDatabaseWriter
close, commit, getPlatform, getPlatform, getPlatform, getTablePrefix, getTargetPlatform, getTargetTransaction, getTransaction, getTransaction, getTransaction, isLoadOnly, isSymmetricTable, isSymmetricTable, open, rollbackMethods inherited from class org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter
allowInsertIntoAutoIncrementColumns, bindVariables, commit, containsNullLookupKeyDataSinceLastStatement, create, create, dmlValuesToString, doesColumnNeedUpdated, end, getCurData, getCurrentDmlStatement, getSqlStatements, getTableKey, getWriterSettings, isCteExpression, logDataTruncation, logFailureDetails, lookupTableAtTarget, lookupTableFromCache, prepare, prepareAndExecute, preprocessSqlStatement, putTableInCache, quoteString, replaceCteExpression, sql, start, targetTableWasChangedByFilter, updateChangedDataIndicatorMethods inherited from class org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
checkForEarlyCommit, filterAfter, filterBefore, filterError, getBatch, getConflictResolver, getContext, getLookupDataMap, getPkDataFor, getRowData, getSourceTable, getStatistics, getTargetTable, hasFilterThatHandlesMissingTable, notifyFiltersBatchCommitted, notifyFiltersBatchComplete, notifyFiltersBatchRolledback, notifyFiltersEarlyCommit, script, setConflictResolver
-
Constructor Details
-
JdbcBatchBulkDatabaseWriter
public JdbcBatchBulkDatabaseWriter(IDatabasePlatform symmetricPlatform, IDatabasePlatform targetPlatform, String tablePrefix, DatabaseWriterSettings writerSettings)
-
-
Method Details
-
start
- Specified by:
startin interfaceIDataWriter- Overrides:
startin classAbstractBulkDatabaseWriter
-
bulkWrite
- Specified by:
bulkWritein classAbstractBulkDatabaseWriter
-
delete
- Overrides:
deletein classDefaultDatabaseWriter
-
insert
- Overrides:
insertin classDefaultDatabaseWriter
-
update
protected AbstractDatabaseWriter.LoadStatus update(CsvData data, boolean applyChangesOnly, boolean useConflictDetection) - Overrides:
updatein classDefaultDatabaseWriter
-
checkForConflict
protected void checkForConflict(boolean isDml) -
prepare
protected void prepare()- Overrides:
preparein classDefaultDatabaseWriter
-
execute
- Overrides:
executein classDefaultDatabaseWriter
-
end
- Specified by:
endin interfaceIDataWriter- Overrides:
endin classAbstractBulkDatabaseWriter
-
requireNewStatement
protected boolean requireNewStatement(DmlStatement.DmlType currentType, CsvData data, boolean applyChangesOnly, boolean useConflictDetection, Conflict.DetectConflict detectType) - Overrides:
requireNewStatementin classDefaultDatabaseWriter
-