public class HolderHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getPathForEnumConstant(ClosureHolder closureWithQuery,
String recordIterator,
EnumerationImpl enumConstant)
Returns path mapped to the enumeration in the query used in the closure.
|
static Object |
getPropertyValue(ModelProvider modelProvider,
String evaluationLevel,
RecordHolder recordHolder,
Property property)
Returns value of the property of the record in the evaluation level.
|
static boolean |
isClosureWithQuery(ClosureExpression closureExpression)
Returns true if the closure contains a call of a query as the last expression.
|
static boolean |
isClosureWithQuery(ClosureHolder closureHolder)
Returns true if the closure contains a call of a query as the last expression.
|
static boolean |
isPropertyChanged(RecordHolder recordHolder,
Property property)
Returns true if property is changed in the record.
|
public static boolean isPropertyChanged(RecordHolder recordHolder, Property property)
recordHolder
- property
- public static Object getPropertyValue(ModelProvider modelProvider, String evaluationLevel, RecordHolder recordHolder, Property property)
modelProvider
- evaluationLevel
- recordHolder
- property
- public static boolean isClosureWithQuery(ClosureHolder closureHolder)
closureHolder
- public static boolean isClosureWithQuery(ClosureExpression closureExpression)
closureExpression
- public static String getPathForEnumConstant(ClosureHolder closureWithQuery, String recordIterator, EnumerationImpl enumConstant)
closureWithQuery
- recordIterator
- enumConstant
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.