blobber.java

来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 59 行

JAVA
59
字号
package org.hibernate.test;

import java.sql.Blob;
import java.sql.Clob;

public class Blobber {
	private int id;
	private Blob blob;
	private Clob clob;
	/**
	 * Returns the blob.
	 * @return Blob
	 */
	public Blob getBlob() {
		return blob;
	}

	/**
	 * Returns the clob.
	 * @return Clob
	 */
	public Clob getClob() {
		return clob;
	}

	/**
	 * Returns the id.
	 * @return int
	 */
	public int getId() {
		return id;
	}

	/**
	 * Sets the blob.
	 * @param blob The blob to set
	 */
	public void setBlob(Blob blob) {
		this.blob = blob;
	}

	/**
	 * Sets the clob.
	 * @param clob The clob to set
	 */
	public void setClob(Clob clob) {
		this.clob = clob;
	}

	/**
	 * Sets the id.
	 * @param id The id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?