com.elasticpath.domain.dataimport.impl
Class ImportDataTypeProductPriceImpl

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.ImportDataTypeProductPriceImpl
All Implemented Interfaces:
ImportDataType, EpDomain, Transient, java.io.Serializable

public class ImportDataTypeProductPriceImpl
extends AbstractImportDataTypeImpl

Defines fields and necessary information to import ProductPrice.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version ID.
 
Fields inherited from interface com.elasticpath.domain.dataimport.ImportDataType
SEPARATOR
 
Constructor Summary
ImportDataTypeProductPriceImpl()
           
 
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 dummyObject)
          Initialize the product price 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 the given value object to the given entity.
 
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

serialVersionUID

public static final long serialVersionUID
Serial version ID.

See Also:
Constant Field Values
Constructor Detail

ImportDataTypeProductPriceImpl

public ImportDataTypeProductPriceImpl()
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 dummyObject)
Initialize the product price import type.

Parameters:
dummyObject - 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 the given value object to the given entity.

Parameters:
entity - the entity
object - the value object