Module io.github.mmm.entity.bean
Package io.github.mmm.entity.property.id
Class IdPropertyBuilder<E>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<Id<E>,IdProperty<E>,ValidatorBuilderObject<Id<E>,IdPropertyBuilder<E>>,IdPropertyBuilder<E>>
-
- io.github.mmm.entity.property.id.IdPropertyBuilder<E>
-
- Type Parameters:
E- the generic type of theentity.
public final class IdPropertyBuilder<E> extends PropertyBuilder<Id<E>,IdProperty<E>,ValidatorBuilderObject<Id<E>,IdPropertyBuilder<E>>,IdPropertyBuilder<E>>
- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, value
-
-
Constructor Summary
Constructors Constructor Description IdPropertyBuilder()The constructor.IdPropertyBuilder(IdFactory<?,?,?> idFactory, Class<E> entityClass)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IdProperty<E>build(String name, PropertyMetadata<Id<E>> metadata)protected ValidatorBuilderObject<Id<E>,IdPropertyBuilder<E>>createValidatorBuilder()IdPropertyBuilder<E>entityClass(Class<E> entityType)IdPropertyBuilder<E>idFactory(IdFactory<?,?,?> factory)-
Methods inherited from class io.github.mmm.property.builder.PropertyBuilder
asList, asMap, asMap, asSet, build, build, builder, factory, metadata, metadataFactory, registry, self, value, valueExpression, withValidator
-
-
-
-
Method Detail
-
idFactory
public IdPropertyBuilder<E> idFactory(IdFactory<?,?,?> factory)
- Parameters:
factory- theIdFactoryto marshal data.- Returns:
- this builder itself (
this) for fluent API calls.
-
entityClass
public IdPropertyBuilder<E> entityClass(Class<E> entityType)
- Parameters:
entityType- theClassreflecting the entity.- Returns:
- this builder itself (
this) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderObject<Id<E>,IdPropertyBuilder<E>> createValidatorBuilder()
- Specified by:
createValidatorBuilderin classPropertyBuilder<Id<E>,IdProperty<E>,ValidatorBuilderObject<Id<E>,IdPropertyBuilder<E>>,IdPropertyBuilder<E>>- Returns:
- the
ObjectValidatorBuildercorresponding to this type of builder.
-
build
protected IdProperty<E> build(String name, PropertyMetadata<Id<E>> metadata)
- Specified by:
buildin classPropertyBuilder<Id<E>,IdProperty<E>,ValidatorBuilderObject<Id<E>,IdPropertyBuilder<E>>,IdPropertyBuilder<E>>- Parameters:
name- theproperty nameof thePropertyto build.metadata- thePropertyMetadata.- Returns:
- the
Propertytobuild.
-
-