org.hibernate.persister.entity

Class AbstractPropertyMapping

Implemented Interfaces:
PropertyMapping
Known Direct Subclasses:
BasicEntityPropertyMapping, CompositeElementPropertyMapping

public abstract class AbstractPropertyMapping
extends java.lang.Object
implements PropertyMapping

Base implementation of a PropertyMapping
Author:
Gavin King

Method Summary

protected void
addPropertyPath(String path, Type type, String[] columns, String[] formulaTemplates)
String[]
getColumnNames(String propertyName)
protected abstract String
getEntityName()
String[]
getIdentifierColumnNames()
protected void
initComponentPropertyPaths(String path, AbstractComponentType type, String[] columns, String[] formulaTemplates, Mapping factory)
protected void
initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, Mapping factory)
protected void
initPropertyPaths(String path, Type type, String[] columns, String[] formulaTemplates, Mapping factory)
protected QueryException
propertyException(String propertyName)
String[]
toColumns(String propertyName)
String[]
toColumns(String alias, String propertyName)
Type
toType(String propertyName)

Method Details

addPropertyPath

protected void addPropertyPath(String path,
                               Type type,
                               String[] columns,
                               String[] formulaTemplates)

getColumnNames

public String[] getColumnNames(String propertyName)

getEntityName

protected abstract String getEntityName()

getIdentifierColumnNames

public String[] getIdentifierColumnNames()

initComponentPropertyPaths

protected void initComponentPropertyPaths(String path,
                                          AbstractComponentType type,
                                          String[] columns,
                                          String[] formulaTemplates,
                                          Mapping factory)
            throws MappingException

initIdentifierPropertyPaths

protected void initIdentifierPropertyPaths(String path,
                                           EntityType etype,
                                           String[] columns,
                                           Mapping factory)
            throws MappingException

initPropertyPaths

protected void initPropertyPaths(String path,
                                 Type type,
                                 String[] columns,
                                 String[] formulaTemplates,
                                 Mapping factory)
            throws MappingException

propertyException

protected final QueryException propertyException(String propertyName)
            throws QueryException

toColumns

public String[] toColumns(String propertyName)
            throws QueryException
Specified by:
toColumns in interface PropertyMapping

toColumns

public String[] toColumns(String alias,
                          String propertyName)
            throws QueryException
Specified by:
toColumns in interface PropertyMapping

toType

public Type toType(String propertyName)
            throws QueryException
Specified by:
toType in interface PropertyMapping