/*
 * Created on Jul 26, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package jreport.uds.javabean;

import java.io.Serializable;

/**
 * @author jennyw
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
class SQLTypeInfo implements Serializable{
	private int sqlType;
	private String typeName;
	private int precision;
	private int displaySize;
	private int scale;
	private Object defaultValue;
	
	public SQLTypeInfo(int sqltype, String typeName, int precision, int displaySize, int scale, Object defaultValue){
		this.sqlType = sqltype;
		this.typeName = typeName;
		this.precision=precision;
		this.displaySize=displaySize;
		this.scale=scale;
		this.defaultValue=defaultValue;
	}
	
	public void setSqlType( int sqlType){
		this.sqlType = sqlType;
	}
	
	public int getSqlTyp(){
		return sqlType;
	}
	
	public void setTypeName(String typeString){
		this.typeName=typeString;
	}
	
	public String getTypeName(){
		return typeName;
	}
	
	public void setPrecision(int precision){
		this.precision=precision;
		
	}
	
	public int getPrecision(){
		return precision;
	}
	
	public void setDisplaySize(int displaySize){
		this.displaySize=displaySize;
	}
	
	public int getDisplaySize(){
		return displaySize;
	}
	
	public void setScale(int scale){
		this.scale=scale;
	}
	
	public int getScale(){
		return scale;
	}
	
	public Object getDefaultValue(){
		return this.defaultValue;
	}
}
