public class PostgreSqlSink
extends ch.ergon.adam.jooq.JooqSink
| Constructor and Description |
|---|
PostgreSqlSink(java.sql.Connection dbConnection,
java.lang.String schema) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
castIfNeeded(ch.ergon.adam.core.db.schema.Field sourceField,
ch.ergon.adam.core.db.schema.Field targetField,
org.jooq.DSLContext renderContext) |
void |
changeFieldType(ch.ergon.adam.core.db.schema.Field oldField,
ch.ergon.adam.core.db.schema.Field newField,
ch.ergon.adam.core.db.schema.DataType targetDataType) |
void |
copyData(ch.ergon.adam.core.db.schema.Table sourceTable,
ch.ergon.adam.core.db.schema.Table targetTable,
java.lang.String sourceTableName) |
void |
createEnum(ch.ergon.adam.core.db.schema.DbEnum dbEnum) |
void |
dropEnum(ch.ergon.adam.core.db.schema.DbEnum dbEnum) |
void |
dropSequence(ch.ergon.adam.core.db.schema.Sequence sequence) |
void |
dropSequencesAndDefaults(ch.ergon.adam.core.db.schema.Table table) |
protected org.jooq.DataType<?> |
mapFieldToJooqType(ch.ergon.adam.core.db.schema.Field field) |
protected org.jooq.DataType<?> |
mapType(ch.ergon.adam.core.db.schema.Field field) |
addField, close, commitChanges, createConstraint, createForeignKey, createIndex, createSequence, createTable, createView, dropConstraint, dropDefault, dropField, dropForeignKey, dropIndex, dropTable, dropView, getDefaultValue, getFieldName, getTableName, mapRawType, renameTable, rollback, setDefault, setTargetSchemapublic PostgreSqlSink(java.sql.Connection dbConnection,
java.lang.String schema)
public void dropEnum(ch.ergon.adam.core.db.schema.DbEnum dbEnum)
dropEnum in interface ch.ergon.adam.core.db.interfaces.SchemaSinkdropEnum in class ch.ergon.adam.jooq.JooqSinkpublic void createEnum(ch.ergon.adam.core.db.schema.DbEnum dbEnum)
createEnum in interface ch.ergon.adam.core.db.interfaces.SchemaSinkcreateEnum in class ch.ergon.adam.jooq.JooqSinkpublic void changeFieldType(ch.ergon.adam.core.db.schema.Field oldField,
ch.ergon.adam.core.db.schema.Field newField,
ch.ergon.adam.core.db.schema.DataType targetDataType)
changeFieldType in interface ch.ergon.adam.core.db.interfaces.SchemaSinkchangeFieldType in class ch.ergon.adam.jooq.JooqSinkprotected org.jooq.DataType<?> mapType(ch.ergon.adam.core.db.schema.Field field)
mapType in class ch.ergon.adam.jooq.JooqSinkprotected org.jooq.DataType<?> mapFieldToJooqType(ch.ergon.adam.core.db.schema.Field field)
mapFieldToJooqType in class ch.ergon.adam.jooq.JooqSinkpublic void copyData(ch.ergon.adam.core.db.schema.Table sourceTable,
ch.ergon.adam.core.db.schema.Table targetTable,
java.lang.String sourceTableName)
copyData in interface ch.ergon.adam.core.db.interfaces.SchemaSinkcopyData in class ch.ergon.adam.jooq.JooqSinkprotected java.lang.String castIfNeeded(ch.ergon.adam.core.db.schema.Field sourceField,
ch.ergon.adam.core.db.schema.Field targetField,
org.jooq.DSLContext renderContext)
castIfNeeded in class ch.ergon.adam.jooq.JooqSinkpublic void dropSequencesAndDefaults(ch.ergon.adam.core.db.schema.Table table)
dropSequencesAndDefaults in interface ch.ergon.adam.core.db.interfaces.SchemaSinkdropSequencesAndDefaults in class ch.ergon.adam.jooq.JooqSinkpublic void dropSequence(ch.ergon.adam.core.db.schema.Sequence sequence)
dropSequence in interface ch.ergon.adam.core.db.interfaces.SchemaSinkdropSequence in class ch.ergon.adam.jooq.JooqSink