public class CompositePropertyMapping extends java.lang.Object implements PropertyMapping
ComponentJoin.ComponentPropertyMapping.
like above, consider moving to a singly-defined CompositePropertyMapping in the attribute/association walking SPI| Constructor and Description |
|---|
CompositePropertyMapping(CompositeType compositeType,
PropertyMapping parentPropertyMapping,
java.lang.String parentPropertyName)
Builds a CompositePropertyMapping
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIncomingPropertyName(java.lang.String propertyName)
Used to check the validity of the propertyName argument passed into
toType(String),
toColumns(String, String) and toColumns(String). |
CompositeType |
getType()
Get the type of the thing containing the properties
|
protected java.lang.String |
resolveParentPropertyPath(java.lang.String propertyName)
Builds the relative path.
|
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)
Obtain aliased column/formula fragments for the specified property path.
|
protected java.lang.String |
toParentPropertyPath(java.lang.String propertyName)
Used to build a property path relative to
parentPropertyMapping. |
Type |
toType(java.lang.String propertyName)
Given a component path expression, get the type of the property
|
public CompositePropertyMapping(CompositeType compositeType, PropertyMapping parentPropertyMapping, java.lang.String parentPropertyName)
compositeType - The composite being described by this PropertyMappingparentPropertyMapping - The PropertyMapping of our parent (composites have to have a parent/owner)parentPropertyName - The name of this composite within the parentPropertyMappingpublic Type toType(java.lang.String propertyName) throws QueryException
PropertyMappingtoType in interface PropertyMappingQueryExceptionprotected java.lang.String toParentPropertyPath(java.lang.String propertyName)
parentPropertyMapping. First, the incoming
propertyName argument is validated (using checkIncomingPropertyName(java.lang.String)). Then the
relative path is built (using resolveParentPropertyPath(java.lang.String)).propertyName - The incoming propertyName.protected void checkIncomingPropertyName(java.lang.String propertyName)
toType(String),
toColumns(String, String) and toColumns(String).propertyName - The incoming propertyName argument to validateprotected java.lang.String resolveParentPropertyPath(java.lang.String propertyName)
toType(String),
toColumns(String, String) and toColumns(String) calls out to parentPropertyMapping.
Called from toParentPropertyPath(java.lang.String).
Override this to adjust how the relative property path is built for this mapping.propertyName - The incoming property name to "path append".public java.lang.String[] toColumns(java.lang.String alias,
java.lang.String propertyName)
throws QueryException
PropertyMappingtoColumns in interface PropertyMappingQueryExceptionpublic java.lang.String[] toColumns(java.lang.String propertyName)
throws QueryException,
java.lang.UnsupportedOperationException
PropertyMappingtoColumns in interface PropertyMappingQueryExceptionjava.lang.UnsupportedOperationExceptionpublic CompositeType getType()
PropertyMappinggetType in interface PropertyMappingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.