com.elasticpath.domain.dataimport.impl
Class ImportDataTypeCategoryImpl

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

public class ImportDataTypeCategoryImpl
extends AbstractImportDataTypeImpl

Defines fields and necessary information to import Category.

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
ImportDataTypeCategoryImpl()
           
 
Method Summary
 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 categoryType)
          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 the given value object to the given entity.
 
Methods inherited from class com.elasticpath.domain.dataimport.impl.AbstractImportDataTypeImpl
clearValueObjects, 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

ImportDataTypeCategoryImpl

public ImportDataTypeCategoryImpl()
Method Detail

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 categoryType)
Initialize the category import type.

Parameters:
categoryType - the CategoryType instance used to initialize the import data type.

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