Class PersistenceUtils
- java.lang.Object
-
- de.hybris.platform.util.persistence.PersistenceUtils
-
public class PersistenceUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPERSISTENCE_LEGACY_MODE
-
Constructor Summary
Constructors Constructor Description PersistenceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TdoWithChangedPersistenceLegacyMode(boolean isLegacyMode, java.util.function.Supplier<T> supplier)static <T> TdoWithLegacyPersistence(java.util.function.Supplier<T> supplier)static <T> TdoWithSLDPersistence(java.util.function.Supplier<T> supplier)static booleanisPersistenceLagacyModeEnabledInConfig()static booleanisPersistenceLegacyModeEnabled()
-
-
-
Field Detail
-
PERSISTENCE_LEGACY_MODE
public static final java.lang.String PERSISTENCE_LEGACY_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doWithSLDPersistence
public static <T> T doWithSLDPersistence(java.util.function.Supplier<T> supplier)
-
doWithLegacyPersistence
public static <T> T doWithLegacyPersistence(java.util.function.Supplier<T> supplier)
-
doWithChangedPersistenceLegacyMode
public static <T> T doWithChangedPersistenceLegacyMode(boolean isLegacyMode, java.util.function.Supplier<T> supplier)
-
isPersistenceLegacyModeEnabled
public static boolean isPersistenceLegacyModeEnabled()
-
isPersistenceLagacyModeEnabledInConfig
public static boolean isPersistenceLagacyModeEnabledInConfig()
-
-