org.hibernate.persister.entity
Interface PropertyMapping

All Known Subinterfaces:
Queryable, QueryableCollection, SQLLoadableCollection
All Known Implementing Classes:
AbstractCollectionPersister, AbstractEntityPersister, AbstractPropertyMapping, BasicCollectionPersister, BasicEntityPropertyMapping, CollectionPropertyMapping, CompositeElementPropertyMapping, ElementPropertyMapping, JoinedSubclassEntityPersister, OneToManyPersister, SingleTableEntityPersister, UnionSubclassEntityPersister

public interface PropertyMapping

Abstraction of all mappings that define properties: entities, collection elements.

Author:
Gavin King

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
 

Method Detail

toType

Type toType(java.lang.String propertyName)
            throws QueryException
Given a component path expression, get the type of the property

Throws:
QueryException

toColumns

java.lang.String[] toColumns(java.lang.String alias,
                             java.lang.String propertyName)
                             throws QueryException
Given a query alias and a property path, return the qualified column name

Throws:
QueryException

toColumns

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

Throws:
QueryException
java.lang.UnsupportedOperationException

getType

Type getType()
Get the type of the thing containing the properties



Copyright © 2008 Hibernate.org. All Rights Reserved.