Search in sources :

Example 16 with ConnectionParam

use of org.simpleflatmapper.db.ConnectionParam in project mapping-benchmark by arnaudroger.

the class QueryDslBenchmark method init.

@Setup
public void init() throws Exception {
    ConnectionParam cp = new ConnectionParam();
    cp.db = db;
    cp.init();
    templates = getSqlDialect(db);
}
Also used : ConnectionParam(org.simpleflatmapper.db.ConnectionParam)

Example 17 with ConnectionParam

use of org.simpleflatmapper.db.ConnectionParam in project mapping-benchmark by arnaudroger.

the class QueryDslSfmBenchmark method init.

@Setup
public void init() throws Exception {
    ConnectionParam cp = new ConnectionParam();
    cp.db = db;
    cp.init();
    templates = QueryDslBenchmark.getSqlDialect(db);
}
Also used : ConnectionParam(org.simpleflatmapper.db.ConnectionParam)

Example 18 with ConnectionParam

use of org.simpleflatmapper.db.ConnectionParam in project mapping-benchmark by arnaudroger.

the class Sql2OBenchmark method init.

@Setup
public void init() throws Exception {
    ConnectionParam connParam = new ConnectionParam();
    connParam.db = db;
    connParam.init();
    sql2o = new Sql2o(connParam.dataSource);
}
Also used : ConnectionParam(org.simpleflatmapper.db.ConnectionParam) Sql2o(org.sql2o.Sql2o)

Aggregations

ConnectionParam (org.simpleflatmapper.db.ConnectionParam)18 DefaultConfiguration (org.jooq.impl.DefaultConfiguration)6 EntityManager (javax.persistence.EntityManager)3 EntityManagerFactory (javax.persistence.EntityManagerFactory)3 Query (javax.persistence.Query)3 SfmRecordMapperProvider (org.simpleflatmapper.jooq.SfmRecordMapperProvider)3 Sql2o (org.sql2o.Sql2o)3 HashMap (java.util.HashMap)1 Setup (org.openjdk.jmh.annotations.Setup)1 MappedObject16 (org.simpleflatmapper.beans.MappedObject16)1 MappedObject4 (org.simpleflatmapper.beans.MappedObject4)1 TestSmallBenchmarkObjectRecord (org.simpleflatmapper.beans.tables.records.TestSmallBenchmarkObjectRecord)1 MappedObject16 (org.simpleflatmapper.jpa.beans.MappedObject16)1 SfmResultSetHandlerFactoryBuilder (org.simpleflatmapper.sql2o.SfmResultSetHandlerFactoryBuilder)1