All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frameworkset.common.bean.ValueObject Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

There is a newer version: 6.2.7
Show newest version
/*
 * Created on 2004-6-3
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package com.frameworkset.common.bean;

import java.io.Serializable;

/**
 * @author biaoping.yin
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public abstract class ValueObject implements Serializable
{	
	/**
	 * 获取值对象的关键字
	 * @return 返回值对象的关键字
	 */
	public abstract Object getKey();
	/**
	 * 设置值对象的关键字 
	 */	
	public abstract void setKey(Object key);
	
	public boolean equals(Object obj)
	{		
		if(obj == null)
			return false;
		ValueObject vo = (ValueObject)obj;
		if(this.getKey() == vo.getKey())
			return true;
		return false;
	}	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy