Class Join

java.lang.Object
org.apache.openjpa.jdbc.sql.Join
All Implemented Interfaces:
Cloneable, JoinSyntaxes

public class Join extends Object implements Cloneable, JoinSyntaxes
Represents a SQL join.
Author:
Abe White
  • Field Details

  • Method Details

    • getType

      public int getType()
    • setType

      public void setType(int type)
    • getAlias1

      public String getAlias1()
    • getAlias2

      public String getAlias2()
    • getTable1

      public Table getTable1()
    • getTable2

      public Table getTable2()
    • getForeignKey

      public ForeignKey getForeignKey()
    • isForeignKeyInversed

      public boolean isForeignKeyInversed()
    • getRelationTarget

      public ClassMapping getRelationTarget()
      If joining a relation, the target type.
    • getSubclasses

      public int getSubclasses()
      If joining a relation, how to deal with subclasses. See subclass constants in Select.
    • getRelationJoins

      public Joins getRelationJoins()
      If joining a relation, the joins leading to the relation.
    • setRelation

      public void setRelation(ClassMapping target, int subs, Joins joins)
      When joining a relation, set target type and how to deal with subclasses. See subclass constants in #Select.
    • reverse

      public Join reverse()
      Return a join that is this join in reverse.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • isCorrelated

      public boolean isCorrelated()
    • setCorrelated

      public void setCorrelated()
    • isNotMyJoin

      public boolean isNotMyJoin()
    • setIsNotMyJoin

      public void setIsNotMyJoin()