类 Sybase11JoinFragment
- java.lang.Object
-
- org.hibernate.sql.JoinFragment
-
- org.hibernate.sql.Sybase11JoinFragment
-
public class Sybase11JoinFragment extends JoinFragment
An old Sybase-style join (before Sybase supported the ANSI style "inner join" etc syntax) This is needed for Sybase 11.9.2 and earlier, using the HQL 2.* syntax with Collections.- 作者:
- Colm O' Flaherty
-
-
字段概要
-
从类继承的字段 org.hibernate.sql.JoinFragment
FULL_JOIN, INNER_JOIN, LEFT_OUTER_JOIN, RIGHT_OUTER_JOIN
-
-
构造器概要
构造器 构造器 说明 Sybase11JoinFragment()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanaddCondition(String condition)Adds a free-form condition fragmentvoidaddCondition(String alias, String[] columns, String condition)voidaddCondition(String alias, String[] fkColumns, String[] pkColumns)Adds a condition to the join fragment.voidaddCrossJoin(String tableName, String alias)Adds a cross join to the specified table.voidaddFromFragmentString(String fromFragmentString)voidaddJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType)voidaddJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType, String on)Adds a join, with an additional ON clause fragmentvoidaddJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType)Adds a join.voidaddJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType, String on)Adds a join, with an additional ON clause fragmentvoidaddJoins(String fromFragment, String whereFragment)Free-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragmentsJoinFragmentcopy()Make a copy.StringtoFromFragmentString()Render this fragment to its FROM clause portionStringtoWhereFragmentString()Render this fragment to its WHERE clause portion-
从类继承的方法 org.hibernate.sql.JoinFragment
addCondition, addFragment, hasFilterCondition, hasThetaJoins, setHasFilterCondition, setHasThetaJoins
-
-
-
-
方法详细资料
-
addJoin
public void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType)
从类复制的说明:JoinFragmentAdds a join.- 指定者:
addJoin在类中JoinFragment- 参数:
tableName- The name of the table to be joinedalias- The alias to apply to the joined tablefkColumns- The names of the columns which reference the joined tablepkColumns- The columns in the joined table being referencedjoinType- The type of join
-
addJoin
public void addJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType)
-
toFromFragmentString
public String toFromFragmentString()
从类复制的说明:JoinFragmentRender this fragment to its FROM clause portion- 指定者:
toFromFragmentString在类中JoinFragment- 返回:
- The FROM clause portion of this fragment
-
toWhereFragmentString
public String toWhereFragmentString()
从类复制的说明:JoinFragmentRender this fragment to its WHERE clause portion- 指定者:
toWhereFragmentString在类中JoinFragment- 返回:
- The WHERE clause portion of this fragment
-
addJoins
public void addJoins(String fromFragment, String whereFragment)
从类复制的说明:JoinFragmentFree-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragments- 指定者:
addJoins在类中JoinFragment- 参数:
fromFragment- The FROM clause fragmentwhereFragment- The WHERE clause fragment
-
copy
public JoinFragment copy()
从类复制的说明:JoinFragmentMake a copy.- 指定者:
copy在类中JoinFragment- 返回:
- The copy.
-
addCrossJoin
public void addCrossJoin(String tableName, String alias)
从类复制的说明:JoinFragmentAdds a cross join to the specified table.- 指定者:
addCrossJoin在类中JoinFragment- 参数:
tableName- The name of the table to be joinedalias- The alias to apply to the joined table
-
addCondition
public void addCondition(String alias, String[] fkColumns, String[] pkColumns)
从类复制的说明:JoinFragmentAdds a condition to the join fragment.- 指定者:
addCondition在类中JoinFragment- 参数:
alias- The alias of the joined tablefkColumns- The names of the columns which reference the joined tablepkColumns- The columns in the joined table being referenced
-
addCondition
public boolean addCondition(String condition)
从类复制的说明:JoinFragmentAdds a free-form condition fragment- 指定者:
addCondition在类中JoinFragment- 参数:
condition- The fragment- 返回:
trueif the condition was added
-
addFromFragmentString
public void addFromFragmentString(String fromFragmentString)
-
addJoin
public void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType, String on)
从类复制的说明:JoinFragmentAdds a join, with an additional ON clause fragment- 指定者:
addJoin在类中JoinFragment- 参数:
tableName- The name of the table to be joinedalias- The alias to apply to the joined tablefkColumns- The names of the columns which reference the joined tablepkColumns- The columns in the joined table being referencedjoinType- The type of joinon- The additional ON fragment
-
addJoin
public void addJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType, String on)
从类复制的说明:JoinFragmentAdds a join, with an additional ON clause fragment- 覆盖:
addJoin在类中JoinFragment- 参数:
tableName- The name of the table to be joinedalias- The alias to apply to the joined tablefkColumns- The names of the columns which reference the joined tablepkColumns- The columns in the joined table being referencedjoinType- The type of joinon- The additional ON fragment
-
-