Interface SqlClient
- All Known Subinterfaces:
DB2Connection, JDBCConnection, JDBCPool, MSSQLConnection, MySQLConnection, OracleConnection, PgConnection, Pool, SqlConnection
public interface SqlClient
Defines common SQL client operations with a database server.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionclose()Close the client and release the associated resources.preparedQuery(String sql) Create a prepared query, one of thePreparedQuery.execute(Tuple)orPreparedQuery.executeBatch(List)methods must be called to execute the query.preparedQuery(String sql, PrepareOptions options) Create a prepared query, one of thePreparedQuery.execute(Tuple)orPreparedQuery.executeBatch(List)methods must be called to execute the query.Create a query, theQuery.execute()method must be called to execute the query.
-
Method Details
-
query
Create a query, theQuery.execute()method must be called to execute the query.- Returns:
- the query
-
preparedQuery
Create a prepared query, one of thePreparedQuery.execute(Tuple)orPreparedQuery.executeBatch(List)methods must be called to execute the query.- Returns:
- the prepared query
-
preparedQuery
Create a prepared query, one of thePreparedQuery.execute(Tuple)orPreparedQuery.executeBatch(List)methods must be called to execute the query.- Returns:
- the prepared query
-
close
-