Java SQL ResultSet BigDecimal Read getBigDecimalArray(final ResultSet resultSet, final int index)

Here you can find the source of getBigDecimalArray(final ResultSet resultSet, final int index)

Description

get Big Decimal Array

License

Apache License

Declaration

public static BigDecimal[] getBigDecimalArray(final ResultSet resultSet, final int index) throws SQLException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;
import java.sql.Array;

import java.sql.ResultSet;

import java.sql.SQLException;

public class Main {
    public static BigDecimal[] getBigDecimalArray(final ResultSet resultSet, final int index) throws SQLException {
        final Array array = resultSet.getArray(index);
        return (BigDecimal[]) array.getArray();
    }/*from  w ww . jav a2s  .c  o m*/
}

Related

  1. getBigDecimal(ResultSet res, String name)
  2. getBigDecimal(ResultSet rs, String columnLabel)
  3. getBigDecimalNotZero(ResultSet rs, String columnLabel)