public class CollectionQuerySpaceImpl extends AbstractQuerySpace implements ExpandingCollectionQuerySpace
QuerySpace.Disposition
Constructor and Description |
---|
CollectionQuerySpaceImpl(CollectionPersister persister,
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. |
String[] |
toAliasedColumns(String alias,
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, 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 String[] toAliasedColumns(String alias, 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 © 2021 JBoss by Red Hat. All rights reserved.