public interface PropertyMapping
Contract for all things that know how to map a property to the needed bits of SQL.
<p/>
The column/formula fragments that represent a property in the table defining the property be obtained by
calling either toColumns(String, String)
or toColumns(String)
to obtain SQL-aliased
column/formula fragments aliased or un-aliased, respectively.
<p/>
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 added CompositePropertyMapping
Modifier and Type | Method and Description |
---|---|
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)
Obtain aliased column/formula fragments for the specified property path.
|
Type |
toType(String propertyName)
Given a component path expression, get the type of the property
|
Type toType(String propertyName) throws QueryException
Given a component path expression, get the type of the property
QueryException
String[] toColumns(String alias, String propertyName) throws QueryException
Obtain aliased column/formula fragments for the specified property path.
QueryException
String[] toColumns(String propertyName) throws QueryException, UnsupportedOperationException
Given a property path, return the corresponding column name(s).
Type getType()
Get the type of the thing containing the properties
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.