32 lines
851 B
Java
32 lines
851 B
Java
package org.gcube.portlets.user.td.expressionwidget.shared.model.composite.text;
|
|
|
|
import org.gcube.portlets.user.td.expressionwidget.shared.model.Expression;
|
|
import org.gcube.portlets.user.td.expressionwidget.shared.model.OperatorType;
|
|
|
|
/**
|
|
*
|
|
* @author "Giancarlo Panichi"
|
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class TextMatchSQLRegexp extends Expression {
|
|
private static final long serialVersionUID = -4097780009381262681L;
|
|
protected Expression leftArgument;
|
|
protected Expression rightArgument;
|
|
|
|
public TextMatchSQLRegexp(Expression leftArgument, Expression rightArgument) {
|
|
this.leftArgument = leftArgument;
|
|
this.rightArgument = rightArgument;
|
|
}
|
|
|
|
public OperatorType getOperator() {
|
|
return OperatorType.MATCH_REGEX;
|
|
}
|
|
|
|
public String getReturnedDataType() {
|
|
return "Boolean";
|
|
}
|
|
|
|
}
|
|
|