org.jooq.conf.StatementType Java Examples
The following examples show how to use
org.jooq.conf.StatementType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DbTestsApplication.java From java-persistence-frameworks-comparison with MIT License | 5 votes |
@Bean @Qualifier("static-statement-jooq-settings") public Settings jooqStaticStatementSettings() { Settings ret = jooqSettings(); ret.withStatementType(StatementType.STATIC_STATEMENT); return ret; }
Example #2
Source File: SQLBasedJoinExpander.java From samantha with MIT License | 5 votes |
public static EntityExpander getExpander(Configuration expanderConfig, Injector injector, RequestContext requestContext) { Settings settings = new Settings() .withStatementType(StatementType.STATIC_STATEMENT); DSLContext create = DSL.using(DB.getDataSource(expanderConfig.getString("db")), SQLDialect.DEFAULT, settings); return new SQLBasedJoinExpander(expanderConfig.getConfigList("expandFields"), create); }
Example #3
Source File: SQLBasedRetrieverConfig.java From samantha with MIT License | 5 votes |
public Retriever getRetriever(RequestContext requestContext) { Settings settings = new Settings() .withStatementType(StatementType.STATIC_STATEMENT); DSLContext create = DSL.using(DB.getDataSource(db), SQLDialect.DEFAULT, settings); return new SQLBasedRetriever(config, setCursorKey, limit, offset, selectSqlKey, matchFields, greaterFields, lessFields, matchFieldTypes, greaterFieldTypes, lessFieldTypes, create, selectFields, table, orderByFields, renameMap, requestContext, injector); }
Example #4
Source File: SQLBasedIndexerConfig.java From samantha with MIT License | 5 votes |
public Indexer getIndexer(RequestContext requestContext) { SamanthaConfigService configService = injector.instanceOf(SamanthaConfigService.class); Settings settings = new Settings() .withStatementType(StatementType.STATIC_STATEMENT); DSLContext create = DSL.using(DB.getDataSource(db), SQLDialect.DEFAULT, settings); return new SQLBasedIndexer(configService, daoConfigs, create, tableKey, table, injector, daoConfigKey, fields, fieldTypes, matchFields, matchFieldTypes, retrieverName, setCursorKey, daoNameKey, daoName, cacheJsonFile, filePathKey, separatorKey, config, 128, requestContext); }
Example #5
Source File: JooqFactory.java From droptools with Apache License 2.0 | 4 votes |
public StatementType getStatementType() { return statementType; }
Example #6
Source File: JooqFactory.java From droptools with Apache License 2.0 | 4 votes |
public void setStatementType(StatementType statementType) { this.statementType = statementType; }