Class AbstractPojoModelsPropertyModel<T,I extends AbstractPojoModelsBootstrapIntrospector>
java.lang.Object
org.hibernate.search.mapper.pojo.model.models.spi.AbstractPojoModelsPropertyModel<T,I>
- All Implemented Interfaces:
PojoPropertyModel<T>
public abstract class AbstractPojoModelsPropertyModel<T,I extends AbstractPojoModelsBootstrapIntrospector>
extends Object
implements PojoPropertyModel<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List
<org.hibernate.models.spi.MemberDetails> The declared properties for this property in the holder type.protected final AbstractPojoModelsRawTypeModel
<?, I> protected final I
protected final String
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractPojoModelsPropertyModel
(I introspector, AbstractPojoModelsRawTypeModel<?, I> holderTypeModel, String name, List<org.hibernate.models.spi.MemberDetails> declaredProperties, 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 AbstractPojoModelsRawTypeModel<?,I extends AbstractPojoModelsBootstrapIntrospector> holderTypeModel -
name
-
declaredProperties
The declared properties 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
-
AbstractPojoModelsPropertyModel
-
-
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
-