public class Join extends java.lang.Object implements java.lang.Cloneable, JoinSyntaxes
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_CROSS |
static int |
TYPE_INNER |
static int |
TYPE_OUTER |
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL| Constructor and Description |
|---|
Join(Table table1,
int alias1,
Table table2,
int alias2,
ForeignKey fk,
boolean inverse)
Constructor for inner and outer joins.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAlias1() |
java.lang.String |
getAlias2() |
ForeignKey |
getForeignKey() |
(package private) int |
getIndex1() |
(package private) int |
getIndex2() |
Joins |
getRelationJoins()
If joining a relation, the joins leading to the relation.
|
ClassMapping |
getRelationTarget()
If joining a relation, the target type.
|
int |
getSubclasses()
If joining a relation, how to deal with subclasses.
|
Table |
getTable1() |
Table |
getTable2() |
int |
getType() |
int |
hashCode() |
boolean |
isCorrelated() |
boolean |
isForeignKeyInversed() |
boolean |
isNotMyJoin() |
Join |
reverse()
Return a join that is this join in reverse.
|
void |
setCorrelated() |
void |
setIsNotMyJoin() |
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) |
java.lang.String |
toString() |
public static final int TYPE_INNER
public static final int TYPE_OUTER
public static final int TYPE_CROSS
Join(Table table1, int alias1, Table table2, int alias2, ForeignKey fk, boolean inverse)
public int getType()
public void setType(int type)
public java.lang.String getAlias1()
public java.lang.String getAlias2()
int getIndex1()
int getIndex2()
public Table getTable1()
public Table getTable2()
public ForeignKey getForeignKey()
public boolean isForeignKeyInversed()
public ClassMapping getRelationTarget()
public int getSubclasses()
Select.public Joins getRelationJoins()
public void setRelation(ClassMapping target, int subs, Joins joins)
#Select.public Join reverse()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean isCorrelated()
public void setCorrelated()
public boolean isNotMyJoin()
public void setIsNotMyJoin()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.