net.ontopia.persistence.query.sql
Class SQLJoin

java.lang.Object
  extended by net.ontopia.persistence.query.sql.SQLJoin
All Implemented Interfaces:
SQLExpressionIF

public class SQLJoin
extends java.lang.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
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
SQLJoin()
           
SQLJoin(SQLColumns left, SQLColumns right)
           
SQLJoin(SQLColumns left, SQLColumns right, int jointype)
           
 
Method Summary
 boolean equals(java.lang.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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 the SQLExpressionIF interface.

Specified by:
getType in interface SQLExpressionIF

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)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.