Top Description Inners Fields Constructors Methods
org.hibernate.hql.ast.tree

public Class ComponentJoin

extends FromElement
Class Inheritance
Imports
org.hibernate.type.ComponentType, .Type, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.PropertyMapping, .EntityPersister, org.hibernate.QueryException, org.hibernate.util.StringHelper, org.hibernate.hql.NameGenerator

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

Models an explicit join terminating at a component value (e.g. ... from Person p join p.name as n ...)
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
private class

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String
private final ComponentType
Inherited from org.hibernate.hql.ast.tree.FromElement:
DISCRIMINATOR_PROPERTY_NAME

Constructor Summary

AccessConstructor and Description
public
ComponentJoin(FromClause fromClause, FromElement origin, String alias, String componentPath, ComponentType componentType)

Deprecated as a consequence of FromElement being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected PropertyMapping
public String
public String
public ComponentType
public Type
public String
public String
Inherited from org.hibernate.hql.ast.tree.FromElement:
addEmbeddedParameterappendDisplayTextcheckInitializedequalsgetClassAliasgetClassNamegetCollectionSuffixgetCollectionTableAliasgetDestinationsgetEmbeddedParametersgetEntityPersistergetFromClausegetIndexCollectionSelectorParamSpecgetJoinSequencegetOrigingetPropertyMappinggetPropertyTypegetQueryablegetQueryableCollectiongetRealOrigingetSelectTypegetSequencegetTableAliasgetTypeDiscriminatorMetadatagetWithClauseFragmentgetWithClauseJoinAliashandlePropertyBeingDereferencedhasCacheablePersisterhasEmbeddedParametershashCodeinitializeCollectioninitializeComponentJoininitializeEntityinProjectionListisAllPropertyFetchisCollectionJoinisCollectionOfValuesOrComponentsisDereferencedBySubclassPropertyisDereferencedBySuperclassOrSubclassPropertyisDereferencedBySuperclassPropertyisEntityisFetchisFilterisFromOrJoinFragmentisImpliedisImpliedInFromClauseisIncludeSubclassesisManyToManyrenderCollectionSelectFragmentrenderIdentifierSelectrenderPropertySelectrenderScalarIdentifierSelectrenderValueCollectionSelectFragmentsetAllPropertyFetchsetCollectionJoinsetCollectionSuffixsetCollectionTableAliassetColumnssetFetchsetFiltersetImpliedInFromClausesetIncludeSubclassessetIndexCollectionSelectorParamSpecsetInProjectionListsetJoinSequencesetOriginsetQueryableCollectionsetRolesetUseFromFragmentsetUseWhereFragmentsetWithClauseFragmenttoColumnstoColumnsuseFromFragmentuseWhereFragment

Field Detail

columnsback to summary
private final String columns

Hides org.hibernate.hql.ast.tree.FromElement.columns.

componentPathback to summary
private final String componentPath
componentPropertyback to summary
private final String componentProperty
componentTypeback to summary
private final ComponentType componentType

Constructor Detail

ComponentJoinback to summary
public ComponentJoin(FromClause fromClause, FromElement origin, String alias, String componentPath, ComponentType componentType)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

Method Detail

getBasePropertyMappingback to summary
protected PropertyMapping getBasePropertyMapping()
getComponentPathback to summary
public String getComponentPath()
getComponentPropertyback to summary
public String getComponentProperty()
getComponentTypeback to summary
public ComponentType getComponentType()
getDataTypeback to summary
public Type getDataType()

Overrides org.hibernate.hql.ast.tree.FromElement.getDataType.

getDisplayTextback to summary
public String getDisplayText()

Overrides org.hibernate.hql.ast.tree.FromElement.getDisplayText.

Implements org.hibernate.hql.ast.tree.DisplayableNode.getDisplayText.

Doc from org.hibernate.hql.ast.tree.FromElement.getDisplayText.

Returns additional display text for the AST node.

Returns:String

String - The additional display text.

getIdentityColumnback to summary
public String getIdentityColumn()

Overrides org.hibernate.hql.ast.tree.FromElement.getIdentityColumn.

org.hibernate.hql.ast.tree back to summary

public Class ComponentJoin.ComponentFromElementType

extends FromElementType
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final PropertyMapping

Constructor Summary

AccessConstructor and Description
public
ComponentFromElementType(FromElement fromElement)

Deprecated as a consequence of FromElement being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Type
public PropertyMapping
public Type
getPropertyType(String
The last part of the full path to the property.
propertyName
,
String
The full property path.
propertyPath
)

Overrides org.hibernate.hql.ast.tree.FromElementType.getPropertyType.

