/** * Return if the call is dynamic SQL call. * This means the call has no parameters, is not using binding, * is not a stored procedure (CallableStatement), or cursor. * This means that a Statement, not a PreparedStatement will be used for the call. */ protected boolean isDynamicCall(AbstractSession session) { return DatabaseAccessor.shouldUseDynamicStatements && (!usesBinding(session)) && (!isResultSetScrollable()) && (!hasParameters()); }
/** * Return if the call is dynamic SQL call. * This means the call has no parameters, is not using binding, * is not a stored procedure (CallableStatement), or cursor. * This means that a Statement, not a PreparedStatement will be used for the call. */ protected boolean isDynamicCall(AbstractSession session) { return DatabaseAccessor.shouldUseDynamicStatements && (!usesBinding(session)) && (!isResultSetScrollable()) && (!hasParameters()); }
/** * Return if the call is dynamic SQL call. * This means the call has no parameters, is not using binding, * is not a stored procedure (CallableStatement), or cursor. * This means that a Statement, not a PreparedStatement will be used for the call. */ protected boolean isDynamicCall(AbstractSession session) { return DatabaseAccessor.shouldUseDynamicStatements && (!usesBinding(session)) && (!isResultSetScrollable()) && (!hasParameters()); }
/** * Return the SQL string for logging purposes. */ public String getLogString(Accessor accessor) { if (hasParameters()) { StringWriter writer = new StringWriter(); writer.write(getSQLString()); writer.write(Helper.cr()); if (hasParameters()) { AbstractSession session = null; if (getQuery() != null) { session = getQuery().getSession(); } appendLogParameters(getParameters(), accessor, writer, session); } return writer.toString(); } else { return getSQLString(); } }
/** * Return the SQL string for logging purposes. */ public String getLogString(Accessor accessor) { if (hasParameters()) { StringWriter writer = new StringWriter(); writer.write(getSQLString()); writer.write(Helper.cr()); if (hasParameters()) { AbstractSession session = null; if (getQuery() != null) { session = getQuery().getSession(); } appendLogParameters(getParameters(), accessor, writer, session); } return writer.toString(); } else { return getSQLString(); } }
/** * Return the SQL string for logging purposes. */ public String getLogString(Accessor accessor) { if (hasParameters()) { StringWriter writer = new StringWriter(); writer.write(getSQLString()); writer.write(Helper.cr()); if (hasParameters()) { AbstractSession session = null; if (getQuery() != null) { session = getQuery().getSession(); } appendLogParameters(getParameters(), accessor, writer, session); } return writer.toString(); } else { return getSQLString(); } }
if (dbCall.hasParameters()) {
if (!dbCall.hasParameters()) { if ((this.batchSize + dbCall.getSQLString().length()) > this.maxBatchSize) { executeBatchedStatements(session);
if (!dbCall.hasParameters()) { if ((this.batchSize + dbCall.getSQLString().length()) > this.maxBatchSize) { executeBatchedStatements(session);
if (dbCall.hasParameters()) {
if (!dbCall.hasParameters()) {
&& (!hasOptimisticLock() || session.getPlatform().canBatchWriteWithOptimisticLocking(this)) && (!shouldBuildOutputRow()) && (session.getPlatform().usesJDBCBatchWriting() || (!hasParameters())) && (!isLOBLocatorNeeded())) && (getQuery().isModifyQuery() && ((ModifyQuery)getQuery()).isBatchExecutionSupported());
&& (!hasOptimisticLock() || session.getPlatform().canBatchWriteWithOptimisticLocking(this)) && (!shouldBuildOutputRow()) && (session.getPlatform().usesJDBCBatchWriting() || (!hasParameters())) && (!isLOBLocatorNeeded())) && (getQuery().isModifyQuery() && ((ModifyQuery)getQuery()).isBatchExecutionSupported());
&& (!dbCall.shouldBuildOutputRow()) && (getPlatform().usesJDBCBatchWriting() || (!dbCall.hasParameters())) && (!dbCall.isLOBLocatorNeeded())) {