📄 sqlblob.java
字号:
package gov.gdlt.ssgly.taxcore.taxdao.wdsc;
import java.sql.SQLException;
import com.ibatis.sqlmap.client.extensions.*;
import oracle.sql.BLOB;
/**
* <p>Title: </p>
*
* <p>Description: 广东地税税收管理员工作平台</p>
*
* <p>Copyright: Copyright (c) 2005 广东省地方税务局,广州市地方税务局</p>
*
* <p>Company: 广州地税</p>
*
* @author ZHANGCHENGHUA
* @version 1.0
*/
public class SqlBlob implements TypeHandlerCallback {
BLOB m_blob = null;
public SqlBlob() {
}
/**
* getResult
*
* @param resultGetter ResultGetter
* @return Object
* @throws SQLException
* @todo Implement this
* com.ibatis.sqlmap.client.extensions.TypeHandlerCallback method
*/
public Object getResult(ResultGetter resultGetter) throws SQLException {
m_blob = (BLOB) resultGetter.getBlob();
return m_blob;
}
/**
* setParameter
*
* @param parameterSetter ParameterSetter
* @param object Object
* @throws SQLException
* @todo Implement this
* com.ibatis.sqlmap.client.extensions.TypeHandlerCallback method
*/
public void setParameter(ParameterSetter parameterSetter, Object object) throws
SQLException {
parameterSetter.setBlob((BLOB)object);
}
/**
* valueOf
*
* @param string String
* @return Object
* @todo Implement this
* com.ibatis.sqlmap.client.extensions.TypeHandlerCallback method
*/
public Object valueOf(String string) {
byte[] in_b = string.getBytes();
try {
m_blob.setBytes(1, in_b);
} catch (SQLException se) {
se.printStackTrace();
}
//System.out.println("valueOf " + m_blob);
return m_blob;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -