Package org.hibernate.persister.entity
Class AbstractPropertyMapping
- java.lang.Object
-
- org.hibernate.persister.entity.AbstractPropertyMapping
-
- All Implemented Interfaces:
PropertyMapping
- Direct Known Subclasses:
BasicEntityPropertyMapping,CompositeElementPropertyMapping
public abstract class AbstractPropertyMapping extends Object implements PropertyMapping
Basic implementation of thePropertyMappingcontract.
-
-
Constructor Summary
Constructors Constructor Description AbstractPropertyMapping()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory)String[]getColumnNames(String propertyName)protected abstract StringgetEntityName()String[]getIdentifierColumnNames()String[]getIdentifierColumnReaders()String[]getIdentifierColumnReaderTemplates()protected voidinitComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory)protected voidinitIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory)protected voidinitIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Metadata factory)protected voidinitPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory)protected QueryExceptionpropertyException(String propertyName)String[]toColumns(String propertyName)Given a property path, return the corresponding column name(s).TypetoType(String propertyName)Given a component path expression, get the type of the property
-
-
-
Method Detail
-
getIdentifierColumnNames
public String[] getIdentifierColumnNames()
-
getIdentifierColumnReaderTemplates
public String[] getIdentifierColumnReaderTemplates()
-
getIdentifierColumnReaders
public String[] getIdentifierColumnReaders()
-
getEntityName
protected abstract String getEntityName()
-
toType
public Type toType(String propertyName) throws QueryException
Description copied from interface:PropertyMappingGiven a component path expression, get the type of the property- Specified by:
toTypein interfacePropertyMapping- Throws:
QueryException
-
propertyException
protected final QueryException propertyException(String propertyName) throws QueryException
- Throws:
QueryException
-
toColumns
public String[] toColumns(String propertyName) throws QueryException
Description copied from interface:PropertyMappingGiven a property path, return the corresponding column name(s).- Specified by:
toColumnsin interfacePropertyMapping- Throws:
QueryException
-
addPropertyPath
protected void addPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory)
-
initPropertyPaths
protected void initPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory) throws MappingException
- Throws:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Metadata factory) throws MappingException
- Throws:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory) throws MappingException
- Throws:
MappingException
-
initComponentPropertyPaths
protected void initComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Metadata factory) throws MappingException
- Throws:
MappingException
-
-