Module dev.metaschema.core
Class AbstractKeyConstraintBuilder<T extends AbstractKeyConstraintBuilder<T,R>,R extends IKeyConstraint>
java.lang.Object
dev.metaschema.core.model.constraint.AbstractConstraintBuilder<T,R>
dev.metaschema.core.model.constraint.AbstractConfigurableMessageConstraintBuilder<T,R>
dev.metaschema.core.model.constraint.AbstractKeyConstraintBuilder<T,R>
- Type Parameters:
T- the Java type of the implementing builderR- the Java type of the resulting built object
- Direct Known Subclasses:
IIndexConstraint.Builder,IIndexHasKeyConstraint.Builder,IUniqueConstraint.Builder
public abstract class AbstractKeyConstraintBuilder<T extends AbstractKeyConstraintBuilder<T,R>,R extends IKeyConstraint>
extends AbstractConfigurableMessageConstraintBuilder<T,R>
Provides builder methods for the core data elements of an
IConstraint
that supports a custom message.- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.metaschema.core.model.constraint.AbstractConfigurableMessageConstraintBuilder
getMessage, messageMethods inherited from class dev.metaschema.core.model.constraint.AbstractConstraintBuilder
build, description, formalName, getDescription, getFormalName, getId, getLevel, getProperties, getRemarks, getSource, getTarget, getThis, identifier, level, newInstance, properties, property, property, remarks, source, target
-
Constructor Details
-
AbstractKeyConstraintBuilder
public AbstractKeyConstraintBuilder()
-
-
Method Details
-
keyField
Add a key field to the list of key fields.- Parameters:
keyField- the key field to add- Returns:
- this builder
-
getKeyFields
Get the list of key fields set on this builder.- Returns:
- the list of key fields
-
validate
protected void validate()Description copied from class:AbstractConstraintBuilderValidate the values provided to the builder.- Overrides:
validatein classAbstractConstraintBuilder<T extends AbstractKeyConstraintBuilder<T,R>, R extends IKeyConstraint>
-