
com.samskivert.depot.impl.operator.Like Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of depot Show documentation
Show all versions of depot Show documentation
A library for relational-database-based persistence in Java.
//
// Depot library - a Java relational persistence library
// http://code.google.com/p/depot/source/browse/trunk/LICENSE
package com.samskivert.depot.impl.operator;
import com.samskivert.depot.expression.SQLExpression;
/**
* The SQL 'like' (and 'not like') operator.
*/
public class Like extends BinaryOperator
{
public Like (SQLExpression> column, Comparable> value, boolean like)
{
super(column, value);
_like = like;
}
public Like (SQLExpression> column, SQLExpression> value, boolean like)
{
super(column, value);
_like = like;
}
@Override // from BinaryOperator
public String operator()
{
return _like ? " like " : " not like ";
}
@Override // from BinaryOperator
public Object evaluate (Object left, Object right)
{
return new NoValue("Like operator not implemented");
}
protected boolean _like;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy