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


Java SQLInput.readString方法代码示例

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


在下文中一共展示了SQLInput.readString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readSQL

import java.sql.SQLInput; //导入方法依赖的package包/类
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:19,代码来源:TestSQLDataImpl.java

示例2: readSQL

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

示例3: readSQL

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

示例4: readSQL

import java.sql.SQLInput; //导入方法依赖的package包/类
public void readSQL(SQLInput stream, String typeName)
        throws SQLException {
    firstAttribute = stream.readString();
    secondAttribute = stream.readBoolean();
    thirdAttribute = stream.readString();
    fourthAttribute = stream.readInt();
}
 
开发者ID:shannah,项目名称:cn1,代码行数:8,代码来源:SQLInputImplTest.java

示例5: readSQL

import java.sql.SQLInput; //导入方法依赖的package包/类
public void readSQL(SQLInput stream, String type) throws SQLException {
    sql_type = type;
    first = stream.readString();
    last = stream.readString();
}
 
开发者ID:shannah,项目名称:cn1,代码行数:6,代码来源:SerialStructTest.java


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