Class AbstractPojoRawTypeModel<T,I extends PojoBootstrapIntrospector>
java.lang.Object
org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel<T,I>
- All Implemented Interfaces:
MappableTypeModel,PojoRawTypeModel<T>,PojoTypeModel<T>
- Direct Known Subclasses:
AbstractPojoHCAnnRawTypeModel
public abstract class AbstractPojoRawTypeModel<T,I extends PojoBootstrapIntrospector>
extends Object
implements PojoRawTypeModel<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPojoRawTypeModel(I introspector, PojoRawTypeIdentifier<T> typeIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionPojoTypeModel<? extends T>cast(PojoTypeModel<?> other) final PojoCaster<T>caster()<U> Optional<PojoTypeModel<? extends U>>final PojoConstructorModel<T>constructor(Class<?>... parameterTypes) protected abstract List<PojoConstructorModel<T>>protected abstract PojoPropertyModel<?>createPropertyModel(String propertyName) final Collection<PojoPropertyModel<?>>protected PojoTypeModel<? extends T>doCast(PojoTypeModel<?> other) final booleanfinal inthashCode()final PojoConstructorModel<T>final Stringname()final PojoPropertyModel<?>final StringtoString()final PojoRawTypeIdentifier<T>Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.mapper.model.spi.MappableTypeModel
isAbstract, isSubTypeOfMethods inherited from interface org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeModel
annotations, ascendingSuperTypes, descendingSuperTypes, rawTypeMethods inherited from interface org.hibernate.search.mapper.pojo.model.spi.PojoTypeModel
arrayElementType, typeArgument
-
Field Details
-
introspector
-
typeIdentifier
-
-
Constructor Details
-
AbstractPojoRawTypeModel
-
-
Method Details
-
equals
- Specified by:
equalsin interfaceMappableTypeModel- Specified by:
equalsin interfacePojoTypeModel<T>- Overrides:
equalsin classObject- Returns:
trueifobjis aPojoTypeModelreferencing the exact same type with the exact same exposed metadata.
-
hashCode
public final int hashCode()- Specified by:
hashCodein interfaceMappableTypeModel- Specified by:
hashCodein interfacePojoTypeModel<T>- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceMappableTypeModel- Specified by:
toStringin interfacePojoTypeModel<T>- Overrides:
toStringin classObject- Returns:
- A human-readable description of this type.
-
typeIdentifier
- Specified by:
typeIdentifierin interfacePojoRawTypeModel<T>- Returns:
- The identifier for this type.
-
name
- Specified by:
namein interfaceMappableTypeModel- Specified by:
namein interfacePojoTypeModel<T>- Returns:
- A human-readable name for this type.
-
mainConstructor
- Specified by:
mainConstructorin interfacePojoRawTypeModel<T>- Returns:
- The main constructor of this type. The main constructor only exists if this type defines a single constructor.
-
constructor
- Specified by:
constructorin interfacePojoRawTypeModel<T>- Parameters:
parameterTypes- The type of parameters to the returned constructor.- Returns:
- The constructor of this type whose parameters have the given
parameterTypes.
-
declaredConstructors
- Specified by:
declaredConstructorsin interfacePojoRawTypeModel<T>- Returns:
- All accessible constructors of this type.
-
createDeclaredConstructors
-
property
- Specified by:
propertyin interfacePojoTypeModel<T>- Parameters:
propertyName- The name of apropertyin this type.- Returns:
- A representation of the property with the given name.
-
declaredProperties
- Specified by:
declaredPropertiesin interfacePojoRawTypeModel<T>- Returns:
- All declared properties of this type.
-
cast
- Specified by:
castin interfacePojoRawTypeModel<T>- Parameters:
other- The type to cast to this type.- Returns:
- A new type model, representing the given type cast to this type.
If casting is not possible, returns
this. If casting is possible, the returned type model will retain as much contextual type information as possible (type arguments, ...), so castingList<Integer>toCollectionfor example would returnCollection<Integer>.
-
doCast
-
caster
- Specified by:
casterin interfacePojoRawTypeModel<T>- Returns:
- A
PojoCastertargeting this type.
-
castTo
- Specified by:
castToin interfacePojoTypeModel<T>- Type Parameters:
U- The type to cast to.- Parameters:
target- The type to cast to.- Returns:
- A new type model, representing the current type cast to the given type,
or
Optional.empty()if casting is not supported. The type model will retain as much contextual type information as possible (type arguments, ...), so castingList<Integer>toCollectionfor example would returnCollection<Integer>.
-
declaredPropertyNames
-
createPropertyModel
-