Class 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
    • 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
      • toString

        public String toString()
        String representation
        Overrides:
        toString in class Object
        Returns:
        info