package data;

import org.apache.scaffold.model.ModelBeanBase;
import org.apache.scaffold.model.ModelException;
import org.apache.scaffold.model.ModelResult;

public class Bean extends ModelBeanBase 
{
	/*
	 * Table Fields 	
	 */
	protected Integer bankID;
	protected Integer entityID;
	
	public static final int BANKID_TYPE = java.sql.Types.INTEGER;
	public static final int ENTITYID_TYPE = java.sql.Types.INTEGER;
	
	/**
	 * Get the bankID property (Integer) value. 	
	 */
	public Integer getBankID()
	{
		return bankID;
	}

	/**
	 * Set the bankID property (Integer) value. 	
	 */
	public void setBankID(Integer bankID)
	{
		this.bankID = bankID;
		if (bankID==null) setKey(null);
		else setKey(bankID.toString());
	}

	/**
	 * Get the entityID property (Integer) value. 	
	 */
	public Integer getEntityID()
	{
		return entityID;
	}

	/**
	 * Set the entityID property (Integer) value. 	
	 */
	public void setEntityID(Integer entityID)
	{
		this.entityID = entityID;
	}

	/**
	 * Get the bankID property as a String. 	
	 */
	public String getBankIDText()
	{
		if (bankID==null) return null;
		else return bankID.toString();
	}

	/**
	 * Set the bankID property from a String. 	
	 */
	public void setBankIDText(String bankID)
	{
		if (bankID==null) setBankID(null);
		else setBankID(new Integer(bankID));
	}

	/**
	 * Get the entityID property as a String. 	
	 */
	public String getEntityIDText()
	{
		if (entityID==null) return null;
		else return entityID.toString();
	}

	/**
	 * Set the entityID property from a String. 	
	 */
	public void setEntityIDText(String entityID)
	{
		if (entityID==null) setEntityID(null);
		else setEntityID(new Integer(entityID));
	}
	
	public ModelResult execute(Object source, Object target)
			throws ModelException {
		//:FIXME: use a constant for this message.
		throw new ModelException("Not Implemented");
	}
}
