Top Inners Fields Constructors Methods
org.hibernate.property.access.internal

public Class PropertyAccessStrategyNoopImpl

extends Object
implements PropertyAccessStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.property.access.spi.PropertyAccessStrategy
Imports
java.lang.reflect.Member, .Method, .Type, java.util.Map, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.property.access.spi.Getter, .PropertyAccess, .PropertyAccessStrategy, .Setter, org.checkerframework.checker.nullness.qual.Nullable

Authors
Michael Bartmann, Gavin King, Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
public static final PropertyAccessStrategyNoopImpl
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PropertyAccess
buildPropertyAccess(Class<?>
The Java type that contains the property; may be null for non-pojo cases.
containerJavaType
,
String
The property name
propertyName
,
boolean
Whether it is an error if we are unable to find a corresponding setter
setterRequired
)

Implements org.hibernate.property.access.spi.PropertyAccessStrategy.buildPropertyAccess.

Build a PropertyAccess for the indicated property
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final PropertyAccessStrategyNoopImpl INSTANCE

Singleton access

Constructor Detail

PropertyAccessStrategyNoopImplback to summary
public PropertyAccessStrategyNoopImpl()

Method Detail

buildPropertyAccessback to summary
public PropertyAccess buildPropertyAccess(Class<?> containerJavaType, String propertyName, boolean setterRequired)

Implements org.hibernate.property.access.spi.PropertyAccessStrategy.buildPropertyAccess.

Doc from org.hibernate.property.access.spi.PropertyAccessStrategy.buildPropertyAccess.

Build a PropertyAccess for the indicated property

Parameters
containerJavaType:Class<?>

The Java type that contains the property; may be null for non-pojo cases.

propertyName:String

The property name

setterRequired:boolean

Whether it is an error if we are unable to find a corresponding setter

Returns:PropertyAccess

The appropriate PropertyAccess

Annotations
@Override
org.hibernate.property.access.internal back to summary

private Class PropertyAccessStrategyNoopImpl.GetterImpl

extends Object
implements Getter
Class Inheritance
  • java.lang.Object
  • org.hibernate.property.access.internal.PropertyAccessStrategyNoopImpl.GetterImpl
All Implemented Interfaces
org.hibernate.property.access.spi.Getter, java.io.Serializable

Field Summary

Modifier and TypeField and Description
public static final PropertyAccessStrategyNoopImpl.GetterImpl
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public @Nullable Object
get(Object
The instance containing the property value to be retrieved.
owner
)

Implements org.hibernate.property.access.spi.Getter.get.

Get the property value from the given owner instance.
public @Nullable 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.hibernate.property.access.spi.Getter.getForInsert.

Get the property value from the given owner instance.
public @Nullable Member
getMember()

Implements org.hibernate.property.access.spi.Getter.getMember.

Retrieve the member to which this property maps.
public @Nullable Method
getMethod()

Implements org.hibernate.property.access.spi.Getter.getMethod.

Retrieve the getter-method.
public @Nullable String
getMethodName()

Implements org.hibernate.property.access.spi.Getter.getMethodName.

Retrieve the getter-method name.
public Type
getReturnType()

Implements org.hibernate.property.access.spi.Getter.getReturnType.

Retrieve the declared Java type
public Class<?>
getReturnTypeClass()

Implements org.hibernate.property.access.spi.Getter.getReturnTypeClass.

Retrieve the declared Java type class
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final PropertyAccessStrategyNoopImpl.GetterImpl INSTANCE

Singleton access

Constructor Detail

GetterImplback to summary
private GetterImpl()

Method Detail

getback to summary
public @Nullable Object get(Object owner)

Implements org.hibernate.property.access.spi.Getter.get.

Doc from org.hibernate.property.access.spi.Getter.get.

Get the property value from the given owner instance.

Parameters
owner:Object

The instance containing the property value to be retrieved.

Returns:@Nullable Object

The extracted value.

Annotations
@Override
getForInsertback to summary
public @Nullable Object getForInsert(Object owner, Map<K, V> mergeMap, SharedSessionContractImplementor session)

Implements org.hibernate.property.access.spi.Getter.getForInsert.

Doc from org.hibernate.property.access.spi.Getter.getForInsert.

Get the property value from the given owner instance.

Parameters
owner:Object

The instance containing the value to be retrieved.

mergeMap:Map<K, V>

a map of merged persistent instances to detached instances

session:SharedSessionContractImplementor

The session from which this request originated.

Returns:@Nullable Object

The extracted value.

Annotations
@Override
@SuppressWarnings:rawtypes
getMemberback to summary
public @Nullable Member getMember()

Implements org.hibernate.property.access.spi.Getter.getMember.

Doc from org.hibernate.property.access.spi.Getter.getMember.

Retrieve the member to which this property maps. This might be the field or it might be the getter method.

Optional operation (may return null)

Returns:@Nullable Member

The mapped member, or null.

