3637383940414243444546
if (isBatch) { pstmt = getPstmt(t, sql, persistRequest, false); } else { pstmt = getPstmt(t, sql, false); } dataBind = new DataBind(pstmt); meta.bind(persistRequest, this); logSql(sql); }
4647484950515253545556
if (isBatch) { pstmt = getPstmt(t, sql, persistRequest, false); } else { pstmt = getPstmt(t, sql, false); } dataBind = new DataBind(pstmt); meta.bind(persistRequest, this, updatePlan); setUpdateGenValues();
124125126127128129130131132133134
pstmt.setQueryTimeout(updateSql.getTimeout()); } String bindLog = null; if (!bindParams.isEmpty()){ bindLog = binder.bind(bindParams, new DataBind(pstmt)); } request.setBindLog(bindLog); // derive the statement type (for TransactionEvent)
128129130131132133134135136137138
pstmt = pstmtFactory.getPstmt(t, sql); } String bindLog = null; if (!bindParams.isEmpty()){ bindLog = binder.bind(bindParams, new DataBind(pstmt)); } request.setBindLog(bindLog); return pstmt;
151152153154155156157158159160161
if (query.getTimeout() > 0){ pstmt.setQueryTimeout(query.getTimeout()); } bindLog = predicates.bind(new DataBind(pstmt)); ResultSet rset = pstmt.executeQuery(); dataReader = new RsetDataReader(rset); boolean hitMaxRows = false;
104105106107108109110111112113114
cstmt.setQueryTimeout(callableSql.getTimeout()); } String bindLog = null; if (!bindParams.isEmpty()){ bindLog = binder.bind(bindParams, new DataBind(cstmt)); } request.setBindLog(bindLog); // required to read OUT params later
121122123124125126127128129130131
if (query.getTimeout() > 0){ pstmt.setQueryTimeout(query.getTimeout()); } bindLog = predicates.bind(new DataBind(pstmt)); rset = pstmt.executeQuery(); if (!rset.next()){ throw new PersistenceException("Expecting 1 row but got none?");
8788899091929394959697
if (query.getBufferFetchSizeHint() > 0){ pstmt.setFetchSize(query.getBufferFetchSizeHint()); } if (!bindParams.isEmpty()) { bindLog = binder.bind(bindParams, new DataBind(pstmt)); } if (request.isLogSql()) { String logSql = sql; if (TransactionManager.SQL_LOGGER.isTraceEnabled()) {
380381382383384385386387388389390
} if (query.getBufferFetchSizeHint() > 0) { pstmt.setFetchSize(query.getBufferFetchSizeHint()); } DataBind dataBind = new DataBind(pstmt); // bind keys for encrypted properties queryPlan.bindEncryptedProperties(dataBind); bindLog = predicates.bind(dataBind);
979899100101102103104105106107
if (isBatch) { pstmt = getPstmt(t, sql, persistRequest, useGeneratedKeys); } else { pstmt = getPstmt(t, sql, useGeneratedKeys); } dataBind = new DataBind(pstmt); // bind the bean property values meta.bind(this, bean, withId); logSql(sql);