Package org.compiere.dbPort
Class Join
- java.lang.Object
-
- org.compiere.dbPort.Join
-
public class Join extends Object
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCondition()
Get Join condition.String
getJoinAlias()
Get Join Table AliasString
getJoinClause()
Get origial Join Clause.String
getJoinTable()
Get Join Table NameString
getMainAlias()
Get Main Table AliasString
getMainTable()
Get Main Table Nameboolean
isConditionOf(Join first)
This Join is a condition of the first Join.boolean
isLeft()
Is Left Aouter Joinvoid
setJoinTable(String joinTable)
Set Main Table Name.void
setMainTable(String mainTable)
Set Main Table Name.String
toString()
String representation
-
-
-
Constructor Detail
-
Join
public Join(String joinClause)
Constructor- Parameters:
joinClause
-
-
-
Method Detail
-
getJoinClause
public String getJoinClause()
Get origial Join Clause. e.g. f.AD_Column_ID = c.AD_Column_ID(+)- Returns:
- Join cluase
-
getMainAlias
public String getMainAlias()
Get Main Table Alias- Returns:
- Main Table Alias
-
getJoinAlias
public String getJoinAlias()
Get Join Table Alias- Returns:
- Join Table Alias
-
isLeft
public boolean isLeft()
Is Left Aouter Join- Returns:
- true if left outer join
-
getCondition
public String getCondition()
Get Join condition. e.g. f.AD_Column_ID = c.AD_Column_ID- Returns:
- join condition
-
setMainTable
public void setMainTable(String mainTable)
Set Main Table Name. If table name equals alias, the alias is set to ""- Parameters:
mainTable
-
-
getMainTable
public String getMainTable()
Get Main Table Name- Returns:
- Main Table Name
-
setJoinTable
public void setJoinTable(String joinTable)
Set Main Table Name. If table name equals alias, the alias is set to ""- Parameters:
joinTable
-
-
getJoinTable
public String getJoinTable()
Get Join Table Name- Returns:
- Join Table Name
-
isConditionOf
public boolean isConditionOf(Join first)
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
-
-