Package oracle.sql

Examples of oracle.sql.ArrayDescriptor


   */
  private static ARRAY getARRAY(String type_name, Object data) throws JnipapException {

    // Create Oracle-friendly array...
    java.sql.Connection oconn;
    ArrayDescriptor desc;
    ARRAY ret;
    try {
      oconn = DriverManager.getConnection("jdbc:default:connection:");
      desc = ArrayDescriptor.createDescriptor(type_name, oconn);
      ret = new ARRAY(desc, oconn, data);
View Full Code Here


            throws SQLException, IOException, ParseException,
                   DbStoredProcedureException {

        // Set id = min value so we can tell whether it's been initialized
        // properly later on.
        ArrayDescriptor strDescriptor = null;
        int id = Integer.MIN_VALUE;
        this.con = con;

        // Begin by getting all procedure nodes.
        NodeList procedureNodeList = modelDoc.getElementsByTagName(DBXmlConfig.PROCEDURE);
View Full Code Here

     * as<code>NULL</code></p>
     */
    protected final ARRAY toARRAY( double doubles[], String dataType )
            throws SQLException
    {
        ArrayDescriptor descriptor =
            ArrayDescriptor.createDescriptor( dataType, connection );
       
         return new ARRAY( descriptor, connection, doubles );
    }
View Full Code Here

    protected final ARRAY toORDINATE( CoordinateList list,
                                      double measures[][],
                                      final int D)
            throws SQLException
    {
        ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor(
            "MDSYS.SDO_ORDINATE_ARRAY",
            connection
        );
       
        final int LENGTH = measures != null ? measures.length : 0;
View Full Code Here

        return new ARRAY( descriptor, connection, data );
    }
    protected final ARRAY toORDINATE( double ords[] )
        throws SQLException
    {
        ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor(
            "MDSYS.SDO_ORDINATE_ARRAY",
            connection
        );
   
        final int LENGTH = ords.length;
View Full Code Here

        return new ARRAY( descriptor, connection, data );
    }
    protected final ARRAY toATTRIBUTE( double ords[], String desc )
    throws SQLException
    {
      ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor(
          desc,
          connection
      );
     
      final int LENGTH = ords.length;
View Full Code Here

     * Convience method for ARRAY construction.
     */
    protected final ARRAY toARRAY( int ints[], String dataType )
        throws SQLException
    {
        ArrayDescriptor descriptor =
            ArrayDescriptor.createDescriptor( dataType, connection );
           
         return new ARRAY( descriptor, connection, ints );
    }
View Full Code Here

TOP

Related Classes of oracle.sql.ArrayDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.