Class HibernateOrmDynamicMapRawTypeModel
java.lang.Object
org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
org.hibernate.search.mapper.orm.model.impl.HibernateOrmDynamicMapRawTypeModel
- All Implemented Interfaces:
MappableTypeModel,PojoRawTypeModel<Map>,PojoTypeModel<Map>
public class HibernateOrmDynamicMapRawTypeModel
extends AbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
Field Summary
Fields inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
introspector, typeIdentifier -
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends PojoTypeModel<?>>Stream<PojoRawTypeModel<? super Map>>protected List<PojoConstructorModel<Map>>protected org.hibernate.search.mapper.orm.model.impl.HibernateOrmDynamicMapPropertyModel<?>createPropertyModel(String propertyName) Stream<PojoRawTypeModel<? super Map>>protected PojoTypeModel<? extends Map>doCast(PojoTypeModel<?> other) final booleanbooleanisSubTypeOf(MappableTypeModel superTypeCandidate) Optional<? extends PojoTypeModel<?>>typeArgument(Class<?> rawSuperType, int typeParameterIndex) Methods inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
cast, caster, castTo, constructor, declaredConstructors, declaredProperties, equals, hashCode, mainConstructor, name, property, toString, typeIdentifierMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeModel
rawType
-
Method Details
-
isAbstract
public final boolean isAbstract()- Returns:
trueif this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).falseotherwise.
-
isSubTypeOf
- Parameters:
superTypeCandidate- Another type that should be assessed as a supertype.- Returns:
trueif this type is a subtype ofsuperTypeCandidate, i.e. ifsuperTypeCandidateis mentioned inMappableTypeModel.ascendingSuperTypes().falseotherwise.
-
ascendingSuperTypes
- Returns:
- The supertypes of the current type, in ascending order.
-
descendingSuperTypes
- Returns:
- The supertypes of the current type, in descending order.
-
typeArgument
public Optional<? extends PojoTypeModel<?>> typeArgument(Class<?> rawSuperType, int typeParameterIndex) - Parameters:
rawSuperType- The supertype to resolve type parameters fortypeParameterIndex- The index of the type parameter to resolve- Returns:
- The model for the type argument for the type parameter defined in
rawSuperTypeat indextypeParameterIndex, or an empty optional if the current type does not extendrawSuperType. Implementations may decide to return a model of the raw type argument, or to retain generics information.
-
arrayElementType
- Returns:
- The model for the array element type, or an empty optional if the current type is not an array type. Implementations may decide to return a model of the raw array element type, or to retain generics information.
-
annotations
- Returns:
- All annotations on this specific type (non-inherited annotations from supertype are excluded).
-
createDeclaredConstructors
- Specified by:
createDeclaredConstructorsin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
doCast
- Overrides:
doCastin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
declaredPropertyNames
- Specified by:
declaredPropertyNamesin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-
createPropertyModel
protected org.hibernate.search.mapper.orm.model.impl.HibernateOrmDynamicMapPropertyModel<?> createPropertyModel(String propertyName) - Specified by:
createPropertyModelin classAbstractPojoRawTypeModel<Map,HibernateOrmBootstrapIntrospector>
-