Interface SubqueryAttribute<X,Y>
-
- Type Parameters:
X
- The type of the declaring entity viewY
- The type of attribute
- All Superinterfaces:
Attribute<X,Y>
,SingularAttribute<X,Y>
public interface SubqueryAttribute<X,Y> extends SingularAttribute<X,Y>
Instances of the type SubqueryAttribute represents single-valued properties or fields.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.metamodel.Attribute
Attribute.AttributeType, Attribute.MappingType, Attribute.MemberType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getSubqueryAlias()
Returns the subquery alias of the attribute.String
getSubqueryExpression()
Returns the subquery expression of the attribute.Class<? extends SubqueryProvider>
getSubqueryProvider()
Returns the subquery provider of the attribute.SubqueryProviderFactory
getSubqueryProviderFactory()
Returns the subquery provider factory of the attribute.void
renderSubqueryExpression(String parent, com.blazebit.persistence.spi.ServiceProvider serviceProvider, StringBuilder sb)
Renders the subquery expression for the given parent expression to the given string builder.void
renderSubqueryExpression(String parent, String subqueryExpression, String subqueryAlias, com.blazebit.persistence.spi.ServiceProvider serviceProvider, StringBuilder sb)
Renders the given subquery expression for the given parent expression to the given string builder.-
Methods inherited from interface com.blazebit.persistence.view.metamodel.Attribute
getAttributeType, getBatchSize, getConvertedJavaType, getDeclaringType, getFetches, getFetchStrategy, getJavaType, getLimitExpression, getMappingType, getMemberType, getOffsetExpression, getOrderByItems, isCollection, isCorrelated, isSubquery, isSubview
-
Methods inherited from interface com.blazebit.persistence.view.metamodel.SingularAttribute
getInheritanceSubtypeMappings, getType, isCreateEmptyFlatView, isId, isQueryParameter
-
-
-
-
Method Detail
-
getSubqueryProviderFactory
SubqueryProviderFactory getSubqueryProviderFactory()
Returns the subquery provider factory of the attribute.- Returns:
- The subquery provider factory of the attribute
- Since:
- 1.4.0
-
getSubqueryProvider
Class<? extends SubqueryProvider> getSubqueryProvider()
Returns the subquery provider of the attribute.- Returns:
- The subquery provider of the attribute
-
getSubqueryExpression
String getSubqueryExpression()
Returns the subquery expression of the attribute.- Returns:
- The subquery expression of the attribute
-
getSubqueryAlias
String getSubqueryAlias()
Returns the subquery alias of the attribute.- Returns:
- The subquery alias of the attribute
-
renderSubqueryExpression
void renderSubqueryExpression(String parent, com.blazebit.persistence.spi.ServiceProvider serviceProvider, StringBuilder sb)
Renders the subquery expression for the given parent expression to the given string builder.- Parameters:
parent
- The parent expressionserviceProvider
- The service providersb
- The string builder
-
renderSubqueryExpression
void renderSubqueryExpression(String parent, String subqueryExpression, String subqueryAlias, com.blazebit.persistence.spi.ServiceProvider serviceProvider, StringBuilder sb)
Renders the given subquery expression for the given parent expression to the given string builder.- Parameters:
parent
- The parent expressionsubqueryExpression
- The subquery expressionsubqueryAlias
- The subquery aliasserviceProvider
- The service providersb
- The string builder
-
-