类 OracleJoinFragment


  • public class OracleJoinFragment
    extends JoinFragment
    An Oracle-style (theta) join
    作者:
    Jon Lipsky, Gavin King
    • 构造器详细资料

      • OracleJoinFragment

        public OracleJoinFragment()
    • 方法详细资料

      • addJoin

        public void addJoin​(String tableName,
                            String alias,
                            String[] fkColumns,
                            String[] pkColumns,
                            JoinType joinType)
        从类复制的说明: JoinFragment
        Adds a join.
        指定者:
        addJoin 在类中 JoinFragment
        参数:
        tableName - The name of the table to be joined
        alias - The alias to apply to the joined table
        fkColumns - The names of the columns which reference the joined table
        pkColumns - The columns in the joined table being referenced
        joinType - The type of join
      • toFromFragmentString

        public String toFromFragmentString()
        从类复制的说明: JoinFragment
        Render this fragment to its FROM clause portion
        指定者:
        toFromFragmentString 在类中 JoinFragment
        返回:
        The FROM clause portion of this fragment
      • toWhereFragmentString

        public String toWhereFragmentString()
        从类复制的说明: JoinFragment
        Render this fragment to its WHERE clause portion
        指定者:
        toWhereFragmentString 在类中 JoinFragment
        返回:
        The WHERE clause portion of this fragment
      • addJoins

        public void addJoins​(String fromFragment,
                             String whereFragment)
        从类复制的说明: JoinFragment
        Free-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragments
        指定者:
        addJoins 在类中 JoinFragment
        参数:
        fromFragment - The FROM clause fragment
        whereFragment - The WHERE clause fragment
      • addCondition

        public void addCondition​(String alias,
                                 String[] columns,
                                 String condition)
      • addCrossJoin

        public void addCrossJoin​(String tableName,
                                 String alias)
        从类复制的说明: JoinFragment
        Adds a cross join to the specified table.
        指定者:
        addCrossJoin 在类中 JoinFragment
        参数:
        tableName - The name of the table to be joined
        alias - The alias to apply to the joined table
      • addCondition

        public void addCondition​(String alias,
                                 String[] fkColumns,
                                 String[] pkColumns)
        从类复制的说明: JoinFragment
        Adds a condition to the join fragment.
        指定者:
        addCondition 在类中 JoinFragment
        参数:
        alias - The alias of the joined table
        fkColumns - The names of the columns which reference the joined table
        pkColumns - The columns in the joined table being referenced
      • addCondition

        public boolean addCondition​(String condition)
        从类复制的说明: JoinFragment
        Adds a free-form condition fragment
        指定者:
        addCondition 在类中 JoinFragment
        参数:
        condition - The fragment
        返回:
        true if the condition was added
      • addFromFragmentString

        public void addFromFragmentString​(String fromFragmentString)
      • addJoin

        public void addJoin​(String tableName,
                            String alias,
                            String[] fkColumns,
                            String[] pkColumns,
                            JoinType joinType,
                            String on)
        从类复制的说明: JoinFragment
        Adds a join, with an additional ON clause fragment
        指定者:
        addJoin 在类中 JoinFragment
        参数:
        tableName - The name of the table to be joined
        alias - The alias to apply to the joined table
        fkColumns - The names of the columns which reference the joined table
        pkColumns - The columns in the joined table being referenced
        joinType - The type of join
        on - The additional ON fragment
      • addJoin

        public void addJoin​(String tableName,
                            String alias,
                            String[][] fkColumns,
                            String[] pkColumns,
                            JoinType joinType,
                            String on)
        从类复制的说明: JoinFragment
        Adds a join, with an additional ON clause fragment
        覆盖:
        addJoin 在类中 JoinFragment
        参数:
        tableName - The name of the table to be joined
        alias - The alias to apply to the joined table
        fkColumns - The names of the columns which reference the joined table
        pkColumns - The columns in the joined table being referenced
        joinType - The type of join
        on - The additional ON fragment