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 Deprecated Methods Modifier and Type Method Description protected voidaddPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates)Deprecated.protected voidaddPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping 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, Mapping factory)protected voidinitIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)protected voidinitIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Mapping factory)protected voidinitPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)protected QueryExceptionpropertyException(String propertyName)String[]toColumns(String propertyName)Given a property path, return the corresponding column name(s).String[]toColumns(String alias, String propertyName)Obtain aliased column/formula fragments for the specified property path.TypetoType(String propertyName)Given a component path expression, get the type of the property-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.persister.entity.PropertyMapping
getType
-
-
-
-
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 alias, String propertyName) throws QueryException
Description copied from interface:PropertyMappingObtain aliased column/formula fragments for the specified property path.- Specified by:
toColumnsin interfacePropertyMapping- 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
@Deprecated protected void addPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates)
Deprecated.Only kept around for compatibility reasons since this seems to be API.
-
addPropertyPath
protected void addPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)
-
initPropertyPaths
protected void initPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
- Throws:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Mapping factory) throws MappingException
- Throws:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
- Throws:
MappingException
-
initComponentPropertyPaths
protected void initComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
- Throws:
MappingException
-
-