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 ElPropertyValuepublic int getDeployOrder()
ElPropertyValuegetDeployOrder in interface ElPropertyValuepublic BeanFkeyProperty create(String expression)
public boolean isDbEncrypted()
isDbEncrypted in interface ElPropertyValuepublic boolean isLocalEncrypted()
isLocalEncrypted in interface ElPropertyValuepublic boolean isDeployOnly()
public boolean containsFormulaWithJoin()
ElPropertyDeploycontainsFormulaWithJoin in interface ElPropertyDeploypublic boolean containsMany()
containsMany in interface ElPropertyDeploypublic boolean containsManySince(String sinceProperty)
ElPropertyDeploycontainsManySince in interface ElPropertyDeploypublic String getDbColumn()
ElPropertyDeploygetDbColumn in interface ElPropertyDeploypublic String getName()
ElPropertyDeploygetName in interface ElPropertyDeploypublic String getElName()
ElPropertyDeploygetElName in interface ElPropertyDeploypublic Object[] getAssocOneIdValues(Object value)
getAssocOneIdValues in interface ElPropertyValuepublic String getAssocOneIdExpr(String prefix, String operator)
getAssocOneIdExpr in interface ElPropertyValuepublic String getAssocIdInExpr(String prefix)
getAssocIdInExpr in interface ElPropertyValuepublic String getAssocIdInValueExpr(int size)
getAssocIdInValueExpr in interface ElPropertyValuepublic boolean isAssocId()
isAssocId in interface ElPropertyValuepublic boolean isAssocProperty()
ElPropertyValueisAssocProperty in interface ElPropertyValuepublic String getElPlaceholder(boolean encrypted)
ElPropertyDeployThe ${elPrefix} is replaced by the appropriate table alias.
getElPlaceholder in interface ElPropertyDeploypublic String getElPrefix()
ElPropertyDeployThis is use to determine joins required to support this property.
getElPrefix in interface ElPropertyDeploypublic boolean isDateTimeCapable()
ElPropertyValueElPropertyValue.parseDateTime(long).isDateTimeCapable in interface ElPropertyValuepublic int getJdbcType()
ElPropertyValuegetJdbcType in interface ElPropertyValuepublic Object parseDateTime(long systemTimeMillis)
ElPropertyValueparseDateTime in interface ElPropertyValuepublic StringFormatter getStringFormatter()
ElPropertyValuegetStringFormatter in interface ElPropertyValuepublic StringParser getStringParser()
ElPropertyValuegetStringParser in interface ElPropertyValuepublic void elSetReference(Object bean)
ElPropertyValueelSetReference in interface ElPropertyValuepublic Object elConvertType(Object value)
ElPropertyValueTypically useful for converting strings to the appropriate number type etc.
elConvertType in interface ElPropertyValuepublic void elSetValue(Object bean, Object value, boolean populate, boolean reference)
ElPropertyValueIf populate then
elSetValue in interface ElPropertyValuepublic Object elGetValue(Object bean)
ElPropertyValueelGetValue in interface ElPropertyValuepublic Object elGetReference(Object bean)
ElPropertyValueelGetReference in interface ElPropertyValuepublic BeanProperty getBeanProperty()
ElPropertyDeploygetBeanProperty in interface ElPropertyDeploypublic String getDeployProperty()
Copyright © 2014. All Rights Reserved.