public class SqlPreparedStatementImpl extends Object implements SqlPreparedStatement
| Constructor and Description |
|---|
SqlPreparedStatementImpl(SqlStatementHandler statementHandler,
AnalyticsManager analyticsManager,
SqlConnection connection,
String sql,
boolean returnGeneratedKeys)
Constructeur.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
close() |
int |
executeBatch() |
SqlQueryResult |
executeQuery(Domain domain) |
int |
executeUpdate() |
Object |
getGeneratedKey(String columnName,
Domain domain) |
void |
init() |
void |
registerParameter(int index,
DataType dataType,
boolean in) |
void |
setValue(int index,
Object o) |
String |
toString() |
public SqlPreparedStatementImpl(SqlStatementHandler statementHandler, AnalyticsManager analyticsManager, SqlConnection connection, String sql, boolean returnGeneratedKeys)
sql - Requête SQLconnection - ConnexionreturnGeneratedKeys - true si on récupère les clés générées.public final void close()
close in interface SqlPreparedStatementclose in interface AutoCloseablepublic final void registerParameter(int index,
DataType dataType,
boolean in)
registerParameter in interface SqlPreparedStatementpublic final void init()
throws SQLException
init in interface SqlPreparedStatementSQLExceptionpublic final void setValue(int index,
Object o)
throws SQLException
setValue in interface SqlPreparedStatementSQLExceptionpublic final SqlQueryResult executeQuery(Domain domain) throws SQLException
executeQuery in interface SqlPreparedStatementSQLExceptionpublic final int executeUpdate()
throws SQLException
executeUpdate in interface SqlPreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface SqlPreparedStatementSQLExceptionpublic int executeBatch()
throws SQLException
executeBatch in interface SqlPreparedStatementSQLExceptionpublic final Object getGeneratedKey(String columnName, Domain domain) throws SQLException
getGeneratedKey in interface SqlPreparedStatementSQLExceptionCopyright © 2016. All Rights Reserved.