org.hibernate.persister.collection
Class ElementPropertyMapping

java.lang.Object
  extended by org.hibernate.persister.collection.ElementPropertyMapping
All Implemented Interfaces:
PropertyMapping

public class ElementPropertyMapping
extends java.lang.Object
implements PropertyMapping

Author:
Gavin King

Constructor Summary
ElementPropertyMapping(java.lang.String[] elementColumns, Type type)
           
 
Method Summary
 Type getType()
          Get the type of the thing containing the properties
 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)
          Given a query alias and a property path, return the qualified column name
 Type toType(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
 

Constructor Detail

ElementPropertyMapping

public ElementPropertyMapping(java.lang.String[] elementColumns,
                              Type type)
                       throws MappingException
Throws:
MappingException
Method Detail

toType

public Type toType(java.lang.String propertyName)
            throws QueryException
Description copied from interface: PropertyMapping
Given a component path expression, get the type of the property

Specified by:
toType in interface PropertyMapping
Throws:
QueryException

toColumns

public java.lang.String[] toColumns(java.lang.String alias,
                                    java.lang.String propertyName)
                             throws QueryException
Description copied from interface: PropertyMapping
Given a query alias and a property path, return the qualified column name

Specified by:
toColumns in interface PropertyMapping
Throws:
QueryException

toColumns

public java.lang.String[] toColumns(java.lang.String propertyName)
                             throws QueryException,
                                    java.lang.UnsupportedOperationException
Given a property path, return the corresponding column name(s).

Specified by:
toColumns in interface PropertyMapping
Throws:
QueryException
java.lang.UnsupportedOperationException

getType

public Type getType()
Description copied from interface: PropertyMapping
Get the type of the thing containing the properties

Specified by:
getType in interface PropertyMapping


Copyright © 2008 Hibernate.org. All Rights Reserved.