2.17.2: 2011-06-17

net.sf.basedb.core.query
Interface Join

All Superinterfaces:
QueryElement
All Known Implementing Classes:
DynamicJoin, ExtraValueJoin, HqlInnerJoin, HqlLeftJoin, HqlRightJoin, RealJoin, ReporterListJoin

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-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Method Summary
 String getThetaJoin(Query query, DbControl dc)
           
 String getThetaJoinCondition(Query query, DbControl dc)
           
 
Methods inherited from interface net.sf.basedb.core.query.QueryElement
getChildren, 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

2.17.2: 2011-06-17