public class BatchedQuery extends Object
| Constructor and Description |
|---|
BatchedQuery(NativeQuery query,
org.postgresql.core.v3.ProtocolConnectionImpl protoConnection,
int valuesBraceOpenPosition,
int valuesBraceClosePosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this query and free any server-side resources associated with it.
|
ParameterList |
createParameterList()
Create a ParameterList suitable for storing parameters associated with this Query.
|
BatchedQuery |
deriveForMultiBatch(int valueBlock) |
int |
getBatchSize()
Get the number of times this Query has been batched.
|
int |
getBindCount() |
int |
getMaxResultRowSize()
Return maximum size in bytes that each result row from this query may return.
|
org.postgresql.core.v3.SimpleQuery[] |
getSubqueries()
Return a list of the SimpleQuery objects that make up this query.
|
boolean |
hasBinaryFields() |
boolean |
isEmpty() |
boolean |
isStatementDescribed() |
void |
setHasBinaryFields(boolean hasBinaryFields) |
String |
toString() |
String |
toString(ParameterList parameters)
Stringize this query to a human-readable form, substituting particular parameter values for
parameter placeholders.
|
public BatchedQuery(NativeQuery query, org.postgresql.core.v3.ProtocolConnectionImpl protoConnection, int valuesBraceOpenPosition, int valuesBraceClosePosition)
public BatchedQuery deriveForMultiBatch(int valueBlock)
public int getBatchSize()
QueryaddBatch() has been called.public String toString()
public ParameterList createParameterList()
QueryIf this query has no parameters, a ParameterList will be returned, but it may be a shared immutable object. If this query does have parameters, the returned ParameterList is a new list, unshared by other callers.
public String toString(ParameterList parameters)
Queryparameters - a ParameterList returned by this Query's Query.createParameterList() method,
or null to leave the parameter placeholders unsubstituted.public void close()
QueryA closed Query should not be executed.
public org.postgresql.core.v3.SimpleQuery[] getSubqueries()
null if this object is already a
single-statement query.public int getMaxResultRowSize()
IllegalStateException - if the query is not describedpublic boolean hasBinaryFields()
public void setHasBinaryFields(boolean hasBinaryFields)
public boolean isStatementDescribed()
public boolean isEmpty()
public final int getBindCount()
Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.