Example usage for java.sql SQLOutput writeBigDecimal

List of usage examples for java.sql SQLOutput writeBigDecimal

Introduction

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

Prototype

void writeBigDecimal(java.math.BigDecimal x) throws SQLException;

Source Link

Document

Writes the next attribute to the stream as a java.math.BigDecimal object.

Usage

From source file:Employee.java

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