public class CollectionQuerySpaceImpl extends AbstractQuerySpace implements ExpandingCollectionQuerySpace
QuerySpace.Disposition
Constructor and Description |
---|
CollectionQuerySpaceImpl(CollectionPersister persister,
java.lang.String uid,
ExpandingQuerySpaces querySpaces,
boolean canJoinsBeRequired) |
Modifier and Type | Method and Description |
---|---|
void |
addJoin(Join join)
Adds a join with another query space for either a collection element or index.
|
void |
addJoin(JoinDefinedByMetadata join) |
CollectionPersister |
getCollectionPersister()
Retrieve the collection persister this QuerySpace refers to.
|
ExpandingQuerySpaces |
getExpandingQuerySpaces() |
PropertyMapping |
getPropertyMapping()
Get the
PropertyMapping for this QuerySpace. |
java.lang.String[] |
toAliasedColumns(java.lang.String alias,
java.lang.String propertyName)
Get the aliased column names for the specified property in the query space..
|
canJoinsBeRequired, getDisposition, getJoins, getQuerySpaces, getUid, internalGetJoins, sessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canJoinsBeRequired
getDisposition, getJoins, getQuerySpaces, getUid
public CollectionQuerySpaceImpl(CollectionPersister persister, java.lang.String uid, ExpandingQuerySpaces querySpaces, boolean canJoinsBeRequired)
public CollectionPersister getCollectionPersister()
CollectionQuerySpace
getCollectionPersister
in interface CollectionQuerySpace
public PropertyMapping getPropertyMapping()
QuerySpace
PropertyMapping
for this QuerySpace.getPropertyMapping
in interface QuerySpace
public java.lang.String[] toAliasedColumns(java.lang.String alias, java.lang.String propertyName)
QuerySpace
toAliasedColumns
in interface QuerySpace
alias
- - the table aliaspropertyName
- - the property namepublic void addJoin(Join join)
ExpandingCollectionQuerySpace
join
is an instance of JoinDefinedByMetadata
, then the only valid
values returned by JoinDefinedByMetadata.getJoinedPropertyName()
are "elements"
and "indices"
for the collection element or index, respectively.addJoin
in interface ExpandingCollectionQuerySpace
addJoin
in interface ExpandingQuerySpace
join
- The element or index join to add.public ExpandingQuerySpaces getExpandingQuerySpaces()
getExpandingQuerySpaces
in interface ExpandingQuerySpace
getExpandingQuerySpaces
in class AbstractQuerySpace
public void addJoin(JoinDefinedByMetadata join)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.