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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
If joining a relation, the joins leading to the relation.If joining a relation, the target type.int
If joining a relation, how to deal with subclasses.int
getType()
int
hashCode()
boolean
boolean
boolean
reverse()
Return a join that is this join in reverse.void
void
void
setRelation
(ClassMapping target, int subs, Joins joins) When joining a relation, set target type and how to deal with subclasses.void
setType
(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()
-