Example usage for java.sql SQLOutput writeString

List of usage examples for java.sql SQLOutput writeString

Introduction

In this page you can find the example usage for java.sql SQLOutput writeString.

Prototype

void writeString(String x) throws SQLException;

Source Link

Document

Writes the next attribute to the stream as a String in the Java programming language.

Usage

From source file:InsertCustomType_Oracle.java

public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(this.isbn);
    stream.writeString(this.title);
    stream.writeString(this.author);
    stream.writeInt(this.edition);
}

From source file:Employee.java

public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeBigDecimal(SSN);//from   w  w  w. j  av  a  2  s.co m
    stream.writeString(FirstName);
    stream.writeString(LastName);
    stream.writeBigDecimal(Salary);
}