public static String nvl(Object o,String replacer){
		if(o==null||"".equals(o))
			return replacer;
		else if(o instanceof Number)
			return (String)o;
		else if(o instanceof Boolean)
			return (Boolean)o==true?"1":"0";
		else 
			return "'"+(String)o+"'";
	}