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

📄 tshsobject.java

📁 旅游自助系统
💻 JAVA
字号:
/**
 * 
 */
package org.tshs.entity;

import java.sql.SQLException;
import java.util.Vector;

import org.tshs.core.Constant.ObjectType;
import org.tshs.exception.DBLockedException;
import org.tshs.storage.rdbms.TableRow;

/**
 * The parent class of all real tshs system objects, used in the cache mechanism
 *  
 * @author Administrator
 * 
 */
public abstract class TshsObject {

	/** The unique key of the object in TSHS System corresponding to database primary key */
	protected Long id;

	/** The TshsObject type it belongs to, such as ObjectType.CLIENT, ObjectType.CORP etc. */
	protected ObjectType type;

	/** Any tshs objects only can be instantialized from database related factory */
	TshsObject(Long id, ObjectType type) {
		this.id = id;
		this.type = type;
	}

	public Long getId() {
		return id;
	}

	public ObjectType getType() {
		return type;
	}
	
	public abstract boolean checkPassword(String password);
	
	public abstract Vector selfList() throws Exception;
	
	public abstract boolean modify(Vector data);
	
	protected abstract TableRow buildTableRow();
	
}

⌨️ 快捷键说明

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