com.elasticpath.domain.dataimport.impl
Class ImportJobImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractEntityImpl
              extended by com.elasticpath.domain.dataimport.impl.ImportJobImpl
All Implemented Interfaces:
ImportJob, Entity, EpDomain, Persistence, java.io.Serializable

public class ImportJobImpl
extends AbstractEntityImpl
implements ImportJob

A default implementation of ImportJob.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
ImportJobImpl()
           
 
Method Summary
 CmUser getCmUser()
          Returns the cm user whom started the import job.
 char getCsvFileColDelimeter()
          Returns the import csv data file column delimeter.
 java.lang.String getCsvFileName()
          Returns the import csv data file name.
 char getCsvFileTextQualifier()
          Returns the import csv data file text qualifier.
 java.lang.String getImportDataTypeName()
          Returns the import data type.
 ImportType getImportType()
          Returns the import type.
 java.util.Map getMappings()
          Returns the mappings between import data type fields and csv file columns.
 int getMaxAllowErrors()
          Returns the maximum allowable errors before teminating import.
 java.lang.String getName()
          Returns the name of import job.
 int getTotalRows()
          Returns the total number of rows to import.
 void setCmUser(CmUser cmUser)
          Set the cm user whom started the import job.
 void setCsvFileColDelimeter(char colDelimeter)
          Set the csv file column delimeter.
 void setCsvFileName(java.lang.String csvFileName)
          Set the csv file name.
 void setCsvFileTextQualifier(char textQualifier)
          Set the csv file text qualifier.
 void setDefaultValues()
          Set default values for those fields need default values.
 void setImportDataTypeName(java.lang.String importDataTypeName)
          Set the import data type name.
 void setImportType(ImportType importType)
          Set the import type.
 void setMappings(java.util.Map mappings)
          Set the mappings between import data type fields and csv file columns.
 void setMaxAllowErrors(int maxAllowErrors)
          Set the maximum allowable errors before teminating import.
 void setName(java.lang.String name)
          Set the name of import job.
 void setTotalRows(int totalRows)
          Set total number of rows.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl
convertAttributeGroupAttributes, getGuid, setGuid
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Entity
getGuid, setGuid
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ImportJobImpl

public ImportJobImpl()
Method Detail

getCmUser

public CmUser getCmUser()
Returns the cm user whom started the import job.

Specified by:
getCmUser in interface ImportJob
Returns:
the cmUser of the import job.

getCsvFileColDelimeter

public char getCsvFileColDelimeter()
Returns the import csv data file column delimeter.

Specified by:
getCsvFileColDelimeter in interface ImportJob
Returns:
the import data file column delimeter.

getCsvFileName

public java.lang.String getCsvFileName()
Returns the import csv data file name.

Specified by:
getCsvFileName in interface ImportJob
Returns:
the import data file name.

getCsvFileTextQualifier

public char getCsvFileTextQualifier()
Returns the import csv data file text qualifier.

Specified by:
getCsvFileTextQualifier in interface ImportJob
Returns:
the import data file text qualifier.

getImportDataTypeName

public java.lang.String getImportDataTypeName()
Returns the import data type.

Specified by:
getImportDataTypeName in interface ImportJob
Returns:
the import data type.

getImportType

public ImportType getImportType()
Returns the import type.

Specified by:
getImportType in interface ImportJob
Returns:
the import type

getMappings

public java.util.Map getMappings()
Returns the mappings between import data type fields and csv file columns. Import data type field name will be the key and the csv file column number will be the value.

Specified by:
getMappings in interface ImportJob
Returns:
the mappings between import data type fields and csv file columns

getMaxAllowErrors

public int getMaxAllowErrors()
Returns the maximum allowable errors before teminating import.

Specified by:
getMaxAllowErrors in interface ImportJob
Returns:
the maximum allowable errors before teminate import

getName

public java.lang.String getName()
Returns the name of import job.

Specified by:
getName in interface ImportJob
Returns:
the name of the import job.

getTotalRows

public int getTotalRows()
Returns the total number of rows to import.

Specified by:
getTotalRows in interface ImportJob
Returns:
the total number of rows to import

setCmUser

public void setCmUser(CmUser cmUser)
Set the cm user whom started the import job.

Specified by:
setCmUser in interface ImportJob
Parameters:
cmUser - the cm user to set

setCsvFileColDelimeter

public void setCsvFileColDelimeter(char colDelimeter)
Set the csv file column delimeter.

Specified by:
setCsvFileColDelimeter in interface ImportJob
Parameters:
colDelimeter - the csv file column delimeter

setCsvFileName

public void setCsvFileName(java.lang.String csvFileName)
Set the csv file name.

Specified by:
setCsvFileName in interface ImportJob
Parameters:
csvFileName - the csv file name

setCsvFileTextQualifier

public void setCsvFileTextQualifier(char textQualifier)
Set the csv file text qualifier.

Specified by:
setCsvFileTextQualifier in interface ImportJob
Parameters:
textQualifier - the text qualifier

setDefaultValues

public void setDefaultValues()
Set default values for those fields need default values.

Specified by:
setDefaultValues in interface Persistence
Overrides:
setDefaultValues in class AbstractEntityImpl

setImportDataTypeName

public void setImportDataTypeName(java.lang.String importDataTypeName)
Set the import data type name.

Specified by:
setImportDataTypeName in interface ImportJob
Parameters:
importDataTypeName - the import data type name

setImportType

public void setImportType(ImportType importType)
Set the import type.

Specified by:
setImportType in interface ImportJob
Parameters:
importType - the import type to set.

setMappings

public void setMappings(java.util.Map mappings)
Set the mappings between import data type fields and csv file columns. Import data type field name will be the key and the csv file column number will be the value.

Specified by:
setMappings in interface ImportJob
Parameters:
mappings - the mappings to set

setMaxAllowErrors

public void setMaxAllowErrors(int maxAllowErrors)
Set the maximum allowable errors before teminating import.

Specified by:
setMaxAllowErrors in interface ImportJob
Parameters:
maxAllowErrors - the maximum allowable errors

setName

public void setName(java.lang.String name)
Set the name of import job.

Specified by:
setName in interface ImportJob
Parameters:
name - the name to set

setTotalRows

public void setTotalRows(int totalRows)
Set total number of rows.

Specified by:
setTotalRows in interface ImportJob
Parameters:
totalRows - the total number of rows