|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.sql.JoinFragment
public abstract class JoinFragment
An abstract SQL join fragment renderer
Field Summary | |
---|---|
static int |
FULL_JOIN
Deprecated. use JoinType.FULL_JOIN instead. |
static int |
INNER_JOIN
Deprecated. use JoinType.INNER_JOIN instead. |
static int |
LEFT_OUTER_JOIN
Deprecated. use JoinType.LEFT_OUTER_JOIN instead. |
static int |
RIGHT_OUTER_JOIN
Deprecated. use JoinType.RIGHT_OUTER_JOIN instead. |
Constructor Summary | |
---|---|
JoinFragment()
|
Method Summary | |
---|---|
abstract boolean |
addCondition(String condition)
|
protected boolean |
addCondition(StringBuilder buffer,
String on)
Appends the 'on' condition to the buffer, returning true if the condition was added. |
abstract void |
addCondition(String alias,
String[] fkColumns,
String[] pkColumns)
|
abstract void |
addCrossJoin(String tableName,
String alias)
|
void |
addFragment(JoinFragment ojf)
|
abstract void |
addJoin(String tableName,
String alias,
String[] fkColumns,
String[] pkColumns,
JoinType joinType)
|
abstract void |
addJoin(String tableName,
String alias,
String[] fkColumns,
String[] pkColumns,
JoinType joinType,
String on)
|
abstract void |
addJoins(String fromFragment,
String whereFragment)
|
abstract JoinFragment |
copy()
|
boolean |
hasFilterCondition()
True if the where fragment is from a filter condition. |
boolean |
hasThetaJoins()
|
void |
setHasFilterCondition(boolean b)
|
void |
setHasThetaJoins(boolean hasThetaJoins)
|
abstract String |
toFromFragmentString()
|
abstract String |
toWhereFragmentString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final int INNER_JOIN
JoinType.INNER_JOIN
instead.@Deprecated public static final int FULL_JOIN
JoinType.FULL_JOIN
instead.@Deprecated public static final int LEFT_OUTER_JOIN
JoinType.LEFT_OUTER_JOIN
instead.@Deprecated public static final int RIGHT_OUTER_JOIN
JoinType.RIGHT_OUTER_JOIN
instead.Constructor Detail |
---|
public JoinFragment()
Method Detail |
---|
public abstract void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType)
public abstract void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType, String on)
public abstract void addCrossJoin(String tableName, String alias)
public abstract void addJoins(String fromFragment, String whereFragment)
public abstract String toFromFragmentString()
public abstract String toWhereFragmentString()
public abstract void addCondition(String alias, String[] fkColumns, String[] pkColumns)
public abstract boolean addCondition(String condition)
public abstract JoinFragment copy()
public void addFragment(JoinFragment ojf)
protected boolean addCondition(StringBuilder buffer, String on)
buffer
- The buffer to append the 'on' condition to.on
- The 'on' condition.
public boolean hasFilterCondition()
public void setHasFilterCondition(boolean b)
public boolean hasThetaJoins()
public void setHasThetaJoins(boolean hasThetaJoins)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |