Package org.springframework.data.mapping
Interface InstanceCreatorMetadata<P extends PersistentProperty<P>>
- All Known Implementing Classes:
FactoryMethod
,PreferredConstructor
public interface InstanceCreatorMetadata<P extends PersistentProperty<P>>
Metadata describing a mechanism to create instances of persistent types.
- Since:
- 3.0
- Author:
- Mark Paluch, Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
default boolean
boolean
isCreatorParameter
(PersistentProperty<?> property) Check whether the givenPersistentProperty
is being used as creator parameter.default boolean
isParentParameter
(Parameter<?, P> parameter) Returns whether the givenParameter
is one referring to parent value (such as an enclosing class or a receiver parameter).
-
Method Details
-
isCreatorParameter
Check whether the givenPersistentProperty
is being used as creator parameter.- Parameters:
property
-- Returns:
-
isParentParameter
Returns whether the givenParameter
is one referring to parent value (such as an enclosing class or a receiver parameter).- Parameters:
parameter
-- Returns:
-
getParameterCount
default int getParameterCount()- Returns:
- the number of parameters.
-
getParameters
- Returns:
- the parameters used by this creator.
-
hasParameters
default boolean hasParameters()- Returns:
- whether the creator accepts
Parameter
s.
-