com.elasticpath.domain.dataimport.impl
Class AbstractImportTypeImpl

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

public abstract class AbstractImportTypeImpl
extends AbstractTransientImpl
implements java.io.Serializable, ImportType

AbstractImportTypeImpl represents an import type. It also contains enums of various import types.

See Also:
Serialized Form

Field Summary
static ImportType INCREMENTAL_TYPE
          The insert and update import type.
static ImportType REPLACE_TYPE
          The insert, update and delete import type.
static long serialVersionUID
          Serial version id.
 
Method Summary
 boolean equals(java.lang.Object object)
          Return true if the given object is an import type and has the same id.
static java.util.List getAllImportTypes()
          Return a list of all import types.
static ImportType getInstance(int importTypeId)
          Get the import type with the given import type id.
 java.lang.String getName()
          Return the import type name.
 int getTypeId()
          Return the import type Id.
 int hashCode()
          Return the hash code.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

INCREMENTAL_TYPE

public static final ImportType INCREMENTAL_TYPE
The insert and update import type.


REPLACE_TYPE

public static final ImportType REPLACE_TYPE
The insert, update and delete import type.


serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Method Detail

equals

public boolean equals(java.lang.Object object)
Return true if the given object is an import type and has the same id.

Overrides:
equals in class java.lang.Object
Parameters:
object - the object
Returns:
true if the given object is an import type and has the same id

getAllImportTypes

public static java.util.List getAllImportTypes()
Return a list of all import types.

Returns:
a list of all import types

getInstance

public static ImportType getInstance(int importTypeId)
Get the import type with the given import type id.

Parameters:
importTypeId - the import type id
Returns:
the import type instance

getName

public java.lang.String getName()
Return the import type name.

Specified by:
getName in interface ImportType
Returns:
the import type name

getTypeId

public int getTypeId()
Return the import type Id.

Specified by:
getTypeId in interface ImportType
Returns:
the import type Id

hashCode

public int hashCode()
Return the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code