-
Notifications
You must be signed in to change notification settings - Fork 22
Configuration
Zsolt Herpai edited this page Feb 6, 2015
·
3 revisions
FluentJdbc can be configured / customized through it's builder:
FluentJdbc fluentJdbc = new FluentJdbcBuilder()
// configuration
.build();Sets a ConnectionProvider for FluentJdbc to provide the Query API with Connections. See ConnectionProvider page for details and possible implementations.
Adds parameter setters to support query parameters of custom types, like UUID or other value objects. java.time is supported by default. Setters can be defined to override existing types - if necessary. Refer to Query parameter types for setter implementation details.
Overrides vendor default fetch size for select queries. Some vendors may have fetch sizes that results in bad performance (Oracle has 10), or memory issues (MySQL fetch size is infinite).