Class OracleUtilities
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.oracle.OracleUtilities
-
public final class OracleUtilities extends Object
Utilities specific to Oracle.
- Since:
- 2017.1.3
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
-
-
Field Summary
Fields Modifier and Type Field Description static StringSQL_HINT_APPENDSQL hint to enable the direct-pathINSERTmode when using theINSERTwith sub-query syntax.static StringSQL_HINT_APPEND_VALUESSQL hint to enable the direct-pathINSERTmode.static StringUSE_DIRECT_PATH_INSERT_PROPERTYThe name of the internal property holding the boolean flag which enables the direct-pathINSERTmode.static StringUSE_INSERT_ALL_SQL_SYNTAXThe name of the internal property used to select theINSERT ALLSQL syntax (slower) instead of the traditionalINSERTwith sub-query, which is the default.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDirectPathInsertEnabled()Returns whether direct-pathINSERTis globally enabled (the default isfalse).static QueryWithMetaDatanewMultiRowInsertSql(String tableName, List<TableFieldDef> fields, int bulkRows, boolean directPathInsertEnabled)Builds a new multi-rowINSERTSQL.
-
-
-
Field Detail
-
USE_DIRECT_PATH_INSERT_PROPERTY
@NotNull public static final String USE_DIRECT_PATH_INSERT_PROPERTY
The name of the internal property holding the boolean flag which enables the direct-path
INSERTmode.- See Also:
- TW-50799, Constant Field Values
-
USE_INSERT_ALL_SQL_SYNTAX
@NotNull public static final String USE_INSERT_ALL_SQL_SYNTAX
The name of the internal property used to select the
INSERT ALLSQL syntax (slower) instead of the traditionalINSERTwith sub-query, which is the default.- See Also:
- Constant Field Values
-
SQL_HINT_APPEND
@NotNull public static final String SQL_HINT_APPEND
SQL hint to enable the direct-path
INSERTmode when using theINSERTwith sub-query syntax. ForINSERT ... INTO ... VALUES (...)syntax,SQL_HINT_APPEND_VALUESshould be used instead.- See Also:
SQL_HINT_APPEND_VALUES, Constant Field Values
-
SQL_HINT_APPEND_VALUES
@NotNull public static final String SQL_HINT_APPEND_VALUES
SQL hint to enable the direct-path
INSERTmode.- See Also:
SQL_HINT_APPEND, Constant Field Values
-
-
Method Detail
-
isDirectPathInsertEnabled
public static boolean isDirectPathInsertEnabled()
Returns whether direct-path
INSERTis globally enabled (the default isfalse).- Returns:
- whether direct-path
INSERTis globally enabled. - See Also:
QueryWithMetaData.isDirectPathInsert(), Direct-Load INSERT
-
newMultiRowInsertSql
@NotNull public static QueryWithMetaData newMultiRowInsertSql(@NotNull String tableName, @NotNull List<TableFieldDef> fields, @Nonnegative int bulkRows, boolean directPathInsertEnabled)
Builds a new multi-row
INSERTSQL.- Parameters:
tableName- the name of the table.fields- the fields of the table which will be affected by the query.bulkRows- the number of rows being inserted.directPathInsertEnabled- whether direct-pathINSERTshould be enabled for the query.- Returns:
- the SQL query built.
-
-