Package io.ebeaninternal.server.el
Interface ElPropertyDeploy
-
- All Known Subinterfaces:
ElPropertyValue
- All Known Implementing Classes:
BeanFkeyProperty
,BeanProperty
,BeanPropertyAssoc
,BeanPropertyAssocMany
,BeanPropertyAssocOne
,BeanPropertyIdClass
,BeanPropertyOrderColumn
,BeanPropertySimpleCollection
,ElPropertyChain
public interface ElPropertyDeploy
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
Fields Modifier and Type Field Description static String
ROOT_ELPREFIX
This is the elPrefix for all root level properties.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsFormulaWithJoin()
Return true if the property is a formula with a join clause.boolean
containsMany()
Return true if there is a property on the path that is a many property.boolean
containsManySince(String sinceProperty)
Return true if there is a property is on the path after sinceProperty that is a 'many' property.BeanProperty
getBeanProperty()
Return the underlying bean property.String
getDbColumn()
Return the deployment db column for this property.String
getElName()
The ElPrefix plus name.String
getElPlaceholder(boolean encrypted)
Return the place holder in the form of ${elPrefix}dbColumn.String
getElPrefix()
Return the prefix path of the property.int
getFetchPreference()
Return the fetch preference.String
getName()
Return the name of the property.boolean
isAggregation()
Return true if this is an aggregation property.
-
-
-
Field Detail
-
ROOT_ELPREFIX
static final String ROOT_ELPREFIX
This is the elPrefix for all root level properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
boolean containsManySince(String sinceProperty)
Return true if there is a property is on the path after sinceProperty that is a 'many' property.
-
getElPrefix
String getElPrefix()
Return the prefix path of the property.This is use to determine joins required to support this property.
-
getElPlaceholder
String getElPlaceholder(boolean encrypted)
Return the place holder in the form of ${elPrefix}dbColumn.The ${elPrefix} is replaced by the appropriate table alias.
-
getDbColumn
String getDbColumn()
Return the deployment db column for this property.
-
getBeanProperty
BeanProperty getBeanProperty()
Return the underlying bean property.
-
isAggregation
boolean isAggregation()
Return true if this is an aggregation property.
-
getFetchPreference
int getFetchPreference()
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.
-
-