Class OracleUtilities


  • public final class OracleUtilities
    extends Object

    Utilities specific to Oracle.

    Since:
    2017.1.3
    Author:
    Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
    • 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 INSERT mode.

        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 ALL SQL syntax (slower) instead of the traditional INSERT with sub-query, which is the default.

        See Also:
        Constant Field Values
    • Method Detail

      • newMultiRowInsertSql

        @NotNull
        public static QueryWithMetaData newMultiRowInsertSql​(@NotNull
                                                             String tableName,
                                                             @NotNull
                                                             List<TableFieldDef> fields,
                                                             @Nonnegative
                                                             int bulkRows,
                                                             boolean directPathInsertEnabled)

        Builds a new multi-row INSERT SQL.

        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-path INSERT should be enabled for the query.
        Returns:
        the SQL query built.