cn.tenmg.sqltool.sql.getter.BytesResultGetter 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.sql.ResultSet;
import java.sql.SQLException;
/**
* {@code byte[]} 类型结果获取器
*
* @author June [email protected]
*
* @since 1.5.0
*/
public class BytesResultGetter extends AbstractResultGetter {
@Override
public byte[] getValue(ResultSet rs, int columnIndex) throws SQLException {
return rs.getBytes(columnIndex);
}
@Override
public byte[] getValue(ResultSet rs, String columnLabel) throws SQLException {
return rs.getBytes(columnLabel);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy