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

Joinable (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.persister.entity
Interface Joinable

All Known Subinterfaces:
OuterJoinLoadable, Queryable, QueryableCollection, SQLLoadableCollection
All Known Implementing Classes:
AbstractCollectionPersister, AbstractEntityPersister

public interface Joinable

Anything that can be loaded by outer join - namely persisters for classes or collections.

Author:
Gavin King

Method Summary
 boolean consumesCollectionAlias()
          Very, very, very ugly...
 boolean consumesEntityAlias()
          Very, very, very ugly...
 String filterFragment(String alias, Map enabledFilters)
          Get the where clause filter, given a query alias and considering enabled session filters
 String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
          Get the from clause part of any joins (optional operation)
 String[] getKeyColumnNames()
          The columns to join on
 String getName()
          An identifying name; a class name or collection role name.
 String getTableName()
          The table to join to.
 boolean isCollection()
          Is this instance actually a CollectionPersister?
 String oneToManyFilterFragment(String alias)
           
 String selectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String currentEntitySuffix, String currentCollectionSuffix, boolean includeCollectionColumns)
          All columns to select, when loading.
 String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
          Get the where clause part of any joins (optional operation)
 

Method Detail

getName

public String getName()
An identifying name; a class name or collection role name.


getTableName

public String getTableName()
The table to join to.


selectFragment

public String selectFragment(Joinable rhs,
                             String rhsAlias,
                             String lhsAlias,
                             String currentEntitySuffix,
                             String currentCollectionSuffix,
                             boolean includeCollectionColumns)
All columns to select, when loading.


whereJoinFragment

public String whereJoinFragment(String alias,
                                boolean innerJoin,
                                boolean includeSubclasses)
Get the where clause part of any joins (optional operation)


fromJoinFragment

public String fromJoinFragment(String alias,
                               boolean innerJoin,
                               boolean includeSubclasses)
Get the from clause part of any joins (optional operation)


getKeyColumnNames

public String[] getKeyColumnNames()
The columns to join on


filterFragment

public String filterFragment(String alias,
                             Map enabledFilters)
                      throws MappingException
Get the where clause filter, given a query alias and considering enabled session filters

Throws:
MappingException

oneToManyFilterFragment

public String oneToManyFilterFragment(String alias)
                               throws MappingException
Throws:
MappingException

isCollection

public boolean isCollection()
Is this instance actually a CollectionPersister?


consumesEntityAlias

public boolean consumesEntityAlias()
Very, very, very ugly...

Returns:
Does this persister "consume" entity column aliases in the result set?

consumesCollectionAlias

public boolean consumesCollectionAlias()
Very, very, very ugly...

Returns:
Does this persister "consume" collection column aliases in the result set?