@Override public void writeSQL(SQLOutput stream) throws SQLException { stream.writeString((String) types[stringPos]); stream.writeDate((Date) types[datePos]); stream.writeTime((Time) types[timePos]); stream.writeTimestamp((Timestamp) types[timestampPos]); stream.writeInt((Integer) types[intPos]); stream.writeLong((Long) types[longPos]); stream.writeShort((Short) types[shortPos]); stream.writeBigDecimal((BigDecimal) types[bigDecimalPos]); stream.writeDouble((Double) types[doublePos]); stream.writeBoolean((Boolean) types[booleanPos]); stream.writeFloat((Float) types[floatPos]); stream.writeByte((Byte) types[bytePos]); stream.writeBytes((byte[]) types[bytesPos]); }
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL) @Override public void writeSQL(SQLOutput stream) throws SQLException { stream.writeBigDecimal(s_bigdec); stream.writeBinaryStream(new ByteArrayInputStream(s_utfgedicht)); stream.writeBoolean(s_bool); stream.writeByte(s_byte); stream.writeBytes(s_utfgedicht); stream.writeCharacterStream(new StringReader(s_gedicht)); stream.writeDate(s_date); stream.writeDouble(s_double); stream.writeFloat(s_float); stream.writeInt(s_int); stream.writeLong(s_long); stream.writeShort(s_short); stream.writeString(s_gedicht); stream.writeTime(s_time); stream.writeTimestamp(s_timestamp); stream.writeURL(s_url); }
@Override public void writeSQL(SQLOutput stream) throws SQLException { stream.writeString(first); stream.writeString(last); stream.writeInt(firstYear); stream.writeString(secretIdentity); }
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL) @Override public void writeSQL(SQLOutput stream) throws SQLException { s_logger.info(m_typeName + " to SQLOutput"); stream.writeDouble(m_x); stream.writeDouble(m_y); }
/** * Test method for {@link java.sql.SQLData#writeSQL(java.sql.SQLOutput)}. */ @TestTargetNew( level = TestLevel.NOT_FEASIBLE, notes = "", method = "writeSQL", args = {SQLOutput.class} ) public void testWriteSQL() { fail("Not yet implemented"); }
@Override public void writeSQL(SQLOutput stream) throws SQLException { stream.writeString(this.tableName); stream.writeString(this.columnName); stream.writeString(String.valueOf(this.columnValue)); }
public void writeSQL( SQLOutput out ) throws SQLException { out.writeBytes( _data ); }
public void writeSQL( SQLOutput stream) throws SQLException { for ( int i = 0 ; i < apop ; ++ i ) stream.writeByte( (byte)'a'); }
@Override public void writeSQL(SQLOutput stream) throws SQLException { stream.writeDouble(m_x); stream.writeDouble(m_y); s_logger.info(m_typeName + " to SQLOutput"); }
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL) @Override public void writeSQL(SQLOutput stream) throws SQLException { stream.writeInt(m_value); }
@Override public void writeSQL(SQLOutput stream) throws SQLException { s_logger.info(m_typeName + " to SQLOutput"); stream.writeDouble(m_x); stream.writeDouble(m_y); }
DDRProcessorImpl( ProcessingEnvironment processingEnv) { elmu = processingEnv.getElementUtils(); filr = processingEnv.getFiler(); loca = processingEnv.getLocale(); msgr = processingEnv.getMessager(); opts = processingEnv.getOptions(); srcv = processingEnv.getSourceVersion(); typu = processingEnv.getTypeUtils(); tmpr = new TypeMapper(); String optv; optv = opts.get( "ddr.name.trusted"); if ( null != optv ) nameTrusted = optv; else nameTrusted = "java"; optv = opts.get( "ddr.name.untrusted"); if ( null != optv ) nameUntrusted = optv; else nameUntrusted = "javaU"; optv = opts.get( "ddr.implementor"); if ( null != optv ) defaultImplementor = "-".equals( optv) ? null : optv; else defaultImplementor = "PostgreSQL"; optv = opts.get( "ddr.output"); if ( null != optv ) output = optv; else output = "pljava.ddr"; TY_ITERATOR = typu.getDeclaredType( elmu.getTypeElement( java.util.Iterator.class.getName())); TY_OBJECT = typu.getDeclaredType( elmu.getTypeElement( Object.class.getName())); TY_RESULTSET = typu.getDeclaredType( elmu.getTypeElement( java.sql.ResultSet.class.getName())); TY_RESULTSETPROVIDER = typu.getDeclaredType( elmu.getTypeElement( ResultSetProvider.class.getName())); TY_RESULTSETHANDLE = typu.getDeclaredType( elmu.getTypeElement( ResultSetHandle.class.getName())); TY_SQLDATA = typu.getDeclaredType( elmu.getTypeElement( SQLData.class.getName())); TY_SQLINPUT = typu.getDeclaredType( elmu.getTypeElement( SQLInput.class.getName())); TY_SQLOUTPUT = typu.getDeclaredType( elmu.getTypeElement( SQLOutput.class.getName())); TY_STRING = typu.getDeclaredType( elmu.getTypeElement( String.class.getName())); TY_TRIGGERDATA = typu.getDeclaredType( elmu.getTypeElement( TriggerData.class.getName())); TY_VOID = typu.getNoType( TypeKind.VOID); AN_FUNCTION = elmu.getTypeElement( Function.class.getName()); AN_SQLACTION = elmu.getTypeElement( SQLAction.class.getName()); AN_SQLACTIONS = elmu.getTypeElement( SQLActions.class.getName()); AN_SQLTYPE = elmu.getTypeElement( SQLType.class.getName()); AN_TRIGGER = elmu.getTypeElement( Trigger.class.getName()); AN_BASEUDT = elmu.getTypeElement( BaseUDT.class.getName()); AN_MAPPEDUDT = elmu.getTypeElement( MappedUDT.class.getName()); }
/** * Write object to SQLOutput stream. */ public void writeSQL(SQLOutput stream) throws SQLException { stream.writeLong(value.getNumerator()); stream.writeLong(value.getDenominator()); }
/** * Write object to SQLOutput stream. */ public void writeSQL(SQLOutput stream) throws SQLException { stream.writeDouble(value.Re()); stream.writeDouble(value.Im()); }
public void writeSQL(SQLOutput stream) throws SQLException { stream.writeString(firstAttribute); stream.writeBoolean(secondAttribute); stream.writeString(thirdAttribute); stream.writeInt(fourthAttribute); }
public void writeSQL(SQLOutput stream) throws SQLException { stream.writeString(first); stream.writeString(last); }
public void writeSQL(SQLOutput stream) throws SQLException { stream.writeInt(id); stream.writeObject(name); }
public void writeSQL(SQLOutput stream) throws SQLException { return; }
public void writeSQL(SQLOutput stream) throws SQLException { stream.writeBigDecimal(key); }