Examples of ArrayDescriptor


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

Examples of oracle.sql.ArrayDescriptor

            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

Examples of oracle.sql.ArrayDescriptor

     * 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

Examples of oracle.sql.ArrayDescriptor

    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

Examples of oracle.sql.ArrayDescriptor

        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

Examples of oracle.sql.ArrayDescriptor

        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

Examples of oracle.sql.ArrayDescriptor

     * 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

Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor

  @Override
  protected void addDynamicArgsToPartialFold( ExpressionNode _apply, Collection<ExpressionNode[]> _dynArgs )
  {
    final int eltCount = fold.eltCount();
    final ArrayDescriptor desc = new ArrayDescriptor( 1, _dynArgs.size(), 1 );
    final ExpressionNode[] vectors = new ExpressionNode[ eltCount ];
    ExpressionNode[] firstElts = _dynArgs.iterator().next();
    for (int i = 0; i < eltCount; i++) {
      vectors[ i ] = new ExpressionNodeForArrayReference( desc );
      vectors[ i ].setDataType( firstElts[ i ].getDataType() );
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor

  }


  private Object evalIndex( ExpressionNodeForArrayReference _range, Object _rowIndex, Object _colIndex )
  {
    final ArrayDescriptor desc = _range.arrayDescriptor();
    final int iRow = valueToIntOrOne( _rowIndex ) - 1;
    final int iCol = valueToIntOrOne( _colIndex ) - 1;
    int iValue;
    if (iRow < 0 || iRow >= desc.numberOfRows())
      throw new FormulaException( "#VALUE/REF! because row out of range in INDEX" );
    if (iCol < 0 || iCol >= desc.numberOfColumns())
      throw new FormulaException( "#VALUE/REF! because column out of range in INDEX" );
    if (null != _rowIndex && null != _colIndex) {
      iValue = iRow * desc.numberOfColumns() + iCol;
    }
    else {
      iValue = iRow + iCol;
    }
    return ((ExpressionNodeForConstantValue) _range.argument( iValue )).value();
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor

          elts.add( buildExpressionModelForLocalRange( next ) );
        }
      }

      final CellIndex from = range.getFrom();
      final ExpressionNode result = (shaped) ? new ExpressionNodeForArrayReference( new ArrayDescriptor(
          from.getSheetIndex(), from.getRowIndex(), from.getColumnIndex(), sheets, rows, cols ) )
          : new ExpressionNodeForSubstitution();
      result.arguments().addAll( elts );
      return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.