com.elasticpath.domain.catalog.impl
Class BrandImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractEntityImpl
              extended by com.elasticpath.domain.catalog.impl.BrandImpl
All Implemented Interfaces:
Brand, Entity, EpDomain, Persistence, java.io.Serializable

public class BrandImpl
extends AbstractEntityImpl
implements Brand

The default implementation of Product.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from interface com.elasticpath.domain.catalog.Brand
LOCALIZED_PROPERTY_DISPLAY_NAME
 
Constructor Summary
BrandImpl()
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this object equals to the given object.
 java.lang.String getCode()
          Returns the brand code.
 java.lang.String getDisplayName(java.util.Locale locale)
          Get the localized display name for this brand.
 java.lang.String getGuid()
          Return the guid.
 java.lang.String getImageUrl()
          Returns the url of the brand logo image.
 LocalizedProperties getLocalizedProperties()
          Returns the LocalizedProperties.
 java.lang.String getSeoUrlWithoutSuffix(java.util.Locale locale)
          Get the seo url for this brand.
 int hashCode()
          Generate the hash code.
 void setCode(java.lang.String code)
          Sets the brand code.
 void setGuid(java.lang.String guid)
          Set the guid.
 void setImageUrl(java.lang.String imageUrl)
          Sets the url of the brand logo image.
 void setLocalizedProperties(LocalizedProperties localizedProperties)
          Sets the LocalizedProperties.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl
convertAttributeGroupAttributes, setDefaultValues
 
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
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, 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

BrandImpl

public BrandImpl()
Default constructor.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Returns true if this object equals to the given object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the given object
Returns:
true if this object equals to the given object

getCode

public java.lang.String getCode()
Returns the brand code.

Specified by:
getCode in interface Brand
Returns:
the brand code of the brand

getDisplayName

public java.lang.String getDisplayName(java.util.Locale locale)
Get the localized display name for this brand.

Specified by:
getDisplayName in interface Brand
Parameters:
locale - the current Locale
Returns:
the localized display name

getGuid

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

Specified by:
getGuid in interface Entity
Overrides:
getGuid in class AbstractEntityImpl
Returns:
the guid.

getImageUrl

public java.lang.String getImageUrl()
Returns the url of the brand logo image.

Specified by:
getImageUrl in interface Brand
Returns:
the url of the brand logo image

getLocalizedProperties

public LocalizedProperties getLocalizedProperties()
Returns the LocalizedProperties.

Specified by:
getLocalizedProperties in interface Brand
Returns:
the LocalizedProperties

getSeoUrlWithoutSuffix

public java.lang.String getSeoUrlWithoutSuffix(java.util.Locale locale)
Get the seo url for this brand.

Specified by:
getSeoUrlWithoutSuffix in interface Brand
Parameters:
locale - the current Locale
Returns:
the seo url for this brand

hashCode

public int hashCode()
Generate the hash code.

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

setCode

public void setCode(java.lang.String code)
Sets the brand code.

Specified by:
setCode in interface Brand
Parameters:
code - the brand code of the brand

setGuid

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

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

setImageUrl

public void setImageUrl(java.lang.String imageUrl)
Sets the url of the brand logo image.

Specified by:
setImageUrl in interface Brand
Parameters:
imageUrl - the url of the brand logo image

setLocalizedProperties

public void setLocalizedProperties(LocalizedProperties localizedProperties)
Sets the LocalizedProperties.

Parameters:
localizedProperties - the LocalizedProperties