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 SummaryConstructors
- 
Method SummaryModifier 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.AbstractExchangeObjectgetCorrelationId, getCustomProperties, getParentCorrelationId, setCorrelationId, setCustomProperties, setCustomProperty, setParentCorrelationIdMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.dataexchange.domain.ExchangeObjectgetContextState, setContextState
- 
Constructor Details- 
EntityExchangeObjectpublic EntityExchangeObject()
 
- 
- 
Method Details- 
getIdThe ID of the entity.- Returns:
- the id of the entity
 
- 
isNewlyCreatedpublic boolean isNewlyCreated()- Specified by:
- isNewlyCreatedin interface- ExchangeObject
- Overrides:
- isNewlyCreatedin class- AbstractExchangeObject
- Returns:
- true if the object is newly created. Note that this is not always applicable to all objects.
 
- 
setIdThe ID of the entity.- Parameters:
- id- the id of the entity
 
- 
setNewlyCreatedpublic 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 interface- ExchangeObject
- Overrides:
- setNewlyCreatedin class- AbstractExchangeObject
- Parameters:
- newlyCreated- true if the object is newly created
 
- 
toString- Overrides:
- toStringin class- AbstractExchangeObject
 
- 
equals- Overrides:
- equalsin class- AbstractExchangeObject
 
- 
canEqual- Overrides:
- canEqualin class- AbstractExchangeObject
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractExchangeObject
 
 
-