cn.tenmg.sqltool.sql.getter.BigDecimalResultGetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqltool Show documentation
Show all versions of sqltool Show documentation
一个提供动态结构化查询语言(DSQL)解析和执行的通用ORM框架(连接池在分布式环境适用),支持包括MySQL、PostgreSQL、Oracle、SQLServer在内的多种数据库。
The newest version!
package cn.tenmg.sqltool.sql.getter;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* {@link java.math.BigDecimal} 类型结果获取器
*
* @author June [email protected]
*
* @since 1.5.0
*/
public class BigDecimalResultGetter extends AbstractResultGetter {
@Override
public BigDecimal getValue(ResultSet rs, int columnIndex) throws SQLException {
return rs.getBigDecimal(columnIndex);
}
@Override
public BigDecimal getValue(ResultSet rs, String columnLabel) throws SQLException {
return rs.getBigDecimal(columnLabel);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy