接口 Joinable
-
- 所有已知实现类:
AbstractCollectionPersister,AbstractEntityPersister,BasicCollectionPersister,JoinedSubclassEntityPersister,OneToManyPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface JoinableAnything that can be loaded by outer join - namely persisters for classes or collections.- 作者:
- Gavin King
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 booleanconsumesCollectionAlias()Very, very, very ugly...booleanconsumesEntityAlias()Very, very, very ugly...StringfilterFragment(String alias, Map enabledFilters)Get the where clause filter, given a query alias and considering enabled session filtersStringfilterFragment(String alias, Map enabledFilters, Set<String> treatAsDeclarations)Get the where clause filter, given a query alias and considering enabled session filtersStringfromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)Get the from clause part of any joins (optional operation)StringfromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations)Get the from clause part of any joins (optional operation)default StringfromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations, Set<String> referencedTables)Get the from clause part of any joins (optional operation)String[]getKeyColumnNames()The columns to join onStringgetName()An identifying name; a class name or collection role name.StringgetTableName()The table to join to.booleanisCollection()Is this instance actually a CollectionPersister?StringoneToManyFilterFragment(String alias)StringoneToManyFilterFragment(String alias, Set<String> treatAsDeclarations)StringselectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String currentEntitySuffix, String currentCollectionSuffix, boolean includeCollectionColumns)All columns to select, when loading.StringwhereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)Get the where clause part of any joins (optional operation)StringwhereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations)Get the where clause part of any joins (optional operation)
-
-
-
方法详细资料
-
getName
String getName()
An identifying name; a class name or collection role name.
-
getTableName
String getTableName()
The table to join to.
-
selectFragment
String selectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String currentEntitySuffix, String currentCollectionSuffix, boolean includeCollectionColumns)
All columns to select, when loading.
-
whereJoinFragment
String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Get the where clause part of any joins (optional operation)
-
whereJoinFragment
String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations)
Get the where clause part of any joins (optional operation)
-
fromJoinFragment
String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Get the from clause part of any joins (optional operation)
-
fromJoinFragment
String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations)
Get the from clause part of any joins (optional operation)
-
fromJoinFragment
default String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations, Set<String> referencedTables)
Get the from clause part of any joins (optional operation)
-
getKeyColumnNames
String[] getKeyColumnNames()
The columns to join on
-
filterFragment
String filterFragment(String alias, Map enabledFilters) throws MappingException
Get the where clause filter, given a query alias and considering enabled session filters- 抛出:
MappingException
-
filterFragment
String filterFragment(String alias, Map enabledFilters, Set<String> treatAsDeclarations) throws MappingException
Get the where clause filter, given a query alias and considering enabled session filters- 抛出:
MappingException
-
oneToManyFilterFragment
String oneToManyFilterFragment(String alias) throws MappingException
- 抛出:
MappingException
-
oneToManyFilterFragment
String oneToManyFilterFragment(String alias, Set<String> treatAsDeclarations)
-
isCollection
boolean isCollection()
Is this instance actually a CollectionPersister?
-
consumesEntityAlias
boolean consumesEntityAlias()
Very, very, very ugly...- 返回:
- Does this persister "consume" entity column aliases in the result set?
-
consumesCollectionAlias
boolean consumesCollectionAlias()
Very, very, very ugly...- 返回:
- Does this persister "consume" collection column aliases in the result set?
-
-