Returns the type of a property, given it's name (the last part) and the full path.
public QueryableCollection
public String
renderScalarIdentifierSelect(int
the sequence of the returned type
i
)

Overrides org.hibernate.hql.ast.tree.FromElementType.renderScalarIdentifierSelect.

Render the identifier select, but in a 'scalar' context (i.e. generate the column alias).
Inherited from org.hibernate.hql.ast.tree.FromElementType:
getCollectionSuffixgetEntityPersistergetIndexCollectionSelectorParamSpecgetJoinSequencegetQueryablegetSelectTypeisCollectionOfValuesOrComponentsisEntityrenderCollectionSelectFragmentrenderIdentifierSelectrenderPropertySelectrenderValueCollectionSelectFragmentsetCollectionSuffixsetIndexCollectionSelectorParamSpecsetJoinSequencesetQueryableCollectiontoColumnstoColumns

Field Detail

propertyMappingback to summary
private final PropertyMapping propertyMapping

Constructor Detail

ComponentFromElementTypeback to summary
public ComponentFromElementType(FromElement fromElement)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

Method Detail

getDataTypeback to summary
public Type getDataType()

Overrides org.hibernate.hql.ast.tree.FromElementType.getDataType.

getPropertyMappingback to summary
public PropertyMapping getPropertyMapping(String propertyName)

Overrides org.hibernate.hql.ast.tree.FromElementType.getPropertyMapping.

getPropertyTypeback to summary
public Type getPropertyType(String propertyName, String propertyPath)

Overrides org.hibernate.hql.ast.tree.FromElementType.getPropertyType.

Doc from org.hibernate.hql.ast.tree.FromElementType.getPropertyType.

Returns the type of a property, given it's name (the last part) and the full path.

Parameters
propertyName:String

The last part of the full path to the property.

propertyPath:String

The full property path.

Returns:Type

The type.

getQueryableCollectionback to summary
public QueryableCollection getQueryableCollection()

Overrides org.hibernate.hql.ast.tree.FromElementType.getQueryableCollection.

renderScalarIdentifierSelectback to summary
public String renderScalarIdentifierSelect(int i)

Overrides org.hibernate.hql.ast.tree.FromElementType.renderScalarIdentifierSelect.

Doc from org.hibernate.hql.ast.tree.FromElementType.renderScalarIdentifierSelect.

Render the identifier select, but in a 'scalar' context (i.e. generate the column alias).

Parameters
i:int

the sequence of the returned type

Returns:String

the identifier select with the column alias.

org.hibernate.hql.ast.tree back to summary

private final Class ComponentJoin.ComponentPropertyMapping

extends Object
implements PropertyMapping
Class Inheritance
  • java.lang.Object
  • org.hibernate.hql.ast.tree.ComponentJoin.ComponentPropertyMapping
All Implemented Interfaces
org.hibernate.persister.entity.PropertyMapping

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected String
getPropertyPath(String propertyName)

public Type
getType()

Implements org.hibernate.persister.entity.PropertyMapping.getType.

Get the type of the thing containing the properties
public String[]
toColumns(String alias, String propertyName)

Implements org.hibernate.persister.entity.PropertyMapping.toColumns.

Given a query alias and a property path, return the qualified column name
public String[]
toColumns(String propertyName)

Implements org.hibernate.persister.entity.PropertyMapping.toColumns.

Given a property path, return the corresponding column name(s).
public Type
toType(String propertyName)

Implements org.hibernate.persister.entity.PropertyMapping.toType.

Given a component path expression, get the type of the property
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ComponentPropertyMappingback to summary
private ComponentPropertyMapping()

Method Detail

getPropertyPathback to summary
protected String getPropertyPath(String propertyName)
getTypeback to summary
public Type getType()

Implements org.hibernate.persister.entity.PropertyMapping.getType.

Doc from org.hibernate.persister.entity.PropertyMapping.getType.

Get the type of the thing containing the properties

toColumnsback to summary
public String[] toColumns(String alias, String propertyName) throws QueryException

Implements org.hibernate.persister.entity.PropertyMapping.toColumns.

Doc from org.hibernate.persister.entity.PropertyMapping.toColumns.

Given a query alias and a property path, return the qualified column name

toColumnsback to summary
public String[] toColumns(String propertyName) throws QueryException, UnsupportedOperationException

Implements org.hibernate.persister.entity.PropertyMapping.toColumns.

Doc from org.hibernate.persister.entity.PropertyMapping.toColumns.

Given a property path, return the corresponding column name(s).

toTypeback to summary
public Type toType(String propertyName) throws QueryException

Implements org.hibernate.persister.entity.PropertyMapping.toType.

Doc from org.hibernate.persister.entity.PropertyMapping.toType.

Given a component path expression, get the type of the property