com.elasticpath.domain.impl
Class AbstractEntityImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractEntityImpl
All Implemented Interfaces:
Entity, EpDomain, Persistence, java.io.Serializable
Direct Known Subclasses:
AbstractAddressImpl, AbstractRuleImpl, AbstractShippingCostCalculationMethodImpl, AttributeImpl, AttributeValueGroupImpl, BrandImpl, CategoryDeletedImpl, CategoryImpl, CategoryTypeImpl, CmUserImpl, CustomerCreditCardImpl, CustomerDeletedImpl, CustomerGroupImpl, CustomerImpl, CustomerProfileImpl, CustomerSessionImpl, ImportJobImpl, OrderImpl, ProductDeletedImpl, ProductImpl, ProductSkuImpl, ProductTypeImpl, RuleSetImpl, ShippingRegionImpl, ShippingServiceLevelImpl, ShoppingCartImpl, SkuOptionImpl, TaxCategoryImpl, TaxCodeImpl, TaxJurisdictionImpl, TopSellerImpl, UserRoleImpl

public abstract class AbstractEntityImpl
extends AbstractPersistenceImpl
implements Entity

The default implementation of Entity.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
AbstractEntityImpl()
           
 
Method Summary
 java.util.Set convertAttributeGroupAttributes(java.util.Set attributeTypes, java.lang.String attributeType)
          Converts the attributeGroup's attribute's to the correct type.
 java.lang.String getGuid()
          Return the guid.
 void setDefaultValues()
          Set default values for those fields need default values.
 void setGuid(java.lang.String guid)
          Set the guid.
 
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.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

AbstractEntityImpl

public AbstractEntityImpl()
Method Detail

convertAttributeGroupAttributes

public java.util.Set convertAttributeGroupAttributes(java.util.Set attributeTypes,
                                                     java.lang.String attributeType)
Converts the attributeGroup's attribute's to the correct type. This is necessary for now since DWR doen't do a good job of converting to the correct bean types.

Parameters:
attributeTypes - set of attributeTypes to convert
attributeType - attribute type bean name to conver to
Returns:
set of converted attributes

getGuid

public java.lang.String getGuid()
Return the guid.

Specified by:
getGuid in interface Entity
Returns:
the guid.

setDefaultValues

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

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

setGuid

public void setGuid(java.lang.String guid)
Set the guid.

Specified by:
setGuid in interface Entity
Parameters:
guid - the guid to set.