lobobject.java
来自「DBExplorer 强烈推荐的一个JAVA项目 数据导出功能 支持的格式HTM」· Java 代码 · 共 64 行
JAVA
64 行
package cn.com.qimingx.dbe;
import java.io.File;
import cn.com.qimingx.utils.ImageUtils;
import cn.com.qimingx.utils.SQLTypeUtils;
/**
* @author inc062805
*
* 描述一个大二进制对象
*/
public class LobObject {
// 类型,CLOB or BLOB
private int type;
// 内容值
private File value;
public LobObject(int type) {
this.type = type;
}
public boolean isNull() {
return value == null;
}
public boolean isBLOB() {
return SQLTypeUtils.isBlobType(type);
}
public boolean isCLOB() {
return SQLTypeUtils.isClobType(type);
}
//
public boolean isImage() {
if (isBLOB()) {
return ImageUtils.isImage(value);
} else {
return false;
}
}
public String getTypeName() {
return SQLTypeUtils.getJdbcTypeName(type);
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public File getValue() {
return value;
}
public void setValue(File value) {
this.value = value;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?