本文整理汇总了Java中java.sql.SQLOutput.writeByte方法的典型用法代码示例。如果您正苦于以下问题:Java SQLOutput.writeByte方法的具体用法?Java SQLOutput.writeByte怎么用?Java SQLOutput.writeByte使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.sql.SQLOutput
的用法示例。
在下文中一共展示了SQLOutput.writeByte方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeSQL
import java.sql.SQLOutput; //导入方法依赖的package包/类
@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]);
}
示例2: writeSQL
import java.sql.SQLOutput; //导入方法依赖的package包/类
@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);
}
示例3: writeSQL
import java.sql.SQLOutput; //导入方法依赖的package包/类
public void writeSQL( SQLOutput stream) throws SQLException {
for ( int i = 0 ; i < apop ; ++ i )
stream.writeByte( (byte)'a');
}