Package org.apache.openjpa.jdbc.sql
Class Join
java.lang.Object
org.apache.openjpa.jdbc.sql.Join
- All Implemented Interfaces:
Cloneable,JoinSyntaxes
Represents a SQL join.
- Author:
- Abe White
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanIf joining a relation, the joins leading to the relation.If joining a relation, the target type.intIf joining a relation, how to deal with subclasses.intgetType()inthashCode()booleanbooleanbooleanreverse()Return a join that is this join in reverse.voidvoidvoidsetRelation(ClassMapping target, int subs, Joins joins) When joining a relation, set target type and how to deal with subclasses.voidsetType(int type) toString()
-
Field Details
-
TYPE_INNER
public static final int TYPE_INNER- See Also:
-
TYPE_OUTER
public static final int TYPE_OUTER- See Also:
-
TYPE_CROSS
public static final int TYPE_CROSS- See Also:
-
-
Method Details
-
getType
public int getType() -
setType
public void setType(int type) -
getAlias1
-
getAlias2
-
getTable1
-
getTable2
-
getForeignKey
-
isForeignKeyInversed
public boolean isForeignKeyInversed() -
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
If joining a relation, the joins leading to the relation. -
setRelation
When joining a relation, set target type and how to deal with subclasses. See subclass constants in#Select. -
reverse
Return a join that is this join in reverse. -
hashCode
public int hashCode() -
equals
-
toString
-
clone
-
isNotMyJoin
public boolean isNotMyJoin() -
setIsNotMyJoin
public void setIsNotMyJoin()
-