Class EntityExchangeObject
java.lang.Object
com.broadleafcommerce.dataexchange.domain.AbstractExchangeObject
com.broadleafcommerce.dataexchange.domain.EntityExchangeObject
- All Implemented Interfaces:
ExchangeObject,Serializable
- Direct Known Subclasses:
CategoryRef,ComprehensiveProduct,ProductTag,SkuInventory,Variant
Entity representation of an exchange object. This implementation has an ID field. If no ID is
needed, use
AbstractExchangeObject instead.- Author:
- Kelly Tisdell (ktisdell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()The ID of the entity.inthashCode()booleanvoidThe ID of the entity.voidsetNewlyCreated(boolean newlyCreated) Set to true if the object is newly created.toString()Methods inherited from class com.broadleafcommerce.dataexchange.domain.AbstractExchangeObject
getCorrelationId, getCustomProperties, getParentCorrelationId, setCorrelationId, setCustomProperties, setCustomProperty, setParentCorrelationIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.dataexchange.domain.ExchangeObject
getContextState, setContextState
-
Constructor Details
-
EntityExchangeObject
public EntityExchangeObject()
-
-
Method Details
-
getId
The ID of the entity.- Returns:
- the id of the entity
-
isNewlyCreated
public boolean isNewlyCreated()- Specified by:
isNewlyCreatedin interfaceExchangeObject- Overrides:
isNewlyCreatedin classAbstractExchangeObject- Returns:
- true if the object is newly created. Note that this is not always applicable to all objects.
-
setId
The ID of the entity.- Parameters:
id- the id of the entity
-
setNewlyCreated
public void setNewlyCreated(boolean newlyCreated) Description copied from interface:ExchangeObjectSet to true if the object is newly created. This may not be applicable to all objects.- Specified by:
setNewlyCreatedin interfaceExchangeObject- Overrides:
setNewlyCreatedin classAbstractExchangeObject- Parameters:
newlyCreated- true if the object is newly created
-
toString
- Overrides:
toStringin classAbstractExchangeObject
-
equals
- Overrides:
equalsin classAbstractExchangeObject
-
canEqual
- Overrides:
canEqualin classAbstractExchangeObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractExchangeObject
-