⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lobobject.java

📁 DBExplorer 强烈推荐的一个JAVA项目 数据导出功能 支持的格式HTML PDF XLS等 支持的数据库有MYSQL ORACLE MSSQLSERVER等
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -