Package oracle.sql

Examples of oracle.sql.ARRAY


  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);
    } catch(SQLException e) {
      throw new JnipapException(e.toString());
    }

    return ret;
View Full Code Here


                strDescriptor = ArrayDescriptor.createDescriptor(descriptorType, con);
            }

            // Create an Oracle array from the Java string array we built
            // from the XML.
            ARRAY valueArray = new ARRAY(strDescriptor, con, textArrayValue);

            // Assign the Oracle array to the callable statement array parameter.
            cstmt.setArray(callableStatementParamIndex, valueArray);
        }
        else if (typeValue.equals(DBXmlConfig.DATE)) {
View Full Code Here

                          new NUMBER( srid );
       
        double[] point = SDO.point( geom );
        STRUCT SDO_POINT;
       
        ARRAY SDO_ELEM_INFO;
        ARRAY SDO_ORDINATES;
       
        if( point == null ) {
            final Envelope env = geom.getEnvelopeInternal();
            if(env.getWidth() > 0 && env.getHeight() > 0 && !(geom instanceof GeometryCollection) && geom.isRectangle()) {
                // rectangle optimization. Actually, more than an optimization. A few operators
View Full Code Here

            throws SQLException
    {
        ArrayDescriptor descriptor =
            ArrayDescriptor.createDescriptor( dataType, connection );
       
         return new ARRAY( descriptor, connection, doubles );
    }
View Full Code Here

            for( int j=0; j<LENGTH; j++)
            {
                data[ offset++ ] = toNUMBER( measures[ j][ index ] );
            }
        }
        return new ARRAY( descriptor, connection, data );
    }
View Full Code Here

       
        for( int i=0; i<LENGTH; i++ )
        {
            data[ i ] = toNUMBER( ords[i] );           
        }
        return new ARRAY( descriptor, connection, data );
    }
View Full Code Here

     
      for( int i=0; i<LENGTH; i++ )
      {
        data[ i ] = toNUMBER( ords[i] );           
      }
      return new ARRAY( descriptor, connection, data );
    }
View Full Code Here

        throws SQLException
    {
        ArrayDescriptor descriptor =
            ArrayDescriptor.createDescriptor( dataType, connection );
           
         return new ARRAY( descriptor, connection, ints );
    }
View Full Code Here

TOP

Related Classes of oracle.sql.ARRAY

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.