Class SQLIn
- java.lang.Object
-
- net.ontopia.persistence.query.sql.SQLIn
-
- All Implemented Interfaces:
SQLExpressionIF
public class SQLIn extends Object implements SQLExpressionIF
INTERNAL: SQL condition: in. Evaluates to true if the left value contains the right value.An IN condition tests for existence of rows in a subquery.
-
-
Field Summary
Fields Modifier and Type Field Description protected SQLValueIF
left
protected SQLValueIF
right
-
Fields inherited from interface net.ontopia.persistence.query.sql.SQLExpressionIF
AND, EQUALS, EXISTS, FALSE, IN, IS_NULL, JOIN, LIKE, NOT, NOT_EQUALS, OR, SET_OPERATION, VALUE_EXPRESSION, VERBATIM
-
-
Constructor Summary
Constructors Modifier Constructor Description SQLIn(SQLColumns left, SQLParameter right)
SQLIn(SQLTuple left, SQLParameter right)
protected
SQLIn(SQLValueIF left, SQLValueIF right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLValueIF
getLeft()
SQLValueIF
getRight()
int
getType()
INTERNAL: Returns the expression type.void
setLeft(SQLValueIF left)
void
setRight(SQLValueIF right)
String
toString()
-
-
-
Field Detail
-
left
protected SQLValueIF left
-
right
protected SQLValueIF right
-
-
Constructor Detail
-
SQLIn
public SQLIn(SQLColumns left, SQLParameter right)
-
SQLIn
public SQLIn(SQLTuple left, SQLParameter right)
-
SQLIn
protected SQLIn(SQLValueIF left, SQLValueIF right)
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:SQLExpressionIF
INTERNAL: Returns the expression type. The type is represented by one of the constants in theSQLExpressionIF
interface.- Specified by:
getType
in interfaceSQLExpressionIF
-
getLeft
public SQLValueIF getLeft()
-
setLeft
public void setLeft(SQLValueIF left)
-
getRight
public SQLValueIF getRight()
-
setRight
public void setRight(SQLValueIF right)
-
-