パッケージ org.nkjmlab.sorm4j
インタフェース SqlExecutor
-
- 既知のサブインタフェースのリスト:
OrmConnection,OrmTransaction,TypedOrmConnection<T>,TypedOrmTransaction<T>
public interface SqlExecutorA interface for executing SQL with parameters.- 作成者:
- nkjm
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 intexecuteUpdate(String sql, Object... parameters)Executes an update and returns the number of rows modified.intexecuteUpdate(SqlStatement sql)ConnectiongetJdbcConnection()GetsConnection.
-
-
-
メソッドの詳細
-
executeUpdate
int executeUpdate(String sql, Object... parameters)
Executes an update and returns the number of rows modified.This method wraps
Statement.executeUpdate(String)Parameters will be set according with the correspondence defined in
SqlParameterSetter.setParameters(PreparedStatement, Object...)- パラメータ:
sql- SQL code to be executed.parameters- Parameters to be used in the PreparedStatement.
-
executeUpdate
int executeUpdate(SqlStatement sql)
- パラメータ:
sql-- 戻り値:
-
getJdbcConnection
Connection getJdbcConnection()
GetsConnection.- 戻り値:
-
-