package com.sumware.sql;

/**
 * SQLParam is a value object that represents an object and 
 * it's type [from java.sql.Types] for inserting into a 
 * prepared statement.  
 * <p>
 * @author Nathan Anderson
 * @version $Revision: 1.0 $ $Date: 2001/12/07 $
 */

public class SQLParam 
{
	private Object object;
	private int type;
	
	/** 
	 * Useless default constructor
	 */
	public SQLParam (){
	}
	
	/** 
	 * Constructor that sets the object and type values
	 * @param object The object to store
	 * @param type The type of the object 
	 * SEE - java.sql.Types
	 */
	public SQLParam (Object object, int type) {
		this.object = object;
		this.type = type;
	}
	
	/**
	 * Getter for the object value
	 * @returns Object 
	 */
	public Object object() {
		return object;
	}
	
	/**
	 * Getter for the type value
	 * @returns int 
	 */
	public int type() {
		return type;
	}
}
