PropertyAccess for handling non-aggregated composites.
Implementation Note
We actually use a singleton for the Setter; we cannot for the getter mainly
because we need to differentiate Getter#getReturnTypeClass(). Ultimately I'd
prefer to model that "common information" on PropertyAccess itself.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final PropertyAccessEmbeddedImpl. | |
| private final PropertyAccessStrategyEmbeddedImpl |
| Access | Constructor and Description |
|---|---|
| public | PropertyAccessEmbeddedImpl(PropertyAccessStrategyEmbeddedImpl strategy, Class<?> containerType, String propertyName)
|
| Modifier and Type | Method and Description |
|---|---|
| public Getter | getGetter()
Implements org. |
| public PropertyAccessStrategy | getPropertyAccessStrategy()
Implements org. PropertyAccessStrategy that created this instance.
|
| public Setter | getSetter()
Implements org. |
| getter | back to summary |
|---|---|
| private final PropertyAccessEmbeddedImpl. | |
| strategy | back to summary |
|---|---|
| private final PropertyAccessStrategyEmbeddedImpl strategy | |
| PropertyAccessEmbeddedImpl | back to summary |
|---|---|
| public PropertyAccessEmbeddedImpl(PropertyAccessStrategyEmbeddedImpl strategy, Class<?> containerType, String propertyName) | |
| getGetter | back to summary |
|---|---|
| public Getter getGetter() Implements org. Doc from org. Obtain the delegate for getting values of the persistent attribute. | |
| getPropertyAccessStrategy | back to summary |
|---|---|
| public PropertyAccessStrategy getPropertyAccessStrategy() Implements org. Doc from org. Access to the
| |
| getSetter | back to summary |
|---|---|
| public Setter getSetter() Implements org. Doc from org. Obtain the delegate for setting values of the persistent attribute. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | get(Object
The instance containing the property value to be retrieved. owner)Implements org. |
| public Object | getForInsert(Object
The instance containing the value to be retrieved. owner, Map<K, V> a map of merged persistent instances to detached instances mergeMap, SharedSessionContractImplementor The session from which this request originated. session)Implements org. |
| public @Nullable Member | getMember()
Implements org. |
| public @Nullable Method | getMethod()
Implements org. |
| public @Nullable String | getMethodName()
Implements org. |
| public Type | getReturnType()
Implements org. |
| public Class | getReturnTypeClass()
Implements org. |
| containerType | back to summary |
|---|---|
| private final Class<?> containerType | |
| GetterImpl | back to summary |
|---|---|
| public GetterImpl(Class<?> containerType) | |
| get | back to summary |
|---|---|
| public Object get(Object owner) Implements org. Doc from org. Get the property value from the given owner instance. | |
| getForInsert | back to summary |
|---|---|
| public Object getForInsert(Object owner, Map<K, V> mergeMap, SharedSessionContractImplementor session) Implements org. Doc from org. Get the property value from the given owner instance.
| |
| getMember | back to summary |
|---|---|
| public @Nullable Member getMember() Implements org. Doc from org. Retrieve the member to which this property maps. This might be the field or it might be the getter method.
Optional operation (may return | |
| getMethod | back to summary |
|---|---|
| public @Nullable Method getMethod() Implements org. Doc from org. Retrieve the getter-method.
Optional operation (may return | |
| getMethodName | back to summary |
|---|---|
| public @Nullable String getMethodName() Implements org. Doc from org. Retrieve the getter-method name.
Optional operation (may return | |
| getReturnType | back to summary |
|---|---|
| public Type getReturnType() Implements org. Doc from org. Retrieve the declared Java type | |
| getReturnTypeClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Retrieve the declared Java type class | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PropertyAccessEmbeddedImpl. | INSTANCE
Singleton access - we can actually use a singleton for the setter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable Method | getMethod()
Implements org. null)
|
| public @Nullable String | getMethodName()
Implements org. null)
|
| public void |
| INSTANCE | back to summary |
|---|---|
| public static final PropertyAccessEmbeddedImpl. Singleton access - we can actually use a singleton for the setter | |
| SetterImpl | back to summary |
|---|---|
| private SetterImpl() | |
| getMethod | back to summary |
|---|---|
| public @Nullable Method getMethod() Implements org. Doc from org. Optional operation (may return
| |
| getMethodName | back to summary |
|---|---|
| public @Nullable String getMethodName() Implements org. Doc from org. Optional operation (may return
| |
| set | back to summary |
|---|---|
public void set(Object target, @Nullable Object value)
| |