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 java.lang.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(java.lang.String path, Type type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates)Deprecated.protected voidaddPropertyPath(java.lang.String path, Type type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory)java.lang.String[]getColumnNames(java.lang.String propertyName)protected abstract java.lang.StringgetEntityName()java.lang.String[]getIdentifierColumnNames()java.lang.String[]getIdentifierColumnReaders()java.lang.String[]getIdentifierColumnReaderTemplates()protected voidinitComponentPropertyPaths(java.lang.String path, CompositeType type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory)protected voidinitIdentifierPropertyPaths(java.lang.String path, EntityType etype, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory)protected voidinitIdentifierPropertyPaths(java.lang.String path, EntityType etype, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, Mapping factory)protected voidinitPropertyPaths(java.lang.String path, Type type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory)protected QueryExceptionpropertyException(java.lang.String propertyName)java.lang.String[]toColumns(java.lang.String propertyName)Given a property path, return the corresponding column name(s).java.lang.String[]toColumns(java.lang.String alias, java.lang.String propertyName)Obtain aliased column/formula fragments for the specified property path.TypetoType(java.lang.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 java.lang.String[] getIdentifierColumnNames()
-
getIdentifierColumnReaderTemplates
public java.lang.String[] getIdentifierColumnReaderTemplates()
-
getIdentifierColumnReaders
public java.lang.String[] getIdentifierColumnReaders()
-
getEntityName
protected abstract java.lang.String getEntityName()
-
toType
public Type toType(java.lang.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(java.lang.String propertyName) throws QueryException
- Throws:
QueryException
-
getColumnNames
public java.lang.String[] getColumnNames(java.lang.String propertyName)
-
toColumns
public java.lang.String[] toColumns(java.lang.String alias, java.lang.String propertyName) throws QueryExceptionDescription copied from interface:PropertyMappingObtain aliased column/formula fragments for the specified property path.- Specified by:
toColumnsin interfacePropertyMapping- Throws:
QueryException
-
toColumns
public java.lang.String[] toColumns(java.lang.String propertyName) throws QueryExceptionDescription copied from interface:PropertyMappingGiven a property path, return the corresponding column name(s).- Specified by:
toColumnsin interfacePropertyMapping- Throws:
QueryException
-
addPropertyPath
@Deprecated protected void addPropertyPath(java.lang.String path, Type type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates)Deprecated.Only kept around for compatibility reasons since this seems to be API.
-
addPropertyPath
protected void addPropertyPath(java.lang.String path, Type type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory)
-
initPropertyPaths
protected void initPropertyPaths(java.lang.String path, Type type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory) throws MappingException- Throws:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(java.lang.String path, EntityType etype, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, Mapping factory) throws MappingException- Throws:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(java.lang.String path, EntityType etype, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory) throws MappingException- Throws:
MappingException
-
initComponentPropertyPaths
protected void initComponentPropertyPaths(java.lang.String path, CompositeType type, java.lang.String[] columns, java.lang.String[] columnReaders, java.lang.String[] columnReaderTemplates, java.lang.String[] formulaTemplates, Mapping factory) throws MappingException- Throws:
MappingException
-
-