Class StructureDataWriter
java.lang.Object
org.jumpmind.symmetric.io.data.writer.StructureDataWriter
- All Implemented Interfaces:
IDataResource,IDataWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BinaryEncodingprotected longprotected Tableprotected StructureDataWriter.PayloadTypeprotected IDatabasePlatformprotected Map<Batch,Statistics> protected Stringprotected booleanprotected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionStructureDataWriter(IDatabasePlatform platform, String targetDatabaseName, StructureDataWriter.PayloadType payloatType, boolean useQuotedIdentifiers, BinaryEncoding binaryEncoding, boolean useJdbcTimestampFormat, boolean useUpsertStatements) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildSql(DmlStatement.DmlType dmlType, String[] values, Column[] columns) voidclose()voidvoidvoidopen(DataContext context) voidsetPayloadMap(Map<Long, List<String>> payloadMap) voidsetPayloadType(StructureDataWriter.PayloadType payloadType) booleanvoidvoid
-
Field Details
-
platform
-
currentTable
-
statistics
-
payloadMap
-
payloadType
-
currentBatch
protected long currentBatch -
targetDatabaseName
-
useQuotedIdentifiers
protected boolean useQuotedIdentifiers -
useJdbcTimestampFormat
protected boolean useJdbcTimestampFormat -
useUpsertStatements
protected boolean useUpsertStatements -
binaryEncoding
-
-
Constructor Details
-
StructureDataWriter
public StructureDataWriter(IDatabasePlatform platform, String targetDatabaseName, StructureDataWriter.PayloadType payloatType, boolean useQuotedIdentifiers, BinaryEncoding binaryEncoding, boolean useJdbcTimestampFormat, boolean useUpsertStatements)
-
-
Method Details
-
open
- Specified by:
openin interfaceIDataResource
-
close
public void close()- Specified by:
closein interfaceIDataResource
-
getStatistics
- Specified by:
getStatisticsin interfaceIDataResource
-
start
- Specified by:
startin interfaceIDataWriter
-
start
- Specified by:
startin interfaceIDataWriter
-
write
- Specified by:
writein interfaceIDataWriter
-
buildSql
-
end
- Specified by:
endin interfaceIDataWriter
-
end
- Specified by:
endin interfaceIDataWriter
-
getPayloadType
-
setPayloadType
-
getPayloadMap
-
setPayloadMap
-