Example usage for java.sql SQLInput readString

List of usage examples for java.sql SQLInput readString

Introduction

In this page you can find the example usage for java.sql SQLInput readString.

Prototype

String readString() throws SQLException;

Source Link

Document

Reads the next attribute in the stream and returns it as a String in the Java programming language.

Usage

From source file:InsertCustomType_Oracle.java

public void readSQL(SQLInput stream, String sqlType) throws SQLException {
    this.isbn = stream.readString();
    this.title = stream.readString();
    this.author = stream.readString();
    this.edition = stream.readInt();
}

From source file:Employee.java

public void readSQL(SQLInput stream, String typeName) throws SQLException {
    sqlUdt = typeName;/*from w  ww .j a v a 2  s. co m*/
    SSN = stream.readBigDecimal();
    FirstName = stream.readString();
    LastName = stream.readString();
    Salary = stream.readBigDecimal();
}