Uses of Enum Class
org.springframework.data.relational.core.conversion.IdValueSource
Packages that use IdValueSource
-
Uses of IdValueSource in org.springframework.data.relational.core.conversion
Subclasses with type arguments of type IdValueSource in org.springframework.data.relational.core.conversionModifier and TypeClassDescriptionstatic final classRepresents a batch insert statement for a multiple entities that are not aggregate roots.static final classRepresents a batch insert statement for a multiple entities that are aggregate roots.enumEnumeration describing the source of a value for an id property.Methods in org.springframework.data.relational.core.conversion that return IdValueSourceModifier and TypeMethodDescriptionstatic <T> IdValueSourceIdValueSource.forInstance(Object instance, RelationalPersistentEntity<T> persistentEntity) Returns the appropriateIdValueSourcefor the instance:IdValueSource.NONEwhen the entity has no id property,IdValueSource.PROVIDEDwhen the value of the id property is not null and when it is a primitive type, not zero, andIdValueSource.GENERATEDotherwise.DbAction.Insert.idValueSource()Returns the value of theidValueSourcerecord component.DbAction.InsertRoot.idValueSource()DbAction.UpdateRoot.idValueSource()DbAction.WithEntity.idValueSource()static IdValueSourceReturns the enum constant of this class with the specified name.static IdValueSource[]IdValueSource.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in org.springframework.data.relational.core.conversion with parameters of type IdValueSourceModifierConstructorDescriptionInsert(T entity, PersistentPropertyPath<RelationalPersistentProperty> propertyPath, DbAction.WithEntity<?> dependingOn, Map<PersistentPropertyPath<RelationalPersistentProperty>, Object> qualifiers, IdValueSource idValueSource) Creates an instance of aInsertrecord class.InsertRoot(T entity, IdValueSource idValueSource)