package com.smartgwt.sample.server.listener;

import java.util.Map;

import com.isomorphic.datasource.DataSource;
import com.isomorphic.datasource.Validator;
import com.isomorphic.log.Logger;

public class TrueValidator {

	public boolean condition(Object value, Validator validator, String fieldName, @SuppressWarnings("rawtypes") Map record, DataSource ds)
			throws Exception {
		Logger log = new Logger("com.isomorphic." + TrueValidator.class.getName());
		log.info("Called for field \"" + fieldName + "\", value \"" + (value == null ? "NULL" : value.toString()) + "\"");
		return true;
	}
}