org.hibernate.sql.ast.common
Class JoinType

java.lang.Object
  extended by org.hibernate.sql.ast.common.JoinType
All Implemented Interfaces:
Serializable

public class JoinType
extends Object
implements Serializable

Represents a canonical join type.

Note that currently HQL really only supports inner and left outer joins (though cross joins can also be achieved). This is because joins in HQL are always defined in relation to a mapped association. However, when we start allowing users to specify ad-hoc joins this may need to change to allow the full spectrum of join types. Thus the others are provided here currently just for completeness and for future expansion.

Author:
Steve Ebersole
See Also:
Serialized Form

Field Summary
static JoinType CROSS
          Represents a cross join (aka a cartesian product).
static JoinType FULL
          Represents a full join.
static JoinType INNER
          Represents an inner join.
static JoinType LEFT
          Represents a left outer join.
static JoinType RIGHT
          Represents a right outer join.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INNER

public static final JoinType INNER
Represents an inner join.


LEFT

public static final JoinType LEFT
Represents a left outer join.


RIGHT

public static final JoinType RIGHT
Represents a right outer join.


CROSS

public static final JoinType CROSS
Represents a cross join (aka a cartesian product).


FULL

public static final JoinType FULL
Represents a full join.

Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Hibernate. All Rights Reserved.