|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.sql.Join
public class Join
Represents a SQL join.
Field Summary | |
---|---|
static int |
TYPE_CROSS
|
static int |
TYPE_INNER
|
static int |
TYPE_OUTER
|
Fields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes |
---|
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL |
Constructor Summary | |
---|---|
Join(Table table1,
int alias1,
Table table2,
int alias2,
ForeignKey fk,
boolean inverse)
Constructor for inner and outer joins. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object other)
|
String |
getAlias1()
|
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)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_INNER
public static final int TYPE_OUTER
public static final int TYPE_CROSS
Constructor Detail |
---|
Join(Table table1, int alias1, Table table2, int alias2, ForeignKey fk, boolean inverse)
Method Detail |
---|
public int getType()
public void setType(int type)
public String getAlias1()
public 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 Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
public Object clone()
clone
in class Object
public boolean isCorrelated()
public void setCorrelated()
public boolean isNotMyJoin()
public void setIsNotMyJoin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |