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 String
getQuery()
Returns the query string.boolean
isDirectPathInsert()
Whether this query is a direct-pathINSERT
(only applies toINSERT
statements in Oracle).String
toString()
-
-
-
Constructor Detail
-
QueryWithMetaData
public QueryWithMetaData(@NotNull String query, boolean directPathInsert)
Creates a new query with metadata.
- Parameters:
query
- the query string.directPathInsert
-true
if this is an Oracle direct-pathINSERT
,false
if 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 toINSERT
statements 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 SELECT
orDIRECT LOAD INTO
, as opposed toLOAD TABLE CONVENTIONAL
orINTO
for conventionalINSERT
's.- Returns:
true
if this is a direct-pathINSERT
,false
otherwise.- See Also:
OracleUtilities.isDirectPathInsertEnabled()
, Direct-Load INSERT
-
toString
@NotNull public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-