Package ch.ergon.adam.jooq
Class JooqSource
java.lang.Object
ch.ergon.adam.jooq.JooqSource
- All Implemented Interfaces:
ch.ergon.adam.core.db.interfaces.SchemaSource,AutoCloseable
public abstract class JooqSource
extends Object
implements ch.ergon.adam.core.db.interfaces.SchemaSource
-
Constructor Summary
ConstructorsConstructorDescriptionJooqSource(String url) JooqSource(String url, String schemaName) JooqSource(Connection connection) JooqSource(Connection connection, String schemaName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected booleanfilterTable(org.jooq.Table<?> table) protected org.jooq.DSLContextprotected StringgetDefaultValue(org.jooq.Field<?> jooqField) protected org.jooq.MetagetMeta()ch.ergon.adam.core.db.schema.Schemaprotected abstract StringgetViewDefinition(String name) protected booleanisGeneratedName(String name) protected booleanisSequence(org.jooq.Field<?> jooqField) protected ch.ergon.adam.core.db.schema.DataTypemapDataTypeFromJooq(org.jooq.Field<?> jooqField, org.jooq.Table<?> jooqTable) protected ch.ergon.adam.core.db.schema.FieldmapFieldFromJooq(org.jooq.Field<?> jooqField, org.jooq.Table<?> jooqTable) protected voidsetSqlDialect(org.jooq.SQLDialect dialect)
-
Constructor Details
-
JooqSource
- Throws:
SQLException
-
JooqSource
-
JooqSource
- Throws:
SQLException
-
JooqSource
-
-
Method Details
-
setSqlDialect
protected void setSqlDialect(org.jooq.SQLDialect dialect) -
getMeta
protected org.jooq.Meta getMeta() -
getContext
protected org.jooq.DSLContext getContext() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getSchema
public ch.ergon.adam.core.db.schema.Schema getSchema()- Specified by:
getSchemain interfacech.ergon.adam.core.db.interfaces.SchemaSource
-
filterTable
protected boolean filterTable(org.jooq.Table<?> table) -
isGeneratedName
-
getViewDefinition
-
fetchViewDependencies
-
mapFieldFromJooq
protected ch.ergon.adam.core.db.schema.Field mapFieldFromJooq(org.jooq.Field<?> jooqField, org.jooq.Table<?> jooqTable) -
getDefaultValue
-
isSequence
protected boolean isSequence(org.jooq.Field<?> jooqField) -
mapDataTypeFromJooq
protected ch.ergon.adam.core.db.schema.DataType mapDataTypeFromJooq(org.jooq.Field<?> jooqField, org.jooq.Table<?> jooqTable)
-