All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anodoc.query2.QueryNotEqualProperty Maven / Gradle / Ivy

package net.anotheria.anodoc.query2;


/**
 * Difference with QueryProperty is property value of queried object must be less then specified in this query.
 *
 * IMPORTANT:Tested only in postgressql!
 *
 * @author denis
 * @version $Id: $Id
 */
public class QueryNotEqualProperty extends QueryProperty{
	/**
	 * svuid.
	 */
	private static final long serialVersionUID = 4846334131763003505L;
	/**
	 * Creates a new QueryNotEqualProperty.
	 *
	 * @param name a {@link java.lang.String} object.
	 * @param value a {@link java.lang.Object} object.
	 */
	public QueryNotEqualProperty(String name, Object value) {
		super(name, value);
	}

	/** {@inheritDoc} */
	@Override public String toString(){
		return getName() + "!=" +getValue();
	}
	
	/** {@inheritDoc} */
	@Override public String getComparator(){
		return " != ";
	}
	
	/** {@inheritDoc} */
	@Override public boolean doesMatch(Object o){
		return !super.doesMatch(o);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy