public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T>
| Type | Property and Description |
|---|---|
boolean |
isAssoc
Return true if any path of this path contains a Associated One or Many.
|
EXCLUDE_FROM_DELETE_WHERE, EXCLUDE_FROM_INSERT, EXCLUDE_FROM_UPDATE, EXCLUDE_FROM_UPDATE_WHEREROOT_ELPREFIX| Constructor and Description |
|---|
BeanPropertyAssocOne(BeanDescriptorMap owner,
BeanDescriptor<?> descriptor,
DeployBeanPropertyAssocOne<T> deploy)
Create the property.
|
BeanPropertyAssocOne(BeanDescriptorMap owner,
DeployBeanPropertyAssocOne<T> deploy)
Create based on deploy information of an EmbeddedId.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFkey() |
void |
appendFrom(DbSqlContext ctx,
boolean forceOuterJoin)
Add any extra joins required to support this property.
|
void |
appendSelect(DbSqlContext ctx,
boolean subQuery) |
ElPropertyValue |
buildElPropertyValue(String propName,
String remainder,
ElPropertyChainBuilder chain,
boolean propertyDeploy) |
void |
buildSelectExpressionChain(String prefix,
List<String> selectChain) |
void |
cacheClear() |
void |
cacheDelete(boolean clearOnNull,
Object bean) |
Object |
createEmbeddedId()
Create a bean of the target type to be used as an embeddedId
value.
|
Object |
createEmptyReference()
Return an empty reference object.
|
SqlUpdate |
deleteByParentId(Object parentId,
List<Object> parentIdist) |
Object |
elGetReference(Object bean)
Return the value ensuring objects prior to the top scalar property are
automatically populated.
|
void |
elSetReference(Object bean)
Make the owning bean of this property a reference (as in not new/dirty).
|
List<Object> |
findIdsByParentId(Object parentId,
List<Object> parentIdist,
Transaction t) |
String |
getAssocIdInExpr(String prefix)
Return the logical id in expression taking into account embedded id's.
|
String |
getAssocIdInValueExpr(int size)
Return the logical id value expression taking into account embedded id's.
|
String |
getAssocOneIdExpr(String prefix,
String operator)
Return the Id expression to add to where clause etc.
|
Object[] |
getAssocOneIdValues(Object bean)
Return the Id values from the given bean.
|
Object |
getCacheDataValue(Object bean) |
String |
getElPlaceholder(boolean encrypted)
Return the place holder in the form of ${elPrefix}dbColumn.
|
ImportedId |
getImportedId() |
BeanProperty[] |
getProperties()
Return meta data for the deployment of the embedded bean specific to this
property.
|
BeanPropertyAssocMany<?> |
getRelationshipProperty() |
Class<?> |
getTargetType()
Same as getPropertyType().
|
boolean |
hasChanged(Object bean,
Object oldValues) |
void |
initialise()
Initialise post construction.
|
boolean |
isAssocId()
Return true if this is an ManyToOne or OneToOne associated bean property.
|
boolean |
isAssocProperty()
Return true if any path of this path contains a Associated One or Many.
|
boolean |
isEmbeddedVersion()
Returns true if the associated bean has version properties.
|
boolean |
isImportedPrimaryKey()
If true this bean maps to the primary key.
|
boolean |
isOneToOne()
Return true if this a OneToOne property.
|
boolean |
isOneToOneExported()
Return true if this is the exported side of a OneToOne.
|
boolean |
isValueLoaded(Object value)
Checks to see if a bean is a reference (will be lazy loaded) or a
BeanCollection that has not yet been populated.
|
void |
jsonRead(ReadJsonContext ctx,
Object bean) |
void |
jsonWrite(WriteJsonContext ctx,
Object bean) |
void |
load(SqlBeanLoad sqlBeanLoad) |
void |
loadIgnore(DbReadContext ctx) |
Object |
read(DbReadContext ctx)
Read the data from the resultSet effectively ignoring it and returning null.
|
Object |
readSet(DbReadContext ctx,
Object bean,
Class<?> type) |
void |
setCacheDataValue(Object bean,
Object cacheData,
Object oldValues,
boolean readOnly) |
void |
setRelationshipProperty(BeanPropertyAssocMany<?> relationshipProperty) |
addInnerJoin, addJoin, addJoin, createElPropertyValue, createImportedId, getBeanTable, getCascadeInfo, getExtraWhere, getMappedBy, getTableJoin, getTargetDescriptor, getTargetIdProperty, hasId, isDeleteRecurseSkippable, isInsertable, isOuterJoin, isSaveRecurseSkippable, isSaveRecurseSkippable, isScalar, isUpdateablebind, containsFormulaWithJoin, containsMany, containsManySince, convertToLogicalType, copyProperty, elConvertType, elGetValue, elSetValue, getBeanDescriptor, getBeanProperty, getDbBind, getDbColumn, getDbColumnDefn, getDbConstraintExpression, getDbEncryptedType, getDbLength, getDbScale, getDbType, getDecryptProperty, getDecryptProperty, getDecryptSql, getDecryptSql, getDefaultValue, getDeployOrder, getDeployProperty, getElName, getElPrefix, getEncryptKey, getExtraAttribute, getField, getFullBeanName, getGeneratedProperty, getJdbcType, getName, getPropertyType, getReadMethod, getScalarType, getSecondaryTableJoinPrefix, getStringFormatter, getStringParser, getValue, getValueIntercept, getValueViaReflection, getValueWithInheritance, getWriteMethod, isAssignableFrom, isCascadeValidate, isDateTimeCapable, isDbEncrypted, isDbInsertable, isDbRead, isDbUpdatable, isDDLNotNull, isDeployOnly, isEmbedded, isFetchEager, isFormula, isId, isInherited, isLob, isLocal, isLocalEncrypted, isNaturalKey, isNullable, isSecondaryTable, isTransient, isUnique, isVersion, parseDateTime, readData, readSetOwning, renderDbType, setDeployOrder, setValue, setValueIntercept, toBeanType, toString, writeDataisAssocProperty in interface ElPropertyValueisAssocProperty in class BeanPropertypublic BeanPropertyAssocOne(BeanDescriptorMap owner, DeployBeanPropertyAssocOne<T> deploy)
public BeanPropertyAssocOne(BeanDescriptorMap owner, BeanDescriptor<?> descriptor, DeployBeanPropertyAssocOne<T> deploy)
public void initialise()
BeanPropertyAssocinitialise in class BeanPropertyAssoc<T>public void setRelationshipProperty(BeanPropertyAssocMany<?> relationshipProperty)
public BeanPropertyAssocMany<?> getRelationshipProperty()
public void cacheClear()
public void cacheDelete(boolean clearOnNull,
Object bean)
public ElPropertyValue buildElPropertyValue(String propName, String remainder, ElPropertyChainBuilder chain, boolean propertyDeploy)
buildElPropertyValue in class BeanPropertypublic String getElPlaceholder(boolean encrypted)
ElPropertyDeployThe ${elPrefix} is replaced by the appropriate table alias.
getElPlaceholder in interface ElPropertyDeploygetElPlaceholder in class BeanPropertypublic List<Object> findIdsByParentId(Object parentId, List<Object> parentIdist, Transaction t)
public void addFkey()
public boolean isValueLoaded(Object value)
BeanPropertyFor base types this returns true.
isValueLoaded in class BeanPropertypublic boolean hasChanged(Object bean, Object oldValues)
hasChanged in class BeanPropertypublic BeanProperty[] getProperties()
public void buildSelectExpressionChain(String prefix, List<String> selectChain)
buildSelectExpressionChain in class BeanPropertypublic boolean isOneToOne()
public boolean isOneToOneExported()
public boolean isEmbeddedVersion()
public boolean isImportedPrimaryKey()
public Class<?> getTargetType()
getTargetType in class BeanPropertyAssoc<T>public Object getCacheDataValue(Object bean)
getCacheDataValue in class BeanPropertypublic void setCacheDataValue(Object bean, Object cacheData, Object oldValues, boolean readOnly)
setCacheDataValue in class BeanPropertypublic Object[] getAssocOneIdValues(Object bean)
getAssocOneIdValues in interface ElPropertyValuegetAssocOneIdValues in class BeanPropertypublic String getAssocOneIdExpr(String prefix, String operator)
getAssocOneIdExpr in interface ElPropertyValuegetAssocOneIdExpr in class BeanPropertypublic String getAssocIdInValueExpr(int size)
getAssocIdInValueExpr in interface ElPropertyValuegetAssocIdInValueExpr in class BeanPropertypublic String getAssocIdInExpr(String prefix)
getAssocIdInExpr in interface ElPropertyValuegetAssocIdInExpr in class BeanPropertypublic boolean isAssocId()
ElPropertyValueisAssocId in interface ElPropertyValueisAssocId in class BeanPropertypublic boolean isAssocProperty()
ElPropertyValueisAssocProperty in interface ElPropertyValueisAssocProperty in class BeanPropertypublic Object createEmbeddedId()
public Object createEmptyReference()
public void elSetReference(Object bean)
ElPropertyValueelSetReference in interface ElPropertyValueelSetReference in class BeanPropertypublic Object elGetReference(Object bean)
ElPropertyValueelGetReference in interface ElPropertyValueelGetReference in class BeanPropertypublic ImportedId getImportedId()
public void appendSelect(DbSqlContext ctx, boolean subQuery)
appendSelect in class BeanPropertypublic void appendFrom(DbSqlContext ctx, boolean forceOuterJoin)
BeanPropertyappendFrom in class BeanPropertypublic Object readSet(DbReadContext ctx, Object bean, Class<?> type) throws SQLException
readSet in class BeanPropertySQLExceptionpublic Object read(DbReadContext ctx) throws SQLException
read in class BeanPropertySQLExceptionpublic void loadIgnore(DbReadContext ctx)
loadIgnore in class BeanPropertypublic void load(SqlBeanLoad sqlBeanLoad) throws SQLException
load in class BeanPropertySQLExceptionpublic void jsonWrite(WriteJsonContext ctx, Object bean)
jsonWrite in class BeanPropertypublic void jsonRead(ReadJsonContext ctx, Object bean)
jsonRead in class BeanPropertyCopyright © 2014. All Rights Reserved.