Package io.ebean.plugin
Interface ExpressionPath
public interface ExpressionPath
A dot notation expression path.
-
Method Summary
Modifier and Type Method Description booleancontainsMany()Return true if there is a property on the path that is a many property.Objectconvert(Object value)Convert the value to the expected type.StringgetAssocIdExpression(String propName, String bindOperator)Return the Id expression string.Object[]getAssocIdValues(EntityBean bean)Return the Id values for the given bean value.StringgetElName()The ElPrefix plus name.intgetJdbcType()Return the underlying JDBC type or 0 if this is not a scalar type.PropertygetProperty()Return the underlying bean property.StringParsergetStringParser()Return the default StringParser for the scalar property.booleanisAssocId()Return true if this is an ManyToOne or OneToOne associated bean property.booleanisDateTimeCapable()Return true if the last type is "DateTime capable" - can supportparseDateTime(long).ObjectparseDateTime(long systemTimeMillis)For DateTime capable scalar types convert the long systemTimeMillis into an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).ObjectpathGet(Object bean)Return the value from a given entity bean.voidpathSet(Object bean, Object value)Set a value to the bean for this expression path.
-
Method Details
-
containsMany
boolean containsMany()Return true if there is a property on the path that is a many property. -
pathGet
Return the value from a given entity bean. -
pathSet
Set a value to the bean for this expression path.- Parameters:
bean- the bean to set the value onvalue- the value to set
-
convert
Convert the value to the expected type.Typically useful for converting strings to the appropriate number type etc.
-
getStringParser
Return the default StringParser for the scalar property. -
parseDateTime
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
Return the Id expression string.Typically used to produce id = ? expression strings.
-
getAssocIdValues
Return the Id values for the given bean value. -
getProperty
Return the underlying bean property. -
getElName
The ElPrefix plus name.
-