public class EntityDerivedMap extends Object implements Serializable
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Map<String,Object> |
_derivedMap
The map of derived value. map:{alias-name = value} (NullAllowed: lazy-loaded)
|
| コンストラクタと説明 |
|---|
EntityDerivedMap() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
buildExceptionExistingDerivedMapInfo(ExceptionMessageBuilder br,
Map<String,Object> derivedMap) |
protected void |
buildExceptionTableInfo(ExceptionMessageBuilder br,
Entity entity) |
void |
clear()
Clear the derived map.
|
<VALUE> OptionalScalar<VALUE> |
findDerivedValue(Entity entity,
String aliasName,
Class<VALUE> propertyType)
Find the derived value in the map.
|
protected Map<String,Object> |
getDerivedMap() |
boolean |
isEmpty()
Is the derived map empty?
|
void |
registerDerivedValue(String aliasName,
Object selectedValue)
Register the derived value to the map.
|
void |
remove(String aliasName)
Remove the derived value from the map.
|
protected void |
throwDerivedPropertyValueNotFoundException(String tableDbName,
String aliasName) |
protected void |
throwInvalidDerivedAliasNameException(Entity entity,
String aliasName) |
protected void |
throwUnknownDerivedAliasNameException(Entity entity,
String aliasName,
Map<String,Object> derivedMap) |
protected void |
throwUnmatchDerivedPropertyTypeException(Entity entity,
String aliasName,
Class<?> propertyType,
ClassCastException cause) |
String |
toString() |
public void registerDerivedValue(String aliasName, Object selectedValue)
aliasName - The alias name of derived-referrer. (NotNull)selectedValue - The derived value selected from database. (NullAllowed: when null selected)public <VALUE> OptionalScalar<VALUE> findDerivedValue(Entity entity, String aliasName, Class<VALUE> propertyType)
VALUE - The type of derived value.entity - The entity that has the derived value, basically for logging. (NotNull)aliasName - The alias name of derived-referrer. (NotNull)propertyType - The type of the derived property, should match as rule. (NotNull)SpecifyDerivedReferrerInvalidAliasNameException - When the alias name does not start with '$'.SpecifyDerivedReferrerUnknownAliasNameException - When the alias name is unknown, no derived.SpecifyDerivedReferrerUnmatchedPropertyTypeException - When the property type is unmatched with actual type.public boolean isEmpty()
public void clear()
public void remove(String aliasName)
aliasName - The alias name of derived-referrer. (NotNull)protected void throwInvalidDerivedAliasNameException(Entity entity, String aliasName)
protected void throwUnknownDerivedAliasNameException(Entity entity, String aliasName, Map<String,Object> derivedMap)
protected void throwUnmatchDerivedPropertyTypeException(Entity entity, String aliasName, Class<?> propertyType, ClassCastException cause)
protected void buildExceptionTableInfo(ExceptionMessageBuilder br, Entity entity)
protected void buildExceptionExistingDerivedMapInfo(ExceptionMessageBuilder br, Map<String,Object> derivedMap)
protected void throwDerivedPropertyValueNotFoundException(String tableDbName, String aliasName)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.