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 Details

    • isCreatorParameter

      boolean isCreatorParameter(PersistentProperty<?> property)
      Check whether the given PersistentProperty is being used as creator parameter.
      Parameters:
      property -
      Returns:
    • isParentParameter

      default boolean isParentParameter(Parameter<?,P> parameter)
      Returns whether the given Parameter 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

      List<Parameter<Object,P>> getParameters()
      Returns:
      the parameters used by this creator.
    • hasParameters

      default boolean hasParameters()
      Returns:
      whether the creator accepts Parameters.