Package nl.b3p.brmo.bag2.schema
Class BAG2ObjectTableWriter
java.lang.Object
nl.b3p.brmo.schema.ObjectTableWriter
nl.b3p.brmo.bag2.schema.BAG2ObjectTableWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.b3p.brmo.schema.ObjectTableWriter
ObjectTableWriter.Progress, ObjectTableWriter.Stage
-
Constructor Summary
ConstructorDescriptionBAG2ObjectTableWriter
(Connection connection, SQLDialect dialect, SchemaSQLMapper schemaSQLMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addObjectToBatch
(SchemaObjectInstance object) void
complete()
void
createIndexes
(ObjectType objectType) void
createKeys
(ObjectType objectType) boolean
Map<BAG2ObjectType,
Set<org.apache.commons.lang3.tuple.Pair<Object, Object>>> void
setIgnoreDuplicates
(boolean ignoreDuplicates) void
setKeysPerObjectType
(Map<BAG2ObjectType, Set<org.apache.commons.lang3.tuple.Pair<Object, Object>>> keysPerObjectType) void
start()
void
write
(InputStream bagXml) Methods inherited from class nl.b3p.brmo.schema.ObjectTableWriter
abortWorkerThread, closeBatches, endOfObjects, getArrayAttributeInsertBatch, getBatchSize, getConnection, getDialect, getInsertBatch, getObjectLimit, getProgressUpdater, getSchemaSQLMapper, getTablePrefix, isCreateKeysAndIndexes, isCreateSchema, isDropIfExists, isLinearizeCurves, isMultithreading, isUsePgCopy, prepareDatabaseForObject, setBatchSize, setCreateKeysAndIndexes, setCreateSchema, setDropIfExists, setLinearizeCurves, setMultithreading, setObjectLimit, setProgress, setProgressUpdater, setTablePrefix, setUsePgCopy, start, updateProgress, updateProgress
-
Constructor Details
-
BAG2ObjectTableWriter
public BAG2ObjectTableWriter(Connection connection, SQLDialect dialect, SchemaSQLMapper schemaSQLMapper)
-
-
Method Details
-
setIgnoreDuplicates
public void setIgnoreDuplicates(boolean ignoreDuplicates) -
getIgnoreDuplicates
public boolean getIgnoreDuplicates() -
getProgress
- Overrides:
getProgress
in classObjectTableWriter
-
getKeysPerObjectType
public Map<BAG2ObjectType,Set<org.apache.commons.lang3.tuple.Pair<Object, getKeysPerObjectType()Object>>> -
setKeysPerObjectType
public void setKeysPerObjectType(Map<BAG2ObjectType, Set<org.apache.commons.lang3.tuple.Pair<Object, Object>>> keysPerObjectType) -
start
- Throws:
SQLException
-
addObjectToBatch
- Overrides:
addObjectToBatch
in classObjectTableWriter
- Throws:
Exception
-
write
- Throws:
Exception
-
complete
- Overrides:
complete
in classObjectTableWriter
- Throws:
Exception
-
createKeys
- Overrides:
createKeys
in classObjectTableWriter
- Throws:
Exception
-
createIndexes
- Overrides:
createIndexes
in classObjectTableWriter
- Throws:
Exception
-