Class GeneratedValuesImpl
- java.lang.Object
-
- org.hibernate.generator.values.internal.GeneratedValuesImpl
-
- All Implemented Interfaces:
GeneratedValues
public class GeneratedValuesImpl extends Object implements GeneratedValues
Standard implementation forGeneratedValuesusingIdentityHashMap.
-
-
Constructor Summary
Constructors Constructor Description GeneratedValuesImpl(List<? extends ModelPart> generatedProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGeneratedValue(ModelPart modelPart, Object value)Register a generated value for the correspondingModelPartObjectgetGeneratedValue(ModelPart modelPart)Retrieve a generated value for the requestedModelPart.List<Object>getGeneratedValues(List<? extends ModelPart> modelParts)Retrieves a list of generated values corresponding to the list of requestedModelParts.
-
-
-
Method Detail
-
addGeneratedValue
public void addGeneratedValue(ModelPart modelPart, Object value)
Description copied from interface:GeneratedValuesRegister a generated value for the correspondingModelPart- Specified by:
addGeneratedValuein interfaceGeneratedValues
-
getGeneratedValue
public Object getGeneratedValue(ModelPart modelPart)
Description copied from interface:GeneratedValuesRetrieve a generated value for the requestedModelPart.- Specified by:
getGeneratedValuein interfaceGeneratedValues
-
getGeneratedValues
public List<Object> getGeneratedValues(List<? extends ModelPart> modelParts)
Description copied from interface:GeneratedValuesRetrieves a list of generated values corresponding to the list of requestedModelParts. Ensures the order of the values in the returned list corresponds to the input properties.- Specified by:
getGeneratedValuesin interfaceGeneratedValues
-
-