public interface QuerySpace
Defines a persister reference (either entity or collection) or a composite reference. In JPA terms this is an "abstract schema type" when discussing JPQL or JPA Criteria queries. This models a single source of attributes (and fetches).
| Modifier and Type | Interface and Description |
|---|---|
static class |
QuerySpace.Disposition
Enumeration of the different types of QuerySpaces we can have.
|
| Modifier and Type | Method and Description |
|---|---|
QuerySpace.Disposition |
getDisposition()
What type of QuerySpace (more-specific) is this?
|
Iterable<Join> |
getJoins()
Obtain all joins which originate from this QuerySpace, in other words, all the joins which this QuerySpace is
the left-hand-side of.
|
PropertyMapping |
getPropertyMapping()
Get the
PropertyMapping for this QuerySpace. |
QuerySpaces |
getQuerySpaces()
Get the
QuerySpaces object that is our owner. |
String |
getUid()
The uid/alias which uniquely identifies this QuerySpace.
|
String[] |
toAliasedColumns(String alias,
String propertyName)
Get the aliased column names for the specified property in the query space..
|
String getUid()
The uid/alias which uniquely identifies this QuerySpace. Can be used to uniquely reference this QuerySpace elsewhere.
QuerySpaces.findQuerySpaceByUid(java.lang.String)QuerySpaces getQuerySpaces()
Get the QuerySpaces object that is our owner.
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..
alias - - the table aliaspropertyName - - the property nameQuerySpace.Disposition getDisposition()
What type of QuerySpace (more-specific) is this?
Iterable<Join> getJoins()
Obtain all joins which originate from this QuerySpace, in other words, all the joins which this QuerySpace is
the left-hand-side of.
<p/>
For all the joins returned here, Join.getLeftHandSide() should point back to this QuerySpace such that
<code>
space.getJoins().forEach{ join → join.getLeftHandSide() == space }
</code>
is true for all.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.