Package 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
Contract for all things that know how to map a property to the needed bits of SQL. The column/formula fragments that represent a property in the table defining the property be obtained by calling eithertoColumns(String, String)
ortoColumns(String)
to obtain SQL-aliased column/formula fragments aliased or un-aliased, respectively. Note, the methods here are generally ascribed to accept "property paths". That is a historical necessity because of how Hibernate originally understood composites (embeddables) internally. That is in the process of changing as Hibernate has addedCompositePropertyMapping
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Type
getType()
Get the type of the thing containing the propertiesjava.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.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
Obtain aliased column/formula fragments for the specified property path.- 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
-
-