public String getValueAsString() {

		if (value == null)
			return null;

		logger.debug("field is " + this.getName() + " and val is |" + value + "|");

		switch (type) {

		case DAOutils.STRING_TYPE:
			if (this.getHtmlType() == DAOutils.Y_OR_N) {
				return ((String) value).trim().equalsIgnoreCase("Y") ? "Y" : "N";
			}
			return (String) value;

		case DAOutils.INT_TYPE:
			return ((Integer) value).toString();

		case DAOutils.TIMESTAMP_TYPE:
			return ((Timestamp) value).toString();

		case DAOutils.FLOAT_TYPE:
			return ((Float) value).toString();

		case DAOutils.DATE_TYPE:
			return ((Date) value).toString();
			
		case DAOutils.PASSWORD_TYPE:
			return (String) value;
		}

		logger.debug("should never be here");
		return "";
	}