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 Details

  • 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:
      close in interface AutoCloseable
    • getSchema

      public ch.ergon.adam.core.db.schema.Schema getSchema()
      Specified by:
      getSchema in interface ch.ergon.adam.core.db.interfaces.SchemaSource
    • filterTable

      protected boolean filterTable(org.jooq.Table<?> table)
    • isGeneratedName

      protected boolean isGeneratedName(String name)
    • getViewDefinition

      protected abstract String getViewDefinition(String name)
    • fetchViewDependencies

      protected abstract Map<String,List<String>> fetchViewDependencies()
    • mapFieldFromJooq

      protected ch.ergon.adam.core.db.schema.Field mapFieldFromJooq(org.jooq.Field<?> jooqField, org.jooq.Table<?> jooqTable)
    • getDefaultValue

      protected String getDefaultValue(org.jooq.Field<?> jooqField)
    • 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)