TODO : Consider moving this into the attribute/association walking SPI (org.hibernate.persister.walking) and having the notion of PropertyMapping built and exposed there
There is duplication here too wrt org..
like above, consider moving to a singly-defined CompositePropertyMapping in the attribute/association walking SPI
| Modifier and Type | Field and Description |
|---|---|
| private final CompositeType | |
| private final PropertyMapping | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | CompositePropertyMapping(CompositeType
The composite being described by this PropertyMapping compositeType, PropertyMapping The PropertyMapping of our parent (composites have to have a parent/owner) parentPropertyMapping, String The name of this composite within the parentPropertyMapping parentPropertyName)Builds a CompositePropertyMapping |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkIncomingPropertyName(String
The incoming propertyName argument to validate propertyName)Used to check the validity of the propertyName argument passed into |
| public CompositeType | getType()
Implements org. |
| protected String | Returns: The relative pathThe incoming property name to "path append". propertyName)Builds the relative path. |
| public String[] | toColumns(String alias, String propertyName)
Implements org. |
| public String[] | toColumns(String propertyName)
Implements org. |
| protected String | Returns: The relative path.The incoming propertyName. propertyName)Used to build a property path relative to |
| public Type | toType(String propertyName)
Implements org. |
| compositeType | back to summary |
|---|---|
| private final CompositeType compositeType | |
| parentPropertyMapping | back to summary |
|---|---|
| private final PropertyMapping parentPropertyMapping | |
| parentPropertyName | back to summary |
|---|---|
| private final String parentPropertyName | |
| CompositePropertyMapping | back to summary |
|---|---|
| public CompositePropertyMapping(CompositeType compositeType, PropertyMapping parentPropertyMapping, String parentPropertyName) Builds a CompositePropertyMapping
| |
| checkIncomingPropertyName | back to summary |
|---|---|
| protected void checkIncomingPropertyName(String propertyName) Used to check the validity of the propertyName argument passed into
| |
| getType | back to summary |
|---|---|
| public CompositeType getType() Implements org. Doc from org. Get the type of the thing containing the properties
| |
| resolveParentPropertyPath | back to summary |
|---|---|
| protected String resolveParentPropertyPath(String propertyName) Builds the relative path. Used to delegate
Called from Override this to adjust how the relative property path is built for this mapping. | |
| toColumns | back to summary |
|---|---|
| public String[] toColumns(String alias, String propertyName) throws QueryException Implements org. Doc from org. Obtain aliased column/formula fragments for the specified property path.
| |
| toColumns | back to summary |
|---|---|
| public String[] toColumns(String propertyName) throws QueryException, UnsupportedOperationException Implements org. Doc from org. Given a property path, return the corresponding column name(s).
| |
| toParentPropertyPath | back to summary |
|---|---|
| protected String toParentPropertyPath(String propertyName) Used to build a property path relative to | |
| toType | back to summary |
|---|---|
| public Type toType(String propertyName) throws QueryException Implements org. Doc from org. Given a component path expression, get the type of the property
| |