public ProcessEngineException flushDbOperationException(List<DbOperation> operationsToFlush, DbOperation operation, Throwable cause) { String exceptionMessage = exceptionMessage( "004", "Exception while executing Database Operation '{}' with message '{}'. Flush summary: \n {}", operation.toString(), cause.getMessage(), buildStringFromList(operationsToFlush) ); return new ProcessEngineException(exceptionMessage, cause); }
public ProcessEngineException flushDbOperationException(List<DbOperation> operationsToFlush, DbOperation operation, Throwable cause) { String exceptionMessage = exceptionMessage( "004", "Exception while executing Database Operation '{}' with message '{}'. Flush summary: \n {}", operation.toString(), cause.getMessage(), buildStringFromList(operationsToFlush) ); return new ProcessEngineException(exceptionMessage, cause); }
public ProcessEngineException missingTableException(List<String> components) { return new ProcessEngineException(exceptionMessage( "056", "Tables are missing for the following components: {}", buildStringFromList(components) )); }
public ProcessEngineException wrongBatchResultsSizeException(List<DbOperation> operationsToFlush) { return new ProcessEngineException(exceptionMessage( "084", "Exception while executing Batch Database Operations: the size of Batch Result does not correspond to the number of flushed operations. Flush summary: \n {}", buildStringFromList(operationsToFlush) )); }
public void databaseFlushSummary(Collection<DbOperation> operations) { if(isDebugEnabled()) { logDebug("008", "Flush Summary: {}", buildStringFromList(operations)); } }
public void fetchDatabaseTables(String source, List<String> tableNames) { if(isDebugEnabled()) { logDebug( "011", "Retrieving process engine tables from: '{}'. Retrieved tables: {}", source, buildStringFromList(tableNames) ); } }
public void executingDDL(List<String> logLines) { if(isDebugEnabled()) { logDebug( "062", "Executing Schmema DDL {}", buildStringFromList(logLines)); } }
public void flushedCacheState(List<CachedDbEntity> cachedEntities) { if(isDebugEnabled()) { logDebug("006", "Cache state after flush: {}", buildStringFromList(cachedEntities)); } }
public void databaseFlushSummary(Collection<DbOperation> operations) { if(isDebugEnabled()) { logDebug("008", "Flush Summary: {}", buildStringFromList(operations)); } }
public void executingDDL(List<String> logLines) { if(isDebugEnabled()) { logDebug( "062", "Executing Schmema DDL {}", buildStringFromList(logLines)); } }
public void flushedCacheState(List<CachedDbEntity> cachedEntities) { if(isDebugEnabled()) { logDebug("006", "Cache state after flush: {}", buildStringFromList(cachedEntities)); } }
public void fetchDatabaseTables(String source, List<String> tableNames) { if(isDebugEnabled()) { logDebug( "011", "Retrieving process engine tables from: '{}'. Retrieved tables: {}", source, buildStringFromList(tableNames) ); } }
public ProcessEngineException missingTableException(List<String> components) { return new ProcessEngineException(exceptionMessage( "056", "Tables are missing for the following components: {}", buildStringFromList(components) )); }
public ProcessEngineException wrongBatchResultsSizeException(List<DbOperation> operationsToFlush) { return new ProcessEngineException(exceptionMessage( "084", "Exception while executing Batch Database Operations: the size of Batch Result does not correspond to the number of flushed operations. Flush summary: \n {}", buildStringFromList(operationsToFlush) )); }
public ProcessEngineException flushDbOperationsException(List<DbOperation> operationsToFlush, Throwable cause) { String message = cause.getMessage(); //collect real SQL exception messages in case of batch processing Throwable exCause = cause; do { if (exCause instanceof BatchExecutorException) { final List<SQLException> relatedSqlExceptions = ExceptionUtil.findRelatedSqlExceptions(exCause); StringBuilder sb = new StringBuilder(); for (SQLException sqlException : relatedSqlExceptions) { sb.append(sqlException).append("\n"); } message = message + "\n" + sb.toString(); } exCause = exCause.getCause(); } while (exCause != null); String exceptionMessage = exceptionMessage( "083", "Exception while executing Batch Database Operations with message '{}'. Flush summary: \n {}", message, buildStringFromList(operationsToFlush) ); return new ProcessEngineException(exceptionMessage, cause); }
public ProcessEngineException flushDbOperationsException(List<DbOperation> operationsToFlush, Throwable cause) { String message = cause.getMessage(); //collect real SQL exception messages in case of batch processing Throwable exCause = cause; do { if (exCause instanceof BatchExecutorException) { final List<SQLException> relatedSqlExceptions = ExceptionUtil.findRelatedSqlExceptions(exCause); StringBuilder sb = new StringBuilder(); for (SQLException sqlException : relatedSqlExceptions) { sb.append(sqlException).append("\n"); } message = message + "\n" + sb.toString(); } exCause = exCause.getCause(); } while (exCause != null); String exceptionMessage = exceptionMessage( "083", "Exception while executing Batch Database Operations with message '{}'. Flush summary: \n {}", message, buildStringFromList(operationsToFlush) ); return new ProcessEngineException(exceptionMessage, cause); }
public ProcessEngineException flushDbOperationException(List<DbOperation> operationsToFlush, DbOperation operation, Throwable cause) { String exceptionMessage = exceptionMessage( "004", "Exception while executing Database Operation '{}' with message '{}'. Flush summary: \n {}", operation.toString(), cause.getMessage(), buildStringFromList(operationsToFlush) ); return new ProcessEngineException(exceptionMessage, cause); }
public void fetchDatabaseTables(String source, List<String> tableNames) { if(isDebugEnabled()) { logDebug( "011", "Retrieving process engine tables from: '{}'. Retrieved tables: {}", source, buildStringFromList(tableNames) ); } }
public void flushedCacheState(List<CachedDbEntity> cachedEntities) { if(isDebugEnabled()) { logDebug("006", "Cache state after flush: {}", buildStringFromList(cachedEntities)); } }
public ProcessEngineException missingTableException(List<String> components) { return new ProcessEngineException(exceptionMessage( "056", "Tables are missing for the following components: {}", buildStringFromList(components) )); }