public class PstmtFactory extends Object
This is only used by CallableSql and UpdateSql requests and does not support getGeneratedKeys.
| Constructor and Description |
|---|
PstmtFactory(PstmtBatch pstmtBatch) |
| Modifier and Type | Method and Description |
|---|---|
CallableStatement |
getCstmt(SpiTransaction t,
boolean logSql,
String sql,
BatchPostExecute batchExe)
Return a callable statement taking into account batch requirements.
|
CallableStatement |
getCstmt(SpiTransaction t,
String sql)
Get a callable statement without any batching.
|
PreparedStatement |
getPstmt(SpiTransaction t,
boolean logSql,
String sql,
BatchPostExecute batchExe)
Return a prepared statement taking into account batch requirements.
|
PreparedStatement |
getPstmt(SpiTransaction t,
String sql)
Get a prepared statement without any batching.
|
public PstmtFactory(PstmtBatch pstmtBatch)
public CallableStatement getCstmt(SpiTransaction t, String sql) throws SQLException
SQLExceptionpublic PreparedStatement getPstmt(SpiTransaction t, String sql) throws SQLException
SQLExceptionpublic PreparedStatement getPstmt(SpiTransaction t, boolean logSql, String sql, BatchPostExecute batchExe) throws SQLException
SQLExceptionpublic CallableStatement getCstmt(SpiTransaction t, boolean logSql, String sql, BatchPostExecute batchExe) throws SQLException
SQLExceptionCopyright © 2014. All Rights Reserved.