Class AbstractPojoHCAnnPropertyModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
java.lang.Object
org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnPropertyModel<T,I>
- All Implemented Interfaces:
PojoPropertyModel<T>
public abstract class AbstractPojoHCAnnPropertyModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
extends Object
implements PojoPropertyModel<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.hibernate.annotations.common.reflection.XProperty>
The declared XProperties for this property in the holder type.protected final AbstractPojoHCAnnRawTypeModel<?,
I> protected final I
protected final String
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractPojoHCAnnPropertyModel
(I introspector, AbstractPojoHCAnnRawTypeModel<?, I> holderTypeModel, String name, List<org.hibernate.annotations.common.reflection.XProperty> declaredXProperties, List<Member> members) -
Method Summary
Modifier and TypeMethodDescriptionfinal Stream<Annotation>
protected abstract ValueReadHandle<T>
createHandle
(Member member) final ValueReadHandle<T>
handle()
protected final Member
member()
final String
name()
final PojoTypeModel<T>
-
Field Details
-
introspector
-
holderTypeModel
protected final AbstractPojoHCAnnRawTypeModel<?,I extends AbstractPojoHCAnnBootstrapIntrospector> holderTypeModel -
name
-
declaredXProperties
The declared XProperties for this property in the holder type. May be empty if this property is declared in a supertype of the holder type and not overridden in the holder type.
-
-
Constructor Details
-
AbstractPojoHCAnnPropertyModel
-
-
Method Details
-
name
- Specified by:
name
in interfacePojoPropertyModel<T>
- Returns:
- The name of this property, without the
get
/set
prefixes of getters/setters.
-
annotations
- Specified by:
annotations
in interfacePojoPropertyModel<T>
- Returns:
- All annotations on this property.
-
typeModel
- Specified by:
typeModel
in interfacePojoPropertyModel<T>
- Returns:
- A model of this property's type. Implementations may decide to implement their own,
but could also simply use
GenericContextAwarePojoGenericTypeModel
.
-
handle
- Specified by:
handle
in interfacePojoPropertyModel<T>
- Returns:
- A handle to read the value of this property on a instance of its hosting type.
-
member
-
createHandle
protected abstract ValueReadHandle<T> createHandle(Member member) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-