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, unprepare
private 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()
Query
getBatchSize
in interface Query
getBatchSize
in class SimpleQuery
addBatch()
has been called.public java.lang.String getNativeSql()
getNativeSql
in interface Query
getNativeSql
in class SimpleQuery
private java.lang.String buildNativeSql(ParameterList params)
public java.lang.String toString(ParameterList params)
Query
toString
in interface Query
toString
in class SimpleQuery
params
- a ParameterList returned by this Query's Query.createParameterList()
method,
or null
to leave the parameter placeholders unsubstituted.