public class BatchedQuery extends SimpleQuery
| Modifier and Type | Field and Description |
|---|---|
private int |
batchSize |
private BatchedQuery[] |
blocks |
private java.lang.String |
sql |
private int |
valuesBraceClosePosition |
private int |
valuesBraceOpenPosition |
NO_PARAMETERS| Modifier | Constructor and Description |
|---|---|
private |
BatchedQuery(BatchedQuery src,
int batchSize) |
|
BatchedQuery(NativeQuery query,
TypeTransferModeRegistry transferModeRegistry,
int valuesBraceOpenPosition,
int valuesBraceClosePosition,
boolean sanitiserDisabled) |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
buildNativeSql(ParameterList params) |
BatchedQuery |
deriveForMultiBatch(int valueBlock) |
int |
getBatchSize()
Get the number of times this Query has been batched.
|
java.lang.String |
getNativeSql()
Method to return the sql based on number of batches.
|
java.lang.String |
toString(ParameterList params)
Stringize this query to a human-readable form, substituting particular parameter values for
parameter placeholders.
|
close, createParameterList, getBindCount, getEncodedStatementName, getFields, getMaxResultRowSize, getNativeQuery, getPrepareTypes, getResultSetColumnNameIndexMap, getSqlCommand, getStatementName, getSubqueries, hasBinaryFields, hasUnresolvedTypes, isEmpty, isPortalDescribed, isPreparedFor, isStatementDescribed, needUpdateFieldFormats, resetNeedUpdateFieldFormats, setCleanupRef, setFields, setHasBinaryFields, setPortalDescribed, setPrepareTypes, setStatementDescribed, setStatementName, toString, unprepareprivate java.lang.String sql
private final int valuesBraceOpenPosition
private final int valuesBraceClosePosition
private final int batchSize
private BatchedQuery[] blocks
public BatchedQuery(NativeQuery query, TypeTransferModeRegistry transferModeRegistry, int valuesBraceOpenPosition, int valuesBraceClosePosition, boolean sanitiserDisabled)
private BatchedQuery(BatchedQuery src, int batchSize)
public BatchedQuery deriveForMultiBatch(int valueBlock)
public int getBatchSize()
QuerygetBatchSize in interface QuerygetBatchSize in class SimpleQueryaddBatch() has been called.public java.lang.String getNativeSql()
getNativeSql in interface QuerygetNativeSql in class SimpleQueryprivate java.lang.String buildNativeSql(ParameterList params)
public java.lang.String toString(ParameterList params)
QuerytoString in interface QuerytoString in class SimpleQueryparams - a ParameterList returned by this Query's Query.createParameterList() method,
or null to leave the parameter placeholders unsubstituted.