public class KPreparedStatementImpl extends Object implements KPreparedStatement
KPreparedStatement.ParameterType| Constructor and Description |
|---|
KPreparedStatementImpl(StatementHandler statementHandler,
DataBaseListener dataBaseListener,
KConnection connection,
String sql,
boolean returnGeneratedKeys)
Constructeur.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
close() |
int |
executeBatch() |
QueryResult |
executeQuery(Domain domain) |
int |
executeUpdate() |
Object |
getGeneratedKey(String columnName,
Domain domain) |
void |
init() |
void |
registerParameter(int index,
DataType dataType,
KPreparedStatement.ParameterType parameterType) |
void |
setValue(int index,
Object o) |
String |
toString() |
public KPreparedStatementImpl(StatementHandler statementHandler, DataBaseListener dataBaseListener, KConnection 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 KPreparedStatementclose in interface AutoCloseablepublic final void registerParameter(int index,
DataType dataType,
KPreparedStatement.ParameterType parameterType)
registerParameter in interface KPreparedStatementpublic final void init()
throws SQLException
init in interface KPreparedStatementSQLExceptionpublic final void setValue(int index,
Object o)
throws SQLException
setValue in interface KPreparedStatementSQLExceptionpublic final QueryResult executeQuery(Domain domain) throws SQLException
executeQuery in interface KPreparedStatementSQLExceptionpublic final int executeUpdate()
throws SQLException
executeUpdate in interface KPreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface KPreparedStatementSQLExceptionpublic int executeBatch()
throws SQLException
executeBatch in interface KPreparedStatementSQLExceptionpublic final Object getGeneratedKey(String columnName, Domain domain) throws SQLException
getGeneratedKey in interface KPreparedStatementSQLExceptionCopyright © 2014. All Rights Reserved.