- All Superinterfaces:
SpiQueryManyJoin
- All Known Subinterfaces:
ElPropertyValue
- All Known Implementing Classes:
BeanFkeyProperty,BeanProperty,BeanPropertyAssoc,BeanPropertyAssocMany,BeanPropertyAssocOne,BeanPropertyIdClass,BeanPropertyJsonBasic,BeanPropertyJsonMapper,BeanPropertyOrderColumn,BeanPropertySimpleCollection,ElPropertyChain
Used to parse expressions in queries (where, orderBy etc).
Maps an expression to deployment information such as the DB column and elPrefix/elPlaceHolder is used determine joins and set place holders for table alias'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is the elPrefix for all root level properties. -
Method Summary
Modifier and TypeMethodDescriptionReturn the underlying bean property.booleanReturn true if the property is a formula with a join clause.booleanReturn true if there is a property on the path that is a many property.booleancontainsManySince(String sinceProperty) Return true if there is a property is on the path after sinceProperty that is a 'many' property.dbColumn()Return the deployment db column for this property.elName()The ElPrefix plus name.elPlaceholder(boolean encrypted) Return the place holder in the form of ${elPrefix}dbColumn.elPrefix()Return the prefix path of the property.default StringOrder by clause defined via mapping on the ToMany property.intReturn the fetch preference.booleanReturn true if this is an aggregation property.name()Return the name of the property.default Stringpath()The full path of the many property to include in the query via join.Methods inherited from interface io.ebeaninternal.api.SpiQueryManyJoin
idNullOr
-
Field Details
-
ROOT_ELPREFIX
This is the elPrefix for all root level properties.- See Also:
-
-
Method Details
-
containsFormulaWithJoin
boolean containsFormulaWithJoin()Return true if the property is a formula with a join clause. -
containsMany
boolean containsMany()Return true if there is a property on the path that is a many property. -
containsManySince
Return true if there is a property is on the path after sinceProperty that is a 'many' property. -
elPrefix
String elPrefix()Return the prefix path of the property.This is use to determine joins required to support this property.
-
elPlaceholder
Return the place holder in the form of ${elPrefix}dbColumn.The ${elPrefix} is replaced by the appropriate table alias.
-
name
String name()Return the name of the property. -
elName
String elName()The ElPrefix plus name. -
dbColumn
String dbColumn()Return the deployment db column for this property. -
beanProperty
BeanProperty beanProperty()Return the underlying bean property. -
isAggregation
boolean isAggregation()Return true if this is an aggregation property. -
fetchPreference
int fetchPreference()Return the fetch preference. This can be used to control which ToMany relationship is left as a 'join' and which get converted to query join. -
path
Description copied from interface:SpiQueryManyJoinThe full path of the many property to include in the query via join.- Specified by:
pathin interfaceSpiQueryManyJoin
-
fetchOrderBy
Description copied from interface:SpiQueryManyJoinOrder by clause defined via mapping on the ToMany property.- Specified by:
fetchOrderByin interfaceSpiQueryManyJoin
-