2.8.1: 2008-09-10

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: 2008-09-05 17:16:27 +0200 (Fri, 05 Sep 2008) $

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.8.1: 2008-09-10