public final class BeanFkeyProperty extends Object implements ElPropertyValue
Type | Property and Description |
---|---|
boolean |
isAssoc
Return true if any path of this path contains a Associated One or Many.
|
ROOT_ELPREFIX
Constructor and Description |
---|
BeanFkeyProperty(String prefix,
String name,
String dbColumn,
int deployOrder) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsFormulaWithJoin()
Return true if the property is a formula with a join clause.
|
boolean |
containsMany()
Returns false.
|
boolean |
containsManySince(String sinceProperty)
Return true if there is a property is on the path after sinceProperty
that is a 'many' property.
|
BeanFkeyProperty |
create(String expression) |
Object |
elConvertType(Object value)
Convert the value to the expected type.
|
Object |
elGetReference(Object bean)
Return the value ensuring objects prior to the top scalar property are
automatically populated.
|
Object |
elGetValue(Object bean)
Return the value from a given entity bean.
|
void |
elSetReference(Object bean)
Make the owning bean of this property a reference (as in not new/dirty).
|
void |
elSetValue(Object bean,
Object value,
boolean populate,
boolean reference)
Set a value given a root level bean.
|
String |
getAssocIdInExpr(String prefix)
Returns null as not an AssocOne.
|
String |
getAssocIdInValueExpr(int size)
Returns null as not an AssocOne.
|
String |
getAssocOneIdExpr(String prefix,
String operator)
Returns null as not an AssocOne.
|
Object[] |
getAssocOneIdValues(Object value)
Returns null as not an AssocOne.
|
BeanProperty |
getBeanProperty()
Return the underlying bean property.
|
String |
getDbColumn()
Return the deployment db column for this property.
|
int |
getDeployOrder()
Return the deploy order for the property.
|
String |
getDeployProperty() |
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 |
getJdbcType()
Return the underlying JDBC type or 0 if this is not a scalar type.
|
String |
getName()
Return the name of the property.
|
StringFormatter |
getStringFormatter()
Return the default StringFormatter for the scalar property.
|
StringParser |
getStringParser()
Return the default StringParser for the scalar property.
|
boolean |
isAssocId()
Returns false as not an AssocOne.
|
boolean |
isAssocProperty()
Return true if any path of this path contains a Associated One or Many.
|
boolean |
isDateTimeCapable()
Return true if the last type is "DateTime capable" - can support
ElPropertyValue.parseDateTime(long) . |
boolean |
isDbEncrypted()
Returns false for keys.
|
boolean |
isDeployOnly()
Only usable as ElPropertyDeploy.
|
boolean |
isLocalEncrypted()
Returns false for keys.
|
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).
|
isAssocProperty
in interface ElPropertyValue
public int getDeployOrder()
ElPropertyValue
getDeployOrder
in interface ElPropertyValue
public BeanFkeyProperty create(String expression)
public boolean isDbEncrypted()
isDbEncrypted
in interface ElPropertyValue
public boolean isLocalEncrypted()
isLocalEncrypted
in interface ElPropertyValue
public boolean isDeployOnly()
public boolean containsFormulaWithJoin()
ElPropertyDeploy
containsFormulaWithJoin
in interface ElPropertyDeploy
public boolean containsMany()
containsMany
in interface ElPropertyDeploy
public boolean containsManySince(String sinceProperty)
ElPropertyDeploy
containsManySince
in interface ElPropertyDeploy
public String getDbColumn()
ElPropertyDeploy
getDbColumn
in interface ElPropertyDeploy
public String getName()
ElPropertyDeploy
getName
in interface ElPropertyDeploy
public String getElName()
ElPropertyDeploy
getElName
in interface ElPropertyDeploy
public Object[] getAssocOneIdValues(Object value)
getAssocOneIdValues
in interface ElPropertyValue
public String getAssocOneIdExpr(String prefix, String operator)
getAssocOneIdExpr
in interface ElPropertyValue
public String getAssocIdInExpr(String prefix)
getAssocIdInExpr
in interface ElPropertyValue
public String getAssocIdInValueExpr(int size)
getAssocIdInValueExpr
in interface ElPropertyValue
public boolean isAssocId()
isAssocId
in interface ElPropertyValue
public boolean isAssocProperty()
ElPropertyValue
isAssocProperty
in interface ElPropertyValue
public String getElPlaceholder(boolean encrypted)
ElPropertyDeploy
The ${elPrefix} is replaced by the appropriate table alias.
getElPlaceholder
in interface ElPropertyDeploy
public String getElPrefix()
ElPropertyDeploy
This is use to determine joins required to support this property.
getElPrefix
in interface ElPropertyDeploy
public boolean isDateTimeCapable()
ElPropertyValue
ElPropertyValue.parseDateTime(long)
.isDateTimeCapable
in interface ElPropertyValue
public int getJdbcType()
ElPropertyValue
getJdbcType
in interface ElPropertyValue
public Object parseDateTime(long systemTimeMillis)
ElPropertyValue
parseDateTime
in interface ElPropertyValue
public StringFormatter getStringFormatter()
ElPropertyValue
getStringFormatter
in interface ElPropertyValue
public StringParser getStringParser()
ElPropertyValue
getStringParser
in interface ElPropertyValue
public void elSetReference(Object bean)
ElPropertyValue
elSetReference
in interface ElPropertyValue
public Object elConvertType(Object value)
ElPropertyValue
Typically useful for converting strings to the appropriate number type etc.
elConvertType
in interface ElPropertyValue
public void elSetValue(Object bean, Object value, boolean populate, boolean reference)
ElPropertyValue
If populate then
elSetValue
in interface ElPropertyValue
public Object elGetValue(Object bean)
ElPropertyValue
elGetValue
in interface ElPropertyValue
public Object elGetReference(Object bean)
ElPropertyValue
elGetReference
in interface ElPropertyValue
public BeanProperty getBeanProperty()
ElPropertyDeploy
getBeanProperty
in interface ElPropertyDeploy
public String getDeployProperty()
Copyright © 2015. All Rights Reserved.