Пример #1
0
 /**
  * 準備されたステートメントを返します。
  *
  * @param jdbcContext JDBCコンテキスト
  * @return 準備されたステートメント
  */
 protected PreparedStatement getPreparedStatement(JdbcContext jdbcContext) {
   PreparedStatement ps = jdbcContext.getPreparedStatement(executedSql);
   if (queryTimeout > 0) {
     StatementUtil.setQueryTimeout(ps, queryTimeout);
   }
   return ps;
 }
 /**
  * {@link PreparedStatement}をカスタマイズします。
  *
  * @param ps
  */
 protected void configurePreparedStatement(PreparedStatement ps) {
   if (fetchSize != null) {
     StatementUtil.setFetchSize(ps, fetchSize.intValue());
   }
   if (maxRows != null) {
     StatementUtil.setMaxRows(ps, maxRows.intValue());
   }
   if (queryTimeout != null) {
     StatementUtil.setQueryTimeout(ps, queryTimeout.intValue());
   }
 }