Class FilterSourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.FilterSourceImpl
-
- All Implemented Interfaces:
FilterSource
public class FilterSourceImpl extends AbstractHbmSourceNode implements FilterSource
-
-
Constructor Summary
Constructors Constructor Description FilterSourceImpl(MappingDocument mappingDocument, JaxbHbmFilterType filterElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAliasToEntityMap()
Get the map of explicit alias to entity name mappings.Map<String,String>
getAliasToTableMap()
Get the map of explicit alias to table name mappings.String
getCondition()
Get the condition associated with the filter.String
getName()
Get the name of the filter being described.boolean
shouldAutoInjectAliases()
Should Hibernate perform automatic alias injection into the supplied condition string? The default is to perform auto injection *unless* explicit alias(es) are supplied.-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
-
-
-
Constructor Detail
-
FilterSourceImpl
public FilterSourceImpl(MappingDocument mappingDocument, JaxbHbmFilterType filterElement)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:FilterSource
Get the name of the filter being described.- Specified by:
getName
in interfaceFilterSource
- Returns:
- The name.
-
getCondition
public String getCondition()
Description copied from interface:FilterSource
Get the condition associated with the filter. Can benull
in the case of a filter described further by a "filter def" which contains the condition text.- Specified by:
getCondition
in interfaceFilterSource
- Returns:
- The condition defined on the filter.
- See Also:
getCondition()
-
shouldAutoInjectAliases
public boolean shouldAutoInjectAliases()
Description copied from interface:FilterSource
Should Hibernate perform automatic alias injection into the supplied condition string? The default is to perform auto injection *unless* explicit alias(es) are supplied.- Specified by:
shouldAutoInjectAliases
in interfaceFilterSource
- Returns:
true
indicates auto injection should occur;false
that it should not
-
getAliasToTableMap
public Map<String,String> getAliasToTableMap()
Description copied from interface:FilterSource
Get the map of explicit alias to table name mappings.- Specified by:
getAliasToTableMap
in interfaceFilterSource
- Returns:
- The alias to table map
-
getAliasToEntityMap
public Map<String,String> getAliasToEntityMap()
Description copied from interface:FilterSource
Get the map of explicit alias to entity name mappings.- Specified by:
getAliasToEntityMap
in interfaceFilterSource
- Returns:
- The alias to entity map
-
-