Search in sources :

Example 11 with CollectDSLContext

use of org.openforis.collect.persistence.jooq.CollectDSLContext in project collect by openforis.

the class DbInitializer method start.

public void start() {
    DialectAwareJooqConfiguration jooqConf = new DialectAwareJooqConfiguration(connectionProvider);
    CollectDSLContext dslContext = new CollectDSLContext(jooqConf);
    if (!dslContext.isSchemaLess()) {
        createDbSchema();
    }
}
Also used : DialectAwareJooqConfiguration(org.jooq.impl.DialectAwareJooqConfiguration) CollectDSLContext(org.openforis.collect.persistence.jooq.CollectDSLContext)

Aggregations

CollectDSLContext (org.openforis.collect.persistence.jooq.CollectDSLContext)11 Record (org.jooq.Record)3 Field (org.jooq.Field)2 ConfigurationItem (org.openforis.collect.model.Configuration.ConfigurationItem)2 StringWriter (java.io.StringWriter)1 Writer (java.io.Writer)1 Connection (java.sql.Connection)1 DatabaseMetaData (java.sql.DatabaseMetaData)1 SQLException (java.sql.SQLException)1 Statement (java.sql.Statement)1 ArrayList (java.util.ArrayList)1 Condition (org.jooq.Condition)1 Name (org.jooq.Name)1 Query (org.jooq.Query)1 TableField (org.jooq.TableField)1 TableLike (org.jooq.TableLike)1 DialectAwareJooqConfiguration (org.jooq.impl.DialectAwareJooqConfiguration)1 Configuration (org.openforis.collect.model.Configuration)1 Lookup (org.openforis.collect.persistence.jooq.tables.Lookup)1 LookupRecord (org.openforis.collect.persistence.jooq.tables.records.LookupRecord)1