Package ubic.gemma.persistence.util
Class Subquery
java.lang.Object
ubic.gemma.persistence.util.Subquery
Represents a subquery right-hand side of a
Filter.
A subquery has rather limited structure:
select {rootAlias}.{propertyName} from {entityName} {rootAlias} join {aliases...} where {filter}
and is solely designed to nest a Filter in a subquery so that it can be applied to one-to-many relations.
The root alias is used whenever null is used as object alias in the aliases or filter. It
can be declared by passing an Subquery.Alias with a null object alias and an empty property name.
- Author:
- poirgui
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanList of aliases for resolving the object alias defined infilter.The entity name being queried.A filter being nested in the subquery.The property name being queried.Root alias of this subquery.inthashCode()toString()withFilterPropertyName(String newPropertyName, String originalProperty) Create a new subquery with a different property name for the filter.
-
Constructor Details
-
Subquery
public Subquery(String entityName, String propertyName, List<Subquery.Alias> aliases, Filter filter)
-
-
Method Details
-
withFilterPropertyName
Create a new subquery with a different property name for the filter. -
toString
-
getEntityName
The entity name being queried. -
getPropertyName
The property name being queried. -
getAliases
List of aliases for resolving the object alias defined infilter. -
getRootAlias
Root alias of this subquery.If none are defined in
aliases, the defaulteis used. -
getFilter
A filter being nested in the subquery. -
equals
-
hashCode
public int hashCode()
-