public Object getValue(String columnName,ObjectType type) throws DAOException{
		
		Object obj = null;
		
		try{
			switch(type){
			case DOUBLE:
				obj = this.getResultSet().getDouble(columnName);
				break;
			case INTEGER:
				obj = this.getResultSet().getInt(columnName);
				break;
			case STRING:
				obj = this.getResultSet().getString(columnName);
				break;
			case DATE:
				try{
					obj = this.getResultSet().getTimestamp(columnName);
					if (obj == null) throw new Exception("dumb");
					obj = new Date(((Timestamp) obj).getTime());
					
				}catch(Exception e){
					obj = this.getResultSet().getDate(columnName);
				}
				break;
			default:
				break;
			}
			
			if(this.getResultSet().wasNull()){
				obj = null;
			}

			return obj;
			
		}catch(SQLException e){
			throw new DAOException(e);
		}

	}