Class SQLJoin
- java.lang.Object
-
- net.ontopia.persistence.query.sql.SQLJoin
-
- All Implemented Interfaces:
SQLExpressionIF
public class SQLJoin extends Object implements SQLExpressionIF
INTERNAL: SQL expression: join. Represents a join between two tables. A join is a query that combines rows from two or more tables, views, or materialized views ("snapshots").Cross joins, left outer joins and right outer joins are supported.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CROSS
protected int
jointype
protected SQLColumns
left
static int
LEFT_OUTER
protected SQLColumns
right
static int
RIGHT_OUTER
-
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 Constructor Description SQLJoin()
SQLJoin(SQLColumns left, SQLColumns right)
SQLJoin(SQLColumns left, SQLColumns right, int jointype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getJoinType()
SQLColumns
getLeft()
SQLColumns
getRight()
int
getType()
INTERNAL: Returns the expression type.int
hashCode()
void
setJoinType(int jointype)
void
setLeft(SQLColumns left)
void
setRight(SQLColumns right)
String
toString()
-
-
-
Field Detail
-
CROSS
public static final int CROSS
- See Also:
- Constant Field Values
-
LEFT_OUTER
public static final int LEFT_OUTER
- See Also:
- Constant Field Values
-
RIGHT_OUTER
public static final int RIGHT_OUTER
- See Also:
- Constant Field Values
-
jointype
protected int jointype
-
left
protected SQLColumns left
-
right
protected SQLColumns right
-
-
Constructor Detail
-
SQLJoin
public SQLJoin()
-
SQLJoin
public SQLJoin(SQLColumns left, SQLColumns right)
-
SQLJoin
public SQLJoin(SQLColumns left, SQLColumns right, int jointype)
-
-
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
-
getJoinType
public int getJoinType()
-
setJoinType
public void setJoinType(int jointype)
-
getLeft
public SQLColumns getLeft()
-
setLeft
public void setLeft(SQLColumns left)
-
getRight
public SQLColumns getRight()
-
setRight
public void setRight(SQLColumns right)
-
-