/*
 * Created on Jul 17, 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;
import java.util.Comparator;
import java.util.Vector;

/**
 * @author jennyw
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
class ColumnInfo implements Serializable{
	private String name;
	private Class  typeClass;
	private Boolean nullable;
	private Vector  methods;
	
	private SQLTypeInfo sqlTypeInfo;
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}
	
	public int getType(){
		return sqlTypeInfo.getSqlTyp();
	}
	
	public String getTypeName(){
		return sqlTypeInfo.getTypeName();
	}
	
	public int getPrecision (){
		return sqlTypeInfo.getPrecision();
	}
	
	public int getScale(){
		return sqlTypeInfo.getScale();
	}
	

	public int getDisplaySize(){
		return sqlTypeInfo.getDisplaySize();
	}
	
	public void setNullable (Boolean nullable){
		this.nullable = nullable;
	}
	
	public Boolean getNullable(){
		return nullable;
	}
	
	public void setTypeClass(Class cls){
	this.typeClass = cls;
	}
	
	public Class getTypeClass(){
		return typeClass;
	}
	
	public void setMethods(Vector methods){
		this.methods = methods;
	}
	
	public Vector getMethods(){
		return methods;
	}
	
	public void setSqlTypeInfo(SQLTypeInfo sqlTypeInfo){
		this.sqlTypeInfo=sqlTypeInfo;
		
	}
	
	public SQLTypeInfo getSqlTypeInfo(){
		return sqlTypeInfo;
	}
}
