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 BinaryEncoding
protected long
protected Table
protected StructureDataWriter.PayloadType
protected IDatabasePlatform
protected Map<Batch,
Statistics> protected String
protected boolean
protected boolean
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionStructureDataWriter
(IDatabasePlatform platform, String targetDatabaseName, StructureDataWriter.PayloadType payloatType, boolean useQuotedIdentifiers, BinaryEncoding binaryEncoding, boolean useJdbcTimestampFormat, boolean useUpsertStatements) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildSql
(DmlStatement.DmlType dmlType, String[] values, Column[] columns) void
close()
void
void
void
open
(DataContext context) void
setPayloadMap
(Map<Long, List<String>> payloadMap) void
setPayloadType
(StructureDataWriter.PayloadType payloadType) boolean
void
void
-
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:
open
in interfaceIDataResource
-
close
public void close()- Specified by:
close
in interfaceIDataResource
-
getStatistics
- Specified by:
getStatistics
in interfaceIDataResource
-
start
- Specified by:
start
in interfaceIDataWriter
-
start
- Specified by:
start
in interfaceIDataWriter
-
write
- Specified by:
write
in interfaceIDataWriter
-
buildSql
-
end
- Specified by:
end
in interfaceIDataWriter
-
end
- Specified by:
end
in interfaceIDataWriter
-
getPayloadType
-
setPayloadType
-
getPayloadMap
-
setPayloadMap
-