public interface ExpressionPath
Modifier and Type | Method and Description |
---|---|
boolean |
containsMany()
Return true if there is a property on the path that is a many property.
|
Object |
convert(Object value)
Convert the value to the expected type.
|
String |
getAssocIdExpression(String propName,
String bindOperator)
Return the Id expression string.
|
Object[] |
getAssocIdValues(EntityBean bean)
Return the Id values for the given bean value.
|
String |
getElName()
The ElPrefix plus name.
|
int |
getJdbcType()
Return the underlying JDBC type or 0 if this is not a scalar type.
|
Property |
getProperty()
Return the underlying bean property.
|
StringParser |
getStringParser()
Return the default StringParser for the scalar property.
|
boolean |
isAssocId()
Return true if this is an ManyToOne or OneToOne associated bean property.
|
boolean |
isDateTimeCapable()
Return true if the last type is "DateTime capable" - can support
parseDateTime(long) . |
Object |
parseDateTime(long systemTimeMillis)
For DateTime capable scalar types convert the long systemTimeMillis into
an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).
|
Object |
pathGet(Object bean)
Return the value from a given entity bean.
|
void |
pathSet(Object bean,
Object value)
Set a value to the bean for this expression path.
|
boolean containsMany()
void pathSet(Object bean, Object value)
bean
- the bean to set the value onvalue
- the value to setObject convert(Object value)
Typically useful for converting strings to the appropriate number type etc.
StringParser getStringParser()
Object parseDateTime(long systemTimeMillis)
boolean isDateTimeCapable()
parseDateTime(long)
.int getJdbcType()
boolean isAssocId()
String getAssocIdExpression(String propName, String bindOperator)
Typically used to produce id = ? expression strings.
Object[] getAssocIdValues(EntityBean bean)
Property getProperty()
Copyright © 2019. All rights reserved.