Example usage for java.sql SQLInput readBigDecimal

List of usage examples for java.sql SQLInput readBigDecimal

Introduction

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

Prototype

java.math.BigDecimal readBigDecimal() throws SQLException;

Source Link

Document

Reads the next attribute in the stream and returns it as a java.math.BigDecimal object in the Java programming language.

Usage

From source file:Employee.java

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