/** Convience method for NUMBER construction */ protected final NUMBER toNUMBER(int number) { return new NUMBER(number); }
/** * Convience method for NUMBER construction. * * <p>Double.NaN is represented as <code>NULL</code> to agree with JTS use. */ protected final NUMBER toNUMBER(double number) throws SQLException { if (Double.isNaN(number)) { return null; } return new NUMBER(number); }
/** Convience method for NUMBER construction */ protected final NUMBER toNUMBER( int number ) { return new NUMBER( number ); }
NUMBER number = new NUMBER(12345); ANYDATA myAnyDataObject = ANYDATA.convertDatum(number);
/** * Convience method for NUMBER construction. * <p> * Double.NaN is represented as <code>NULL</code> to agree * with JTS use.</p> */ protected final NUMBER toNUMBER( double number ) throws SQLException{ if( Double.isNaN( number )){ return null; } return new NUMBER( number ); }
/** * Convenience method for NUMBER construction. * <p> * Double.NaN is represented as <code>NULL</code> to agree with JTS use. * </p> */ public static NUMBER toNUMBER(double number) throws SQLException { if (Double.isNaN(number)) { return null; } return new NUMBER(number); }
private byte[] convertScnToPosition(long scn) { try { return XStreamUtility.convertSCNToPosition(new NUMBER(scn), this.posVersion); } catch (StreamsException e) { throw new RuntimeException(e); } } }
field1 = new NUMBER(n); field2 = new CHAR(c,oracle.sql.CharacterSet.make(conn.getStructAttrCsId()));
public Struct createStruct(SDOGeometry geom, Connection conn) throws SQLException { OracleConnection oracleConnection = null; try { oracleConnection = connectionFinder.find(conn); } catch (FinderException e) { throw new HibernateException("Problem finding Oracle Connection", e); } StructDescriptor structDescriptor = StructDescriptor .createDescriptor(SDOGeometryType.SQL_TYPE_NAME, oracleConnection); Object[] attributes = new Datum[5]; attributes[0] = new NUMBER(geom.getGType().intValue()); if (geom.getSRID() > 0) { attributes[1] = new NUMBER(geom.getSRID()); } else { attributes[1] = null; } attributes[3] = createElemInfoArray(geom.getInfo(), oracleConnection); attributes[4] = createOrdinatesArray(geom.getOrdinates(), oracleConnection); return new STRUCT(structDescriptor, conn, attributes); }