Class QueryWithMetaData
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.QueryWithMetaData
-
public final class QueryWithMetaData extends Object
A SQL query with optional metadata.
- Since:
- 2017.1.3
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
-
-
Constructor Summary
Constructors Constructor Description QueryWithMetaData(String query, boolean directPathInsert)Creates a new query with metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetQuery()Returns the query string.booleanisDirectPathInsert()Whether this query is a direct-pathINSERT(only applies toINSERTstatements in Oracle).StringtoString()
-
-
-
Constructor Detail
-
QueryWithMetaData
public QueryWithMetaData(@NotNull String query, boolean directPathInsert)Creates a new query with metadata.
- Parameters:
query- the query string.directPathInsert-trueif this is an Oracle direct-pathINSERT,falseif not or N/A.
-
-
Method Detail
-
getQuery
@NotNull public String getQuery()
Returns the query string.
- Returns:
- the query string.
-
isDirectPathInsert
public boolean isDirectPathInsert()
Whether this query is a direct-path
INSERT(only applies toINSERTstatements in Oracle). For other database types, this property is alwaysfalse.Direct-path
INSERT's are enabled with the/*+ APPEND */or/*+ APPEND_VALUES */SQL hints.In the
EXPLAIN PLAN FOR ...output, direct-pathINSERT's appear asLOAD AS SELECTorDIRECT LOAD INTO, as opposed toLOAD TABLE CONVENTIONALorINTOfor conventionalINSERT's.- Returns:
trueif this is a direct-pathINSERT,falseotherwise.- See Also:
OracleUtilities.isDirectPathInsertEnabled(), Direct-Load INSERT
-
toString
@NotNull public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-