Last update: 2011-06-23

org.proteios.core.query
Interface Join

All Superinterfaces:
QueryElement
All Known Implementing Classes:
HqlInnerJoin, HqlLeftJoin, HqlRightJoin

public interface Join
extends QueryElement

A join query element. This is a query element that can appear in the JOIN part of a Query. Typically a join consists of join table and a join condition (SQL) or an association property (HQL). Examples:

// SQL
SELECT hw.* 
FROM Hardware hw
JOIN HardwareTypes hwt ON hw.hardwaretype_id = hwt.id

// HQL
SELECT hw 
FROM HardwareData hw
JOIN hw.hardwareType hwt

Joins for HQL can be created by the Hql factory class.

Version:
2.0
Author:
Nicklas
See Also:
Hql
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Method Summary
 String getThetaJoin(Query query, DbControl dc)
           
 String getThetaJoinCondition(Query query, DbControl dc)
           
 
Methods inherited from interface org.proteios.core.query.QueryElement
toQl
 

Method Detail

getThetaJoin

String getThetaJoin(Query query,
                    DbControl dc)
                    throws BaseException
Throws:
BaseException

getThetaJoinCondition

String getThetaJoinCondition(Query query,
                             DbControl dc)
                             throws BaseException
Throws:
BaseException

Last update: 2011-06-23