Package io.ebean.plugin
Interface ExpressionPath
-
public interface ExpressionPath
A dot notation expression path.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 supportparseDateTime(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.
-
-
-
Method Detail
-
containsMany
boolean containsMany()
Return true if there is a property on the path that is a many property.
-
pathSet
void pathSet(Object bean, Object value)
Set a value to the bean for this expression path.- Parameters:
bean
- the bean to set the value onvalue
- the value to set
-
convert
Object convert(Object value)
Convert the value to the expected type.Typically useful for converting strings to the appropriate number type etc.
-
getStringParser
StringParser getStringParser()
Return the default StringParser for the scalar property.
-
parseDateTime
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).
-
isDateTimeCapable
boolean isDateTimeCapable()
Return true if the last type is "DateTime capable" - can supportparseDateTime(long)
.
-
getJdbcType
int getJdbcType()
Return the underlying JDBC type or 0 if this is not a scalar type.
-
isAssocId
boolean isAssocId()
Return true if this is an ManyToOne or OneToOne associated bean property.
-
getAssocIdExpression
String getAssocIdExpression(String propName, String bindOperator)
Return the Id expression string.Typically used to produce id = ? expression strings.
-
getAssocIdValues
Object[] getAssocIdValues(EntityBean bean)
Return the Id values for the given bean value.
-
getProperty
Property getProperty()
Return the underlying bean property.
-
-