Class HJMPUtils

java.lang.Object
de.hybris.platform.persistence.hjmp.HJMPUtils

public class HJMPUtils extends Object
  • Field Details

  • Constructor Details

    • HJMPUtils

      public HJMPUtils()
  • Method Details

    • getPKFromHJMPKey

      public static String getPKFromHJMPKey(Object[] key)
    • isConcurrentModificationException

      public static boolean isConcurrentModificationException(Throwable e)
    • isOptimisticLockingEnabledForType

      public static boolean isOptimisticLockingEnabledForType(PK typePkString)
    • isOptimisticLockingEnabledForType

      public static boolean isOptimisticLockingEnabledForType(String typeCode)
    • enableOptimisticLocking

      public static void enableOptimisticLocking()
    • disableOptimisticLocking

      public static void disableOptimisticLocking()
    • isOptimisticLockingEnabled

      public static boolean isOptimisticLockingEnabled()
    • clearOptimisticLockingSetting

      public static void clearOptimisticLockingSetting()
    • setBlacklistedTypesForOptimisticLocking

      public static void setBlacklistedTypesForOptimisticLocking(String types)
    • getBeanNameFromHJMPKey

      public static String getBeanNameFromHJMPKey(Object[] key)
    • registerVersionsForPks

      public static void registerVersionsForPks(Map<PK,Long> mapping)
    • clearVersionsForPks

      public static void clearVersionsForPks()
    • isFromServiceLayer

      public static boolean isFromServiceLayer(PK pk)
    • getVersionForPk

      public static Long getVersionForPk(PK pk)
    • updateVersionForPk

      public static void updateVersionForPk(PK pk, Long version)
    • tryToClose

      public static void tryToClose(Connection connection, Statement statement, Statement statement2, ResultSet resultSet)
    • tryToClose

      public static void tryToClose(Connection connection, Statement statement, ResultSet resultSet)
    • tryToClose

      public static void tryToClose(Connection connection, Statement statement, Statement statement2)
    • tryToClose

      public static void tryToClose(Connection connection, Statement statement)
    • tryToClose

      public static void tryToClose(Statement statement, ResultSet resultSet)
    • tryToClose

      public static void tryToClose(Statement statement)
    • isPKLookupRetryEnabled

      public static boolean isPKLookupRetryEnabled()
    • isPKLookupRetryEnabled

      public static boolean isPKLookupRetryEnabled(ConfigIntf cfg)
    • enablePKLookupRetry

      public static Object enablePKLookupRetry(long timeout, long interval)
    • enablePKLookupRetry

      public static Object enablePKLookupRetry(ConfigIntf cfg, long timeout, long interval)
    • disablePKLookupRetry

      public static Object disablePKLookupRetry()
    • disablePKLookupRetry

      public static Object disablePKLookupRetry(ConfigIntf cfg)
    • restorPKLookupRetry

      public static void restorPKLookupRetry(Object token)
    • restorPKLookupRetry

      public static void restorPKLookupRetry(ConfigIntf cfg, Object token)
    • retryMissingPKLookup

      public static ResultSet retryMissingPKLookup(ResultSet previousResultSet, PreparedStatement pstmt, ConfigIntf cfg) throws SQLException
      Throws:
      SQLException
    • retryMissingPKLookup

      public static ResultSet retryMissingPKLookup(PreparedStatement pstmt, long timeout, long delay) throws SQLException
      Throws:
      SQLException
    • isDuplicateKeyExceptionOnTypeCode

      public static boolean isDuplicateKeyExceptionOnTypeCode(Exception e, int typeCode)