org.jooq.conf.RenderNameStyle Java Examples
The following examples show how to use
org.jooq.conf.RenderNameStyle.
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 @Primary public Settings jooqSettings() { Settings ret = new Settings(); ret.withRenderSchema(false); ret.setRenderFormatted(true); ret.setRenderNameStyle(RenderNameStyle.AS_IS); return ret; }
Example #2
Source File: DSLContexts.java From keywhiz with Apache License 2.0 | 5 votes |
public static DSLContext databaseAgnostic(DataSource dataSource) throws SQLException { SQLDialect dialect; try (Connection conn = dataSource.getConnection()) { dialect = dialect(conn); // See https://github.com/jOOQ/jOOQ/issues/4730 if (conn.getMetaData().getURL().startsWith("jdbc:pgsql:")) { dialect = POSTGRES; } } return DSL.using(dataSource, dialect, new Settings() .withRenderSchema(false) .withRenderNameStyle(RenderNameStyle.AS_IS)); }
Example #3
Source File: AbstractSQLEntityStoreAssembler.java From attic-polygene-java with Apache License 2.0 | 4 votes |
protected Settings getSettings() { return new Settings().withRenderNameStyle( RenderNameStyle.QUOTED ); }
Example #4
Source File: JooqFactory.java From droptools with Apache License 2.0 | 4 votes |
public RenderNameStyle getRenderNameStyle() { return renderNameStyle; }
Example #5
Source File: JooqFactory.java From droptools with Apache License 2.0 | 4 votes |
public void setRenderNameStyle(RenderNameStyle renderNameStyle) { this.renderNameStyle = renderNameStyle; }