Package oracle.sql

Examples of oracle.sql.Datum


     */
    public Geometry asGeometry(STRUCT sdoGeometry) throws SQLException {
        // Note Returning null for null Datum
        if( sdoGeometry == null ) return null;
       
        Datum data[] = sdoGeometry.getOracleAttributes();
        final int GTYPE = asInteger( data[0], 0 );
        final int SRID = asInteger( data[1], SDO.SRID_NULL );
        final double POINT[] = asDoubleArray( (STRUCT) data[2], Double.NaN );
        final int ELEMINFO[] = asIntArray( (ARRAY) data[3], 0 );
        final double ORDINATES[] = asDoubleArray( (ARRAY) data[4], Double.NaN );;
View Full Code Here


                SDO_POINT = null;
                SDO_ELEM_INFO = toARRAY( elemInfo, "MDSYS.SDO_ELEM_INFO_ARRAY" );
                SDO_ORDINATES = toARRAY( ordinates, "MDSYS.SDO_ORDINATE_ARRAY" );                       
            }
        } else { // Point Optimization
            Datum data[] = new Datum[]{
                toNUMBER( point[0] ),
                toNUMBER( point[1] ),
                toNUMBER( point[2] ),
            };
            SDO_POINT = toSTRUCT( data, "MDSYS.SDO_POINT_TYPE"  );
            SDO_ELEM_INFO = null;
            SDO_ORDINATES = null;
        }               
        Datum attributes[] = new Datum[]{
            SDO_GTYPE,
            SDO_SRID,
            SDO_POINT,
            SDO_ELEM_INFO,
            SDO_ORDINATES
View Full Code Here

            connection
        );
       
        final int LENGTH = measures != null ? measures.length : 0;
        final int LEN = D + LENGTH;
        Datum data[] = new Datum[ list.size()*LEN];
        int offset = 0;
        int index = 0;
        Coordinate coord;
       
        for( Iterator i=list.iterator(); i.hasNext(); index++)
View Full Code Here

            connection
        );
   
        final int LENGTH = ords.length;
       
        Datum data[] = new Datum[ LENGTH ];
       
        for( int i=0; i<LENGTH; i++ )
        {
            data[ i ] = toNUMBER( ords[i] );           
        }
View Full Code Here

          connection
      );
     
      final int LENGTH = ords.length;
     
      Datum data[] = new Datum[ LENGTH ];
     
      for( int i=0; i<LENGTH; i++ )
      {
        data[ i ] = toNUMBER( ords[i] );           
      }
View Full Code Here

TOP

Related Classes of oracle.sql.Datum

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.