Package org.apache.openjpa.jdbc.sql
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 Summary
Fields Modifier and Type Field Description static intTYPE_CROSSstatic intTYPE_INNERstatic intTYPE_OUTER-
Fields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object other)StringgetAlias1()StringgetAlias2()ForeignKeygetForeignKey()JoinsgetRelationJoins()If joining a relation, the joins leading to the relation.ClassMappinggetRelationTarget()If joining a relation, the target type.intgetSubclasses()If joining a relation, how to deal with subclasses.TablegetTable1()TablegetTable2()intgetType()inthashCode()booleanisCorrelated()booleanisForeignKeyInversed()booleanisNotMyJoin()Joinreverse()Return a join that is this join in reverse.voidsetCorrelated()voidsetIsNotMyJoin()voidsetRelation(ClassMapping target, int subs, Joins joins)When joining a relation, set target type and how to deal with subclasses.voidsetType(int type)StringtoString()
-
-
-
Field Detail
-
TYPE_INNER
public static final int TYPE_INNER
- See Also:
- Constant Field Values
-
TYPE_OUTER
public static final int TYPE_OUTER
- See Also:
- Constant Field Values
-
TYPE_CROSS
public static final int TYPE_CROSS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 inSelect.
-
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.
-
isCorrelated
public boolean isCorrelated()
-
setCorrelated
public void setCorrelated()
-
isNotMyJoin
public boolean isNotMyJoin()
-
setIsNotMyJoin
public void setIsNotMyJoin()
-
-