Annotations
@Override
getMethodback to summary
public @Nullable Method getMethod()

Implements org.hibernate.property.access.spi.Getter.getMethod.

Doc from org.hibernate.property.access.spi.Getter.getMethod.

Retrieve the getter-method.

Optional operation (may return null)

Returns:@Nullable Method

The getter method, or null.

Annotations
@Override
getMethodNameback to summary
public @Nullable String getMethodName()

Implements org.hibernate.property.access.spi.Getter.getMethodName.

Doc from org.hibernate.property.access.spi.Getter.getMethodName.

Retrieve the getter-method name.

Optional operation (may return null)

Returns:@Nullable String

The name of the getter method, or null.

Annotations
@Override
getReturnTypeback to summary
public Type getReturnType()

Implements org.hibernate.property.access.spi.Getter.getReturnType.

Doc from org.hibernate.property.access.spi.Getter.getReturnType.

Retrieve the declared Java type

Returns:Type

The declared java type.

Annotations
@Override
getReturnTypeClassback to summary
public Class<?> getReturnTypeClass()

Implements org.hibernate.property.access.spi.Getter.getReturnTypeClass.

Doc from org.hibernate.property.access.spi.Getter.getReturnTypeClass.

Retrieve the declared Java type class

Returns:Class<?>

The declared java type class.

Annotations
@Override
org.hibernate.property.access.internal back to summary

private Class PropertyAccessStrategyNoopImpl.PropertyAccessNoopImpl

extends Object
implements PropertyAccess
Class Inheritance
  • java.lang.Object
  • org.hibernate.property.access.internal.PropertyAccessStrategyNoopImpl.PropertyAccessNoopImpl
All Implemented Interfaces
org.hibernate.property.access.spi.PropertyAccess

Field Summary

Modifier and TypeField and Description
public static final PropertyAccessStrategyNoopImpl.PropertyAccessNoopImpl
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Getter
getGetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getGetter.

Obtain the delegate for getting values of the persistent attribute.
public PropertyAccessStrategy
public Setter
getSetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getSetter.

Obtain the delegate for setting values of the persistent attribute.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final PropertyAccessStrategyNoopImpl.PropertyAccessNoopImpl INSTANCE

Singleton access

Constructor Detail

PropertyAccessNoopImplback to summary
private PropertyAccessNoopImpl()

Method Detail

getGetterback to summary
public Getter getGetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getGetter.

Doc from org.hibernate.property.access.spi.PropertyAccess.getGetter.

Obtain the delegate for getting values of the persistent attribute.

Returns:Getter

The property getter

Annotations
@Override
getPropertyAccessStrategyback to summary
public PropertyAccessStrategy getPropertyAccessStrategy()

Implements org.hibernate.property.access.spi.PropertyAccess.getPropertyAccessStrategy.

Doc from org.hibernate.property.access.spi.PropertyAccess.getPropertyAccessStrategy.

Access to the PropertyAccessStrategy that created this instance.

Returns:PropertyAccessStrategy

The PropertyAccessStrategy

Annotations
@Override
getSetterback to summary
public Setter getSetter()

Implements org.hibernate.property.access.spi.PropertyAccess.getSetter.

Doc from org.hibernate.property.access.spi.PropertyAccess.getSetter.

Obtain the delegate for setting values of the persistent attribute.

Returns:Setter

The property setter

Annotations
@Override
org.hibernate.property.access.internal back to summary

private Class PropertyAccessStrategyNoopImpl.SetterImpl

extends Object
implements Setter
Class Inheritance
  • java.lang.Object
  • org.hibernate.property.access.internal.PropertyAccessStrategyNoopImpl.SetterImpl
All Implemented Interfaces
org.hibernate.property.access.spi.Setter, java.io.Serializable

Field Summary

Modifier and TypeField and Description
public static final PropertyAccessStrategyNoopImpl.SetterImpl
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public @Nullable Method
getMethod()

Implements org.hibernate.property.access.spi.Setter.getMethod.

Optional operation (may return null)
public @Nullable String
getMethodName()

Implements org.hibernate.property.access.spi.Setter.getMethodName.

Optional operation (may return null)
public void
set(Object target, @Nullable Object value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final PropertyAccessStrategyNoopImpl.SetterImpl INSTANCE

Singleton access

Constructor Detail

SetterImplback to summary
private SetterImpl()

Method Detail

getMethodback to summary
public @Nullable Method getMethod()

Implements org.hibernate.property.access.spi.Setter.getMethod.

Doc from org.hibernate.property.access.spi.Setter.getMethod.

Optional operation (may return null)

Annotations
@Override
getMethodNameback to summary
public @Nullable String getMethodName()

Implements org.hibernate.property.access.spi.Setter.getMethodName.

Doc from org.hibernate.property.access.spi.Setter.getMethodName.

Optional operation (may return null)

Annotations
@Override
setback to summary
public void set(Object target, @Nullable Object value)
Annotations
@Override