| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Integer | |
| private @Nullable PhantomReference | |
| private short | |
| private @Nullable byte[] | |
| private @Nullable Field[] | fields
The stored fields from previous execution or describe of a prepared statement. |
| private boolean | |
| private static final Logger | |
| private final NativeQuery | |
| private boolean | |
| pack-priv static final SimpleParameterList | |
| private boolean | |
| private @Nullable int[] | |
| private @Nullable Map | |
| private final boolean | |
| private boolean | |
| private @Nullable String | |
| private final @Nullable TypeTransferModeRegistry | |
| private @Nullable BitSet |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | SimpleQuery(NativeQuery query, @Nullable TypeTransferModeRegistry transferModeRegistry, boolean sanitiserDisabled)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. Close this query and free any server-side resources associated with it. |
| public ParameterList | createParameterList()
Implements org. Create a ParameterList suitable for storing parameters associated with this Query. |
| public int | getBatchSize()
Implements org. Get the number of times this Query has been batched. |
| public final int | |
| pack-priv @Nullable byte[] | |
| pack-priv @Nullable Field[] | Returns: the fields that this query will return.Returns the fields that this query will return. |
| public int | Returns: Max size of result data in bytes according to returned fields, 0 if no results, -1 if result is unbounded.Return maximum size in bytes that each result row from this query may return. |
| pack-priv NativeQuery | |
| public String | getNativeSql()
Implements org. Returns SQL in native for database format. |
| pack-priv @Nullable int[] | |
| public @Nullable Map | getResultSetColumnNameIndexMap()
Implements org. Get a map that a result set can use to find the index associated to a name. |
| public SqlCommand | getSqlCommand()
Implements org. Returns properties of the query (sql keyword, and some other parsing info). |
| pack-priv @Nullable String | |
| public @Nullable SimpleQuery[] | getSubqueries()
Implements org. Return a list of the Query objects that make up this query. |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | |
| pack-priv boolean | Returns: true if current query needs field formats be adjusted as per connection configurationReturns true if current query needs field formats be adjusted as per connection configuration. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public String | |
| public String | |
| pack-priv void |
| cachedMaxResultRowSize | back to summary |
|---|---|
| private @Nullable Integer cachedMaxResultRowSize | |
| cleanupRef | back to summary |
|---|---|
| private @Nullable PhantomReference<?> cleanupRef | |
| deallocateEpoch | back to summary |
|---|---|
| private short deallocateEpoch | |
| encodedStatementName | back to summary |
|---|---|
| private @Nullable byte[] encodedStatementName | |
| fields | back to summary |
|---|---|
| private @Nullable Field[] fields The stored fields from previous execution or describe of a prepared statement. Always null for non-prepared statements. | |
| hasBinaryFields | back to summary |
|---|---|
| private boolean hasBinaryFields | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| nativeQuery | back to summary |
|---|---|
| private final NativeQuery nativeQuery | |
| needUpdateFieldFormats | back to summary |
|---|---|
| private boolean needUpdateFieldFormats | |
| NO_PARAMETERS | back to summary |
|---|---|
| pack-priv static final SimpleParameterList NO_PARAMETERS | |
| portalDescribed | back to summary |
|---|---|
| private boolean portalDescribed | |
| preparedTypes | back to summary |
|---|---|
| private @Nullable int[] preparedTypes | |
| resultSetColumnNameIndexMap | back to summary |
|---|---|
| private @Nullable Map<String, Integer> resultSetColumnNameIndexMap | |
| sanitiserDisabled | back to summary |
|---|---|
| private final boolean sanitiserDisabled | |
| statementDescribed | back to summary |
|---|---|
| private boolean statementDescribed | |
| statementName | back to summary |
|---|---|
| private @Nullable String statementName | |
| transferModeRegistry | back to summary |
|---|---|
| private final @Nullable TypeTransferModeRegistry transferModeRegistry | |
| unspecifiedParams | back to summary |
|---|---|
| private @Nullable BitSet unspecifiedParams | |
| SimpleQuery | back to summary |
|---|---|
| pack-priv SimpleQuery(SimpleQuery src) | |
| SimpleQuery | back to summary |
|---|---|
| pack-priv SimpleQuery(NativeQuery query, @Nullable TypeTransferModeRegistry transferModeRegistry, boolean sanitiserDisabled) | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close this query and free any server-side resources associated with it. The resources may not be immediately deallocated, but closing a Query may make the deallocation more prompt. A closed Query should not be executed.
| |
| createParameterList | back to summary |
|---|---|
| public ParameterList createParameterList() Implements org. Doc from org. Create a ParameterList suitable for storing parameters associated with this Query. If 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.
| |
| getBatchSize | back to summary |
|---|---|
| public int getBatchSize() Implements org. Doc from org. Get the number of times this Query has been batched.
| |
| getBindCount | back to summary |
|---|---|
| public final int getBindCount() | |
| getEncodedStatementName | back to summary |
|---|---|
| pack-priv @Nullable byte[] getEncodedStatementName() | |
| getFields | back to summary |
|---|---|
| pack-priv @Nullable Field[] getFields() Returns the fields that this query will return. If the result set fields are not known returns null. | |
| getMaxResultRowSize | back to summary |
|---|---|
| public int getMaxResultRowSize() Return maximum size in bytes that each result row from this query may return. Mainly used for batches that return results. Results are cached until/unless the query is re-described.
| |
| getNativeQuery | back to summary |
|---|---|
| pack-priv NativeQuery getNativeQuery() | |
| getNativeSql | back to summary |
|---|---|
| public String getNativeSql() Implements org. Doc from org. Returns SQL in native for database format. | |
| getPrepareTypes | back to summary |
|---|---|
| pack-priv @Nullable int[] getPrepareTypes() | |
| getResultSetColumnNameIndexMap | back to summary |
|---|---|
| public @Nullable Map Implements org. Doc from org. Get a map that a result set can use to find the index associated to a name. | |
| getSqlCommand | back to summary |
|---|---|
| public SqlCommand getSqlCommand() Implements org. Doc from org. Returns properties of the query (sql keyword, and some other parsing info).
| |
| getStatementName | back to summary |
|---|---|
| pack-priv @Nullable String getStatementName() | |
| getSubqueries | back to summary |
|---|---|
| public @Nullable SimpleQuery[] getSubqueries() Implements org. Doc from org. Return a list of the Query objects that make up this query. If this object is already a SimpleQuery, returns null (avoids an extra array construction in the common case).
| |
| hasBinaryFields | back to summary |
|---|---|
| public boolean hasBinaryFields() | |
| hasUnresolvedTypes | back to summary |
|---|---|
| pack-priv boolean hasUnresolvedTypes() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org.
| |
| isPortalDescribed | back to summary |
|---|---|
| pack-priv boolean isPortalDescribed() | |
| isPreparedFor | back to summary |
|---|---|
| pack-priv boolean isPreparedFor(int[] paramTypes, short deallocateEpoch) | |
| isStatementDescribed | back to summary |
|---|---|
| public boolean isStatementDescribed() Implements org.
| |
| needUpdateFieldFormats | back to summary |
|---|---|
| pack-priv boolean needUpdateFieldFormats() Returns true if current query needs field formats be adjusted as per connection configuration.
Subsequent invocations would return
| |
| resetNeedUpdateFieldFormats | back to summary |
|---|---|
| public void resetNeedUpdateFieldFormats() | |
| setCleanupRef | back to summary |
|---|---|
| pack-priv void setCleanupRef(PhantomReference<?> cleanupRef) | |
| setFields | back to summary |
|---|---|
| pack-priv void setFields(@Nullable Field[] fields) Sets the fields that this query will return. | |
| setHasBinaryFields | back to summary |
|---|---|
| public void setHasBinaryFields(boolean hasBinaryFields) | |
| setPortalDescribed | back to summary |
|---|---|
| pack-priv void setPortalDescribed(boolean portalDescribed) | |
| setPrepareTypes | back to summary |
|---|---|
| pack-priv void setPrepareTypes(int[] paramTypes) | |
| setStatementDescribed | back to summary |
|---|---|
| pack-priv void setStatementDescribed(boolean statementDescribed) | |
| setStatementName | back to summary |
|---|---|
| pack-priv void setStatementName(String statementName, short deallocateEpoch) | |
| toString | back to summary |
|---|---|
public String toString(@Nullable ParameterList parameters)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unprepare | back to summary |
|---|---|
| pack-priv void unprepare() | |