当前位置: 首页>>代码示例>>Java>>正文


Java SQLOutput.writeString方法代码示例

本文整理汇总了Java中java.sql.SQLOutput.writeString方法的典型用法代码示例。如果您正苦于以下问题:Java SQLOutput.writeString方法的具体用法?Java SQLOutput.writeString怎么用?Java SQLOutput.writeString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.sql.SQLOutput的用法示例。


在下文中一共展示了SQLOutput.writeString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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]);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:18,代码来源:TestSQLDataImpl.java

示例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);
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:22,代码来源:UDTScalarIOTest.java

示例3: writeSQL

import java.sql.SQLOutput; //导入方法依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(first);
    stream.writeString(last);
    stream.writeInt(firstYear);
    stream.writeString(secretIdentity);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:8,代码来源:SuperHero.java

示例4: writeSQL

import java.sql.SQLOutput; //导入方法依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
	stream.writeString(this.tableName);
	stream.writeString(this.columnName);
	stream.writeString(String.valueOf(this.columnValue));
}
 
开发者ID:gagoyal01,项目名称:mongodb-rdbms-sync,代码行数:7,代码来源:O2MSyncEventLog.java

示例5: writeSQL

import java.sql.SQLOutput; //导入方法依赖的package包/类
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(firstAttribute);
    stream.writeBoolean(secondAttribute);
    stream.writeString(thirdAttribute);
    stream.writeInt(fourthAttribute);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:7,代码来源:SQLInputImplTest.java

示例6: writeSQL

import java.sql.SQLOutput; //导入方法依赖的package包/类
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(first);
    stream.writeString(last);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:5,代码来源:SerialStructTest.java


注:本文中的java.sql.SQLOutput.writeString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。