org.archiviststoolkit.mydomain
Class DomainImportController

java.lang.Object
  extended by org.archiviststoolkit.mydomain.DomainImportController

public class DomainImportController
extends java.lang.Object

Controls import behaviour into the model.


Field Summary
static int MODE_MERGE
          Merge the models.
 
Constructor Summary
DomainImportController()
          Constructor.
 
Method Summary
 void addLineToImportLog(java.lang.String line)
           
 java.lang.String constructFinalImportLogText()
           
 void domainImport(java.util.Collection<DomainObject> collection, java.awt.Component parent, InfiniteProgressPanel progressPanel)
          Import and duplicate.
 int getErrors()
           
 java.lang.String getImportLog()
           
 int getInsertedRecords()
          Get the total records inserted.
 int getTotalRecords()
          Get the total number of records processed.
 int getUpdatedRecords()
          Get the total records updated.
 void incrementErrorCount()
           
 void incrementTotalRecordCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_MERGE

public static final int MODE_MERGE
Merge the models.

See Also:
Constant Field Values
Constructor Detail

DomainImportController

public DomainImportController()
Constructor.

Method Detail

getTotalRecords

public int getTotalRecords()
Get the total number of records processed.

Returns:
the total number of records.

getInsertedRecords

public int getInsertedRecords()
Get the total records inserted.

Returns:
the total inserted record count.

getUpdatedRecords

public int getUpdatedRecords()
Get the total records updated.

Returns:
the number of updated records.

incrementErrorCount

public void incrementErrorCount()

incrementTotalRecordCount

public void incrementTotalRecordCount()

getImportLog

public java.lang.String getImportLog()

addLineToImportLog

public void addLineToImportLog(java.lang.String line)

constructFinalImportLogText

public java.lang.String constructFinalImportLogText()

domainImport

public void domainImport(java.util.Collection<DomainObject> collection,
                         java.awt.Component parent,
                         InfiniteProgressPanel progressPanel)
Import and duplicate.

Parameters:
collection - the collection to inject into the db

getErrors

public int getErrors()