IMPL NOTE : We actually use a singleton for the Setter; we cannot for the getter mainly
because we need to differentiate Getter#getReturnType(). 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<T> containerType, String propertyName)
|
| Modifier and Type | Method and Description |
|---|---|
| public Getter | getGetter()
Implements org. |
| public PropertyAccessStrategy | getPropertyAccessStrategy()
Implements org. |
| 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<T> containerType, String propertyName)
| |
| getGetter | back to summary |
|---|---|
| public Getter getGetter() Implements org. Doc from org. Obtain the delegate for getting values for the described persistent property | |
| getPropertyAccessStrategy | back to summary |
|---|---|
| public PropertyAccessStrategy getPropertyAccessStrategy() Implements org. Doc from org. Access to the PropertyAccessStrategy that created this PropertyAccess
| |
| getSetter | back to summary |
|---|---|
| public Setter getSetter() Implements org. Doc from org. Obtain the delegate for setting values for the described persistent property | |
| 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 Member | getMember()
Implements org. |
| public Method | getMethod()
Implements org. |
| public String | getMethodName()
Implements org. |
| public Class | getReturnType()
Implements org. |
| containerType | back to summary |
|---|---|
| private final Class<T> containerType | |
| GetterImpl | back to summary |
|---|---|
| public GetterImpl(Class<T> 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 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 Method getMethod() Implements org. Doc from org. Retrieve the getter-method.
Optional operation (may return | |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() Implements org. Doc from org. Retrieve the getter-method name.
Optional operation (may return | |
| getReturnType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Retrieve the declared Java type | |
| 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 Method | getMethod()
Implements org. null)
|
| public String | getMethodName()
Implements org. null)
|
| public void | set(Object
The instance upon which to set the given value. target, Object The value to be set on the target. value, SessionFactoryImplementor The session factory from which this request originated. factory)Implements org.
Deprecated
as a consequence of
Set the property value from the given instance
SessionFactoryImplementor being deprecated.
|
| 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 Method getMethod() Implements org. Doc from org. Optional operation (may return
| |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() Implements org. Doc from org. Optional operation (may return
| |
| set | back to summary |
|---|---|
| public void set(Object target, Object value, SessionFactoryImplementor factory) Implements org. Doc from org. Deprecated as a consequence of Set the property value from the given instance
| |