Package oracle.sql

Class ArrayDescriptor

    • Method Detail

      • createDescriptor

        public static ArrayDescriptor createDescriptor​(String name,
                                                       Connection conn)
                                                throws SQLException
        Deprecated.
        Descriptor factory. Lookup the name in the database, and determine the characteristics of this array.
        Parameters:
        name - a String naming the type. (Not necessarily fully qualified)
        connection - a Connection to a database
        Returns:
        An array descriptor for the specified name
        Throws:
        SQLException - if the name does not name an array type.
      • createDescriptor

        public static ArrayDescriptor createDescriptor​(String name,
                                                       Connection conn,
                                                       boolean recurse,
                                                       boolean force)
                                                throws SQLException
        Deprecated.
        Descriptor factory. Lookup the name in the database, and determine the characteristics of this array.
        Parameters:
        name - a String naming the type. (Not necessarily fully qualified)
        connection - a Connection to a database
        recurse - a boolean to specify whether to create descriptors for component objects
        force - a boolean to specify whether to replace any cached descriptor.
        Returns:
        the descriptor created.
        Throws:
        SQLException - if the name does not name an array type.
      • createDescriptor

        public static ArrayDescriptor createDescriptor​(oracle.sql.SQLName sqlName,
                                                       Connection conn)
                                                throws SQLException
        Deprecated.
        Descriptor factory. Lookup the name in the database, and determine the characteristics of this array.
        Parameters:
        name - a SQLName with the name of the type.
        connection - a Connection to a database
        Returns:
        the descriptor created.
        Throws:
        SQLException - if the name does not name an array type.
      • createDescriptor

        public static ArrayDescriptor createDescriptor​(oracle.sql.SQLName sqlName,
                                                       Connection conn,
                                                       boolean recurse,
                                                       boolean force)
                                                throws SQLException
        Deprecated.
        Descriptor factory. Lookup the name in the database, and determine the characteristics of this array.
        Parameters:
        name - a SQLName with the name of the type.
        connection - a Connection to a database
        recurse - a boolean to specify whether to create descriptors for component objects
        force - a boolean to specify whether to replace any cached descriptor.
        Returns:
        the descriptor created.
        Throws:
        SQLException - if the name does not name an array type.
      • getBaseName

        public String getBaseName()
                           throws SQLException
        Deprecated.
        In case the elements are named types the fully qualified name of their type.Otherwise, return type name used by the database
        Specified by:
        getBaseName in interface OracleTypeMetaData.Array
        Returns:
        the name of the base type.
        Throws:
        SQLException - if the element's type is not named.
      • getArrayType

        public int getArrayType()
                         throws SQLException
        Deprecated.
        Return the database type of the array. The possible return values are ArrayDescriptor.TYPE_VARRAY and ArrayDescriptor.TYPE_NESTED_TABLE.
        Returns:
        database array type.
        Throws:
        SQLException
      • descType

        public String descType()
                        throws SQLException
        Deprecated.
        Describe the collection type.
        Returns:
        the type information
        Throws:
        SQLException
        Since:
        8.1.7
      • toBytes

        public byte[] toBytes​(oracle.jdbc.internal.OracleArray s,
                              Datum sDatum,
                              boolean keepLocalCopy)
                       throws SQLException
        Deprecated.
        Side Effect: array.datumArray, array.bytes may be modified if 'keepLocalCopy' is true
        Throws:
        SQLException
      • toOracleArray

        public Datum[] toOracleArray​(oracle.jdbc.internal.OracleArray s,
                                     Datum sDatum,
                                     long beginIdx,
                                     int count,
                                     boolean keepLocalCopy)
                              throws SQLException
        Deprecated.
        Side Effect: array.datumArray, array.bytes may be modified if 'keepLocalCopy' is true
        Throws:
        SQLException
      • toJavaArray

        public Object[] toJavaArray​(oracle.jdbc.internal.OracleArray s,
                                    Datum sDatum,
                                    long beginIdx,
                                    int count,
                                    Map map,
                                    boolean keepLocalCopy)
                             throws SQLException
        Deprecated.
        Side Effect: array.datumArray, array.bytes, s.objectArray may be modified if 'keepLocalCopy' is true
        Throws:
        SQLException
      • toResultSet

        public ResultSet toResultSet​(oracle.jdbc.internal.OracleArray array,
                                     Datum arrayDatum,
                                     long index,
                                     int count,
                                     Map map,
                                     boolean saveLocalCopy)
                              throws SQLException
        Deprecated.
        Throws:
        SQLException
      • toResultSetFromImage

        public ResultSet toResultSetFromImage​(oracle.jdbc.internal.OracleArray array,
                                              long index,
                                              int count,
                                              Map map)
                                       throws SQLException
        Deprecated.
        Throws:
        SQLException
      • toNumericArray

        public Object toNumericArray​(oracle.jdbc.internal.OracleArray array,
                                     Datum arrayDatum,
                                     long beginIdx,
                                     int count,
                                     int type,
                                     boolean saveLocalCopy)
                              throws SQLException
        Deprecated.
        Throws:
        SQLException