Class DbRequestHelper


  • public class DbRequestHelper
    extends java.lang.Object
    DbRequest Helper common for Single and Multiple
    • Field Detail

      • CONSISTENCY_ERROR_THE_DOCUMENT_GUID_S_IN_ES_IS_NOT_IN_MONGO_DB_ANYMORE_TENANT_S_REQUEST_ID_S

        public static final java.lang.String CONSISTENCY_ERROR_THE_DOCUMENT_GUID_S_IN_ES_IS_NOT_IN_MONGO_DB_ANYMORE_TENANT_S_REQUEST_ID_S
        See Also:
        Constant Field Values
    • Method Detail

      • isDuplicateKeyError

        public static boolean isDuplicateKeyError​(java.lang.Exception e)
        Helper to detect if document already exists so update needed instead of insert
        Returns:
        true if an insert that should be an Update, else False