Package io.micronaut.data.model
Class PersistentEntityUtils
- java.lang.Object
-
- io.micronaut.data.model.PersistentEntityUtils
-
@Internal public final class PersistentEntityUtils extends java.lang.Object
Persistent entity utils.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
traversePersistentProperties(PersistentEntity persistentEntity, boolean includeIdentity, boolean includeVersion, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumer)
Traverses properties that should be persisted.static void
traversePersistentProperties(PersistentEntity persistentEntity, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumer)
Traverses properties that should be persisted.static void
traversePersistentProperties(PersistentProperty property, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumer)
Traverses properties that should be persisted.static void
traversePersistentProperties(java.util.List<Association> associations, PersistentProperty property, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumerProperty)
-
-
-
Method Detail
-
traversePersistentProperties
public static void traversePersistentProperties(PersistentProperty property, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumer)
Traverses properties that should be persisted.- Parameters:
property
- The property to start traversing fromconsumer
- The function to invoke on every property
-
traversePersistentProperties
public static void traversePersistentProperties(PersistentEntity persistentEntity, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumer)
Traverses properties that should be persisted.- Parameters:
persistentEntity
- The persistent entityconsumer
- The function to invoke on every property
-
traversePersistentProperties
public static void traversePersistentProperties(PersistentEntity persistentEntity, boolean includeIdentity, boolean includeVersion, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumer)
Traverses properties that should be persisted.- Parameters:
persistentEntity
- The persistent entityincludeIdentity
- Should be identifier includedincludeVersion
- Should be version includedconsumer
- The function to invoke on every property
-
traversePersistentProperties
public static void traversePersistentProperties(java.util.List<Association> associations, PersistentProperty property, java.util.function.BiConsumer<java.util.List<Association>,PersistentProperty> consumerProperty)
-
-