private void setParamByType(PreparedStatement ps, Object ea,
			Class<?> eaType, int parameterIndex) throws SQLException {
		if (eaType == String.class) {
			ps.setString(parameterIndex, ea.toString());
			
		} else if (eaType == Integer.class) {
			ps.setInt(parameterIndex, (Integer)ea);
		
		} else if (eaType == Float.class) {
			ps.setFloat(parameterIndex, (Float)ea);
		
		} else if (eaType == Date.class) {
		    java.sql.Date sqlDate = new java.sql.Date(((Date)ea).getTime());
		    ps.setDate(parameterIndex, sqlDate);
		
		} else if (eaType == Double.class) {
		    ps.setDouble(parameterIndex, (Double)ea);
		}
	}