-
Notifications
You must be signed in to change notification settings - Fork 22
Query API
Zsolt Herpai edited this page Feb 6, 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) and re-entrant. Can be used to run any number of queries. An application generally instantiates a single instance of Query to implement it's Query operations.
Supported operations are:
- Select
- Insert / update
- Batch insert / update