站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

JoinFragment (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.sql
Class JoinFragment

java.lang.Object
  extended bynet.sf.hibernate.sql.JoinFragment
Direct Known Subclasses:
ANSIJoinFragment, OracleJoinFragment, QueryJoinFragment, Sybase11_9_2JoinFragment

public abstract class JoinFragment
extends Object

An abstract SQL join fragment renderer

Author:
Gavin King

Field Summary
static int FULL_JOIN
           
static int INNER_JOIN
           
static int LEFT_OUTER_JOIN
           
static int RIGHT_OUTER_JOIN
           
 
Constructor Summary
JoinFragment()
           
 
Method Summary
abstract  void addCondition(String condition)
           
abstract  void addCondition(String alias, String[] columns, String condition)
           
abstract  void addCondition(String alias, String[] fkColumns, String[] pkColumns)
           
abstract  void addCrossJoin(String tableName, String alias)
           
 void addFragment(JoinFragment ojf)
           
abstract  void addFromFragmentString(String fromFragmentString)
           
abstract  void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, int joinType)
           
abstract  void addJoins(String fromFragment, String whereFragment)
           
abstract  JoinFragment copy()
           
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

INNER_JOIN

public static final int INNER_JOIN
See Also:
Constant Field Values

FULL_JOIN

public static final int FULL_JOIN
See Also:
Constant Field Values

LEFT_OUTER_JOIN

public static final int LEFT_OUTER_JOIN
See Also:
Constant Field Values

RIGHT_OUTER_JOIN

public static final int RIGHT_OUTER_JOIN
See Also:
Constant Field Values
Constructor Detail

JoinFragment

public JoinFragment()
Method Detail

addJoin

public abstract void addJoin(String tableName,
                             String alias,
                             String[] fkColumns,
                             String[] pkColumns,
                             int joinType)

addCrossJoin

public abstract void addCrossJoin(String tableName,
                                  String alias)

addJoins

public abstract void addJoins(String fromFragment,
                              String whereFragment)

toFromFragmentString

public abstract String toFromFragmentString()

toWhereFragmentString

public abstract String toWhereFragmentString()

addCondition

public abstract void addCondition(String alias,
                                  String[] columns,
                                  String condition)

addCondition

public abstract void addCondition(String alias,
                                  String[] fkColumns,
                                  String[] pkColumns)

addCondition

public abstract void addCondition(String condition)

addFromFragmentString

public abstract void addFromFragmentString(String fromFragmentString)

copy

public abstract JoinFragment copy()

addFragment

public void addFragment(JoinFragment ojf)