Package org.compiere.dbPort
Class Join
java.lang.Object
org.compiere.dbPort.Join
Model for Join Clause.
f.AD_Column_ID = c.AD_Column_ID(+)
- Version:
- $Id: Join.java,v 1.2 2006/07/30 00:55:04 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet Join condition.
e.g. f.AD_Column_ID = c.AD_Column_IDGet Join Table AliasGet original Join Clause.
e.g. f.AD_Column_ID = c.AD_Column_ID(+)Get Join Table NameGet Main Table AliasGet Main Table Nameboolean
isConditionOf
(Join first) This Join is a condition of the first Join.boolean
isLeft()
Is Left Outer Joinvoid
setJoinTable
(String joinTable) Set Join Table Name.
If join table name equals join alias, the join alias is set to ""void
setMainTable
(String mainTable) Set Main Table Name.toString()
String representation
-
Constructor Details
-
Join
Constructor- Parameters:
joinClause
-
-
-
Method Details
-
getJoinClause
Get original Join Clause.
e.g. f.AD_Column_ID = c.AD_Column_ID(+)- Returns:
- Join cluase
-
getMainAlias
Get Main Table Alias- Returns:
- Main Table Alias
-
getJoinAlias
Get Join Table Alias- Returns:
- Join Table Alias
-
isLeft
public boolean isLeft()Is Left Outer Join- Returns:
- true if left outer join
-
getCondition
Get Join condition.
e.g. f.AD_Column_ID = c.AD_Column_ID- Returns:
- join condition
-
setMainTable
Set Main Table Name. If table name equals alias, the alias is set to ""- Parameters:
mainTable
-
-
getMainTable
Get Main Table Name- Returns:
- Main Table Name
-
setJoinTable
Set Join Table Name.
If join table name equals join alias, the join alias is set to ""- Parameters:
joinTable
-
-
getJoinTable
Get Join Table Name- Returns:
- Join Table Name
-
isConditionOf
This Join is a condition of the first Join.
e.g. tb.AD_User_ID(+)=? or tb.AD_User_ID(+)='123'- Parameters:
first
-- Returns:
- true if condition
-
toString
String representation
-