-
Notifications
You must be signed in to change notification settings - Fork 22
Query API
Zsolt Herpai edited this page Apr 10, 2015
·
8 revisions
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);Query instance is thread-safe (given it's ConnectionProvider 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:
All methods return non-null objects and immutable collections.