| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ErrorPolicy
An ErrorPolicy defines the way in which a Job handles errors encountered when processing files for the Repository Loader.
For each exception encountered by the Repository Loader the configured ErrorPolicy components will be called in a specific order and under specific circumstances.
checkIsExceptionFatal() method. If this method returns true the job will
 stop processing immediately. 
 checkRequiresNewTransaction.
 If this returns false the RL will continue to process the current Batch using the existing 
 transaction.
 If this returns true the RL will end the current transaction and batch and create a new 
 transaction and batch and continue processing the job starting with the next file in the job.
 When the RL goes to end a transaction for a Batch is calls the ErrorPolicy component's 
 checkEndTransactionWithBatchState() method to determine if it should use the state
 of the Job or the state of the Batch to decide how to end the transaction. 
 
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| Method Summary | |
|---|---|
|  boolean | checkEndTransactionWithBatchState()Returns true if transaction demarcations should be ended using the state of the Job's current Batch. | 
|  boolean | checkIsExceptionFatal(java.lang.Throwable pException)Returns true if the provided exception should terminate processing of a job. | 
|  boolean | checkRequiresNewTransaction(java.lang.Throwable pException)Returns true if the provided exception requires a new transaction in order for the job to reasonably continue. | 
|  ApplicationLogging | getApplicationLogging()Returns the optional component handling logging functions | 
|  void | setApplicationLogging(ApplicationLogging pApplicationLogging)Sets the optional component handling logging functions | 
| Field Detail | 
|---|
static final java.lang.String CLASS_VERSION
| Method Detail | 
|---|
void setApplicationLogging(ApplicationLogging pApplicationLogging)
ApplicationLogging getApplicationLogging()
boolean checkIsExceptionFatal(java.lang.Throwable pException)
boolean checkRequiresNewTransaction(java.lang.Throwable pException)
boolean checkEndTransactionWithBatchState()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||