Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.6.2)
E26229-03


oracle.as.scheduler.request
Class ImportExportResult

java.lang.Object
  extended by oracle.as.scheduler.request.ImportExportResult


public class ImportExportResult
extends java.lang.Object

Encapsulates the result of importing or exporting output files.

Since:
release specific (what release of product did this appear in)
Version:
$Header: ess/src/oracle/as/scheduler/request/ImportExportResult.java /main/1 2009/09/04 14:29:09 ddavison Exp $
Author:
ddavison

Nested Class Summary
static class ImportExportResult.ImportExportStatus
          Status of an import or export operation.

 

Constructor Summary
ImportExportResult(ImportExportResult.ImportExportStatus status, java.util.List<java.lang.String> successfulFiles, java.util.List<java.lang.String> failedFiles)
          Constructs a new object.
ImportExportResult(ImportExportResult.ImportExportStatus status, java.util.List<java.lang.String> successfulFiles, java.util.List<java.lang.String> failedFiles, java.lang.String problemPath)
          Constructs a new object.
ImportExportResult(ImportExportResult.ImportExportStatus status, java.util.List<java.lang.String> successfulFiles, java.util.List<java.lang.String> failedFiles, java.lang.Throwable error)
          Constructs a new object.

 

Method Summary
 java.lang.Throwable getError()
          Gets the error if the status is ImportExportStatus.Error.
 java.util.List<java.lang.String> getFailedFiles()
          Gets the list of filenames that were not imported or exported.
 java.lang.String getProblemPath()
          Gets the path that caused a problem if the status is ImportExportStatus.FileError.
 ImportExportResult.ImportExportStatus getStatus()
          Gets the status of the import or export operation.
 java.util.List<java.lang.String> getSuccessfulFiles()
          Gets the list of filenames that were successfully imported or exported.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ImportExportResult

public ImportExportResult(ImportExportResult.ImportExportStatus status,
                          java.util.List<java.lang.String> successfulFiles,
                          java.util.List<java.lang.String> failedFiles,
                          java.lang.Throwable error)
Constructs a new object.
Parameters:
status - result of the import or export operation.
successfulFiles - list of file names that were successfully imported or exported.
failedFiles - list of file names for which the import or export failed.
error - Error that occurred during import or export.

ImportExportResult

public ImportExportResult(ImportExportResult.ImportExportStatus status,
                          java.util.List<java.lang.String> successfulFiles,
                          java.util.List<java.lang.String> failedFiles,
                          java.lang.String problemPath)
Constructs a new object.
Parameters:
status - result of the import or export operation.
successfulFiles - list of file names that were successfully imported or exported.
failedFiles - list of file names for which the import or export failed.
problemPath - Path that was problematic during import or export.

ImportExportResult

public ImportExportResult(ImportExportResult.ImportExportStatus status,
                          java.util.List<java.lang.String> successfulFiles,
                          java.util.List<java.lang.String> failedFiles)
Constructs a new object.
Parameters:
status - result of the import or export operation.
successfulFiles - list of file names that were successfully imported or exported.
failedFiles - list of file names for which the import or export failed.

Method Detail

getStatus

public ImportExportResult.ImportExportStatus getStatus()
Gets the status of the import or export operation.
Returns:
Import/export status.

getError

public java.lang.Throwable getError()
Gets the error if the status is ImportExportStatus.Error.
Returns:
The error, or null if status is not ImportExportStatus.Error.

getProblemPath

public java.lang.String getProblemPath()
Gets the path that caused a problem if the status is ImportExportStatus.FileError.
Returns:
The problematic path, or null if status is not ImportExportStatus.FileError.

getSuccessfulFiles

public java.util.List<java.lang.String> getSuccessfulFiles()
Gets the list of filenames that were successfully imported or exported.
Returns:
List of filenames.

getFailedFiles

public java.util.List<java.lang.String> getFailedFiles()
Gets the list of filenames that were not imported or exported. The reason could be due to an error, or it could be that one file failed and the commit semantics required to stop the operation.
Returns:
List of filenames.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.6.2)
E26229-03


Copyright © 2008, 2012 Oracle. All rights reserved.