org.hibernate.persister.collection

Class ElementPropertyMapping

Implemented Interfaces:
PropertyMapping

public class ElementPropertyMapping
extends java.lang.Object
implements PropertyMapping

Author:
Gavin King

Constructor Summary

ElementPropertyMapping(String[] elementColumns, Type type)

Method Summary

Type
getType()
Get the type of the thing containing the properties
String[]
toColumns(String propertyName)
Given a property path, return the corresponding column name(s).
String[]
toColumns(String alias, String propertyName)
Given a query alias and a property path, return the qualified column name
Type
toType(String propertyName)
Given a component path expression, get the type of the property

Constructor Details

ElementPropertyMapping

public ElementPropertyMapping(String[] elementColumns,
                              Type type)
            throws MappingException

Method Details

getType

public Type getType()
Get the type of the thing containing the properties
Specified by:
getType in interface PropertyMapping

toColumns

public String[] toColumns(String propertyName)
            throws QueryException,
                   UnsupportedOperationException
Given a property path, return the corresponding column name(s).
Specified by:
toColumns in interface PropertyMapping

toColumns

public String[] toColumns(String alias,
                          String propertyName)
            throws QueryException
Given a query alias and a property path, return the qualified column name
Specified by:
toColumns in interface PropertyMapping

toType

public Type toType(String propertyName)
            throws QueryException
Given a component path expression, get the type of the property
Specified by:
toType in interface PropertyMapping