org.israfil.sqlelements
Class InnerJoin

java.lang.Object
  extended by org.israfil.sqlelements.AbstractJoin
      extended by org.israfil.sqlelements.InnerJoin
All Implemented Interfaces:
Join

public class InnerJoin
extends AbstractJoin

A Constraint wrapper around a Join object

Version:
$Revision: 22 $
Author:
Christian Edward Gruber , Latest: $Author: cgruber $

Field Summary
 
Fields inherited from class org.israfil.sqlelements.AbstractJoin
left, right
 
Constructor Summary
InnerJoin(Column left, Column right)
          This constructs an inner join based on equality of two columns.
InnerJoin(java.lang.String columnName, Table left, Table right)
          This constructor creates an InnerJoin based on a column of the same name that occurs in two tables - specifically where they are equal.
 
Method Summary
 java.lang.String render(SQLRenderContext context)
           
 
Methods inherited from class org.israfil.sqlelements.AbstractJoin
getLeftColumn, getRightColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InnerJoin

public InnerJoin(Column left,
                 Column right)
This constructs an inner join based on equality of two columns. Note: each column must contain a Table reference


InnerJoin

public InnerJoin(java.lang.String columnName,
                 Table left,
                 Table right)
This constructor creates an InnerJoin based on a column of the same name that occurs in two tables - specifically where they are equal. This is a convenience constructor which creates a Column object for the column name in each table.

Parameters:
columnName -
left -
right -
Method Detail

render

public java.lang.String render(SQLRenderContext context)
Specified by:
render in interface Join
Specified by:
render in class AbstractJoin


Copyright 2005-2005-2006 null. All Rights Reserved.