Package com.gengoai.sql.operator
Class SQLOperator
- java.lang.Object
-
- com.gengoai.sql.operator.SQLOperator
-
- All Implemented Interfaces:
SQLOperable
,SQLElement
,Serializable
- Direct Known Subclasses:
Between
,InfixBinaryOperator
,PostfixUnaryOperator
,PrefixUnaryOperator
public abstract class SQLOperator extends Object implements SQLOperable, Serializable
Defines an SQL operator that operators over one or more
SQLElement
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SQLOperator()
protected
SQLOperator(String operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOperator()
Gets the string form of the operator (not the full expression)boolean
isRequiresParenthesis()
Does this operator require parenthesis for its arguments.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gengoai.sql.SQLElement
getClassName
-
-
-
-
Field Detail
-
operator
protected final String operator
-
-
Constructor Detail
-
SQLOperator
protected SQLOperator()
-
SQLOperator
protected SQLOperator(String operator)
-
-
Method Detail
-
getOperator
public final String getOperator()
Gets the string form of the operator (not the full expression)- Returns:
- the operator
-
isRequiresParenthesis
public boolean isRequiresParenthesis()
Does this operator require parenthesis for its arguments.- Returns:
- true if arguments must be placed in parenthesis
-
-