Skip to content

Query API

Zsolt Herpai edited this page Oct 22, 2015 · 8 revisions

Instantiating

A Query interface can be created based on Connections from the ConnectionProvider:

Query query = fluentJdbc.query();

Or based on a specific Connection instance (eg for one session use):

Connection connection = ...
Query query = fluentJdbc.queryOn(connection);

Using the Query interface

Query instance is thread-safe, can be used to run any number of queries. An application - in general - instantiates a single instance of Query to use it for all of it's FluentJdbc query operations.

Supported operations are:

Comments

All methods return non-null objects and immutable collections.