com.elasticpath.domain.dataimport.impl
Class ImportDataTypeCustomerAddressImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.dataimport.impl.AbstractImportDataTypeImpl
              extended by com.elasticpath.domain.dataimport.impl.ImportDataTypeCustomerAddressImpl
All Implemented Interfaces:
ImportDataType, EpDomain, Transient, java.io.Serializable

public class ImportDataTypeCustomerAddressImpl
extends AbstractImportDataTypeImpl

Defines fields and necessary information to import Customer.

See Also:
Serialized Form

Field Summary
static java.lang.String PREFIX_OF_FIELD_NAME
          A prefix used in product import field name.
static long serialVersionUID
          Serial version ID.
 
Fields inherited from interface com.elasticpath.domain.dataimport.ImportDataType
SEPARATOR
 
Constructor Summary
ImportDataTypeCustomerAddressImpl()
           
 
Method Summary
 void clearValueObjects(Entity entity)
          Clear the value objects of the given entity.
 ValueObject createValueObject()
          Create and return a new value object.
 java.lang.String getGuidFieldName()
          Return the field name for guid.
 java.lang.String getImportJobRunnerBeanName()
          Returns the import job runner bean name.
 java.lang.Object getMetaObject()
          Returns the meta object used to intialize the import data type.
 java.lang.String getName()
          Returns import data type name.
 void init(java.lang.Object object)
          Initialize the category import type.
 boolean isEntityImport()
          Returns true if allowing to create entity.
 boolean isValueObjectImport()
          Returns true if this import data type imports value object.
 void saveOrUpdate(Entity entity, ValueObject object)
          Add or update this CustomerAddress in the Customer object.
 
Methods inherited from class com.elasticpath.domain.dataimport.impl.AbstractImportDataTypeImpl
getImportField, getImportFields, getOptionalImportFields, getRequiredImportFields, getUtility
 
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.EpDomain
getElasticPath, setElasticPath
 

Field Detail

PREFIX_OF_FIELD_NAME

public static final java.lang.String PREFIX_OF_FIELD_NAME
A prefix used in product import field name.

See Also:
Constant Field Values

serialVersionUID

public static final long serialVersionUID
Serial version ID.

See Also:
Constant Field Values
Constructor Detail

ImportDataTypeCustomerAddressImpl

public ImportDataTypeCustomerAddressImpl()
Method Detail

clearValueObjects

public void clearValueObjects(Entity entity)
Clear the value objects of the given entity.

Specified by:
clearValueObjects in interface ImportDataType
Overrides:
clearValueObjects in class AbstractImportDataTypeImpl
Parameters:
entity - the entity

createValueObject

public ValueObject createValueObject()
Create and return a new value object.

Returns:
a new value object

getGuidFieldName

public java.lang.String getGuidFieldName()
Return the field name for guid. If it doesn't exist, return null.

Returns:
the field name for guid

getImportJobRunnerBeanName

public java.lang.String getImportJobRunnerBeanName()
Returns the import job runner bean name.

Returns:
the import job runner bean name.

getMetaObject

public java.lang.Object getMetaObject()
Returns the meta object used to intialize the import data type.

Returns:
the meta object used to intialize the import data type

getName

public java.lang.String getName()
Returns import data type name.

Returns:
import data type name.

init

public void init(java.lang.Object object)
Initialize the category import type.

Parameters:
object - not used

isEntityImport

public boolean isEntityImport()
Returns true if allowing to create entity.

Returns:
true if allowing to create entity

isValueObjectImport

public boolean isValueObjectImport()
Returns true if this import data type imports value object.

Returns:
true if this import data type imports value object

saveOrUpdate

public void saveOrUpdate(Entity entity,
                         ValueObject object)
Add or update this CustomerAddress in the Customer object.

Parameters:
entity - the entity
object - the value object