Package de.hybris.platform.hmc.jalo
Class GeneratedSavedValues
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.hmc.jalo.GeneratedSavedValues
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
SavedValues
public abstract class GeneratedSavedValues extends GenericItem
Generated class for typeSavedValues.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHANGEDATTRIBUTESQualifier of theSavedValues.changedAttributesattributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>DEFAULT_INITIAL_ATTRIBUTESstatic java.lang.StringMODIFICATIONTYPEQualifier of theSavedValues.modificationTypeattributestatic java.lang.StringMODIFIEDITEMQualifier of theSavedValues.modifiedItemattributestatic java.lang.StringMODIFIEDITEMDISPLAYSTRINGQualifier of theSavedValues.modifiedItemDisplayStringattributeprotected static BidirectionalOneToManyHandler<GeneratedSavedValues>MODIFIEDITEMHANDLERBidirectionalOneToManyHandlerfor handling 1:n MODIFIEDITEM's relation attributes from 'one' side.static java.lang.StringMODIFIEDITEMPOSQualifier of theSavedValues.modifiedItemPOSattributestatic java.lang.StringMODIFIEDITEMTYPEQualifier of theSavedValues.modifiedItemTypeattributestatic java.lang.StringNUMBEROFCHANGEDATTRIBUTESQualifier of theSavedValues.numberOfChangedAttributesattributestatic java.lang.StringSAVEDVALUESENTRIESQualifier of theSavedValues.savedValuesEntriesattributeprotected static OneToManyHandler<SavedValueEntry>SAVEDVALUESENTRIESHANDLEROneToManyHandlerfor handling 1:n SAVEDVALUESENTRIES's relation attributes from 'many' side.static java.lang.StringTIMESTAMPQualifier of theSavedValues.timestampattributestatic java.lang.StringUSERQualifier of theSavedValues.userattribute-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedSavedValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)Has to be implemented for each concrete subtype of item.java.lang.StringgetChangedAttributes()Generated method - Getter of theSavedValues.changedAttributesattribute.abstract java.lang.StringgetChangedAttributes(SessionContext ctx)Generated method - Getter of theSavedValues.changedAttributesattribute.protected java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes()EnumerationValuegetModificationType()Generated method - Getter of theSavedValues.modificationTypeattribute.EnumerationValuegetModificationType(SessionContext ctx)Generated method - Getter of theSavedValues.modificationTypeattribute.ItemgetModifiedItem()Generated method - Getter of theSavedValues.modifiedItemattribute.ItemgetModifiedItem(SessionContext ctx)Generated method - Getter of theSavedValues.modifiedItemattribute.java.lang.StringgetModifiedItemDisplayString()Generated method - Getter of theSavedValues.modifiedItemDisplayStringattribute.java.lang.StringgetModifiedItemDisplayString(SessionContext ctx)Generated method - Getter of theSavedValues.modifiedItemDisplayStringattribute.ComposedTypegetModifiedItemType()Generated method - Getter of theSavedValues.modifiedItemTypeattribute.ComposedTypegetModifiedItemType(SessionContext ctx)Generated method - Getter of theSavedValues.modifiedItemTypeattribute.java.lang.IntegergetNumberOfChangedAttributes()Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.abstract java.lang.IntegergetNumberOfChangedAttributes(SessionContext ctx)Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.intgetNumberOfChangedAttributesAsPrimitive()Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.intgetNumberOfChangedAttributesAsPrimitive(SessionContext ctx)Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.java.util.Set<SavedValueEntry>getSavedValuesEntries()Generated method - Getter of theSavedValues.savedValuesEntriesattribute.java.util.Set<SavedValueEntry>getSavedValuesEntries(SessionContext ctx)Generated method - Getter of theSavedValues.savedValuesEntriesattribute.java.util.DategetTimestamp()Generated method - Getter of theSavedValues.timestampattribute.java.util.DategetTimestamp(SessionContext ctx)Generated method - Getter of theSavedValues.timestampattribute.UsergetUser()Generated method - Getter of theSavedValues.userattribute.UsergetUser(SessionContext ctx)Generated method - Getter of theSavedValues.userattribute.voidsetModificationType(EnumerationValue value)Generated method - Setter of theSavedValues.modificationTypeattribute.voidsetModificationType(SessionContext ctx, EnumerationValue value)Generated method - Setter of theSavedValues.modificationTypeattribute.protected voidsetModifiedItem(Item value)Generated method - Setter of theSavedValues.modifiedItemattribute.protected voidsetModifiedItem(SessionContext ctx, Item value)Generated method - Setter of theSavedValues.modifiedItemattribute.voidsetModifiedItemDisplayString(SessionContext ctx, java.lang.String value)Generated method - Setter of theSavedValues.modifiedItemDisplayStringattribute.voidsetModifiedItemDisplayString(java.lang.String value)Generated method - Setter of theSavedValues.modifiedItemDisplayStringattribute.voidsetModifiedItemType(SessionContext ctx, ComposedType value)Generated method - Setter of theSavedValues.modifiedItemTypeattribute.voidsetModifiedItemType(ComposedType value)Generated method - Setter of theSavedValues.modifiedItemTypeattribute.voidsetTimestamp(SessionContext ctx, java.util.Date value)Generated method - Setter of theSavedValues.timestampattribute.voidsetTimestamp(java.util.Date value)Generated method - Setter of theSavedValues.timestampattribute.voidsetUser(SessionContext ctx, User value)Generated method - Setter of theSavedValues.userattribute.voidsetUser(User value)Generated method - Setter of theSavedValues.userattribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
MODIFIEDITEMTYPE
public static final java.lang.String MODIFIEDITEMTYPE
Qualifier of theSavedValues.modifiedItemTypeattribute- See Also:
- Constant Field Values
-
MODIFIEDITEMDISPLAYSTRING
public static final java.lang.String MODIFIEDITEMDISPLAYSTRING
Qualifier of theSavedValues.modifiedItemDisplayStringattribute- See Also:
- Constant Field Values
-
TIMESTAMP
public static final java.lang.String TIMESTAMP
Qualifier of theSavedValues.timestampattribute- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Qualifier of theSavedValues.userattribute- See Also:
- Constant Field Values
-
CHANGEDATTRIBUTES
public static final java.lang.String CHANGEDATTRIBUTES
Qualifier of theSavedValues.changedAttributesattribute- See Also:
- Constant Field Values
-
NUMBEROFCHANGEDATTRIBUTES
public static final java.lang.String NUMBEROFCHANGEDATTRIBUTES
Qualifier of theSavedValues.numberOfChangedAttributesattribute- See Also:
- Constant Field Values
-
MODIFICATIONTYPE
public static final java.lang.String MODIFICATIONTYPE
Qualifier of theSavedValues.modificationTypeattribute- See Also:
- Constant Field Values
-
SAVEDVALUESENTRIES
public static final java.lang.String SAVEDVALUESENTRIES
Qualifier of theSavedValues.savedValuesEntriesattribute- See Also:
- Constant Field Values
-
MODIFIEDITEMPOS
public static final java.lang.String MODIFIEDITEMPOS
Qualifier of theSavedValues.modifiedItemPOSattribute- See Also:
- Constant Field Values
-
MODIFIEDITEM
public static final java.lang.String MODIFIEDITEM
Qualifier of theSavedValues.modifiedItemattribute- See Also:
- Constant Field Values
-
SAVEDVALUESENTRIESHANDLER
protected static final OneToManyHandler<SavedValueEntry> SAVEDVALUESENTRIESHANDLER
OneToManyHandlerfor handling 1:n SAVEDVALUESENTRIES's relation attributes from 'many' side.
-
MODIFIEDITEMHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedSavedValues> MODIFIEDITEMHANDLER
BidirectionalOneToManyHandlerfor handling 1:n MODIFIEDITEM's relation attributes from 'one' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModesin classItem
-
getChangedAttributes
public abstract java.lang.String getChangedAttributes(SessionContext ctx)
Generated method - Getter of theSavedValues.changedAttributesattribute.- Returns:
- the changedAttributes - jalo generated string of changes attributes
-
getChangedAttributes
public java.lang.String getChangedAttributes()
Generated method - Getter of theSavedValues.changedAttributesattribute.- Returns:
- the changedAttributes - jalo generated string of changes attributes
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:ItemHas to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.newInstance(Map).In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap)too.
Sn example:public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) ); // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes( SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret = super.getNonInitialAttributes( ctx, allAttributes ); // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }- Overrides:
createItemin classGenericItem- Parameters:
ctx- the current session context which this item is created withintype- the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
getModificationType
public EnumerationValue getModificationType(SessionContext ctx)
Generated method - Getter of theSavedValues.modificationTypeattribute.- Returns:
- the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
-
getModificationType
public EnumerationValue getModificationType()
Generated method - Getter of theSavedValues.modificationTypeattribute.- Returns:
- the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
-
setModificationType
public void setModificationType(SessionContext ctx, EnumerationValue value)
Generated method - Setter of theSavedValues.modificationTypeattribute.- Parameters:
value- the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
-
setModificationType
public void setModificationType(EnumerationValue value)
Generated method - Setter of theSavedValues.modificationTypeattribute.- Parameters:
value- the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
-
getModifiedItem
public Item getModifiedItem(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemattribute.- Returns:
- the modifiedItem
-
getModifiedItem
public Item getModifiedItem()
Generated method - Getter of theSavedValues.modifiedItemattribute.- Returns:
- the modifiedItem
-
setModifiedItem
protected void setModifiedItem(SessionContext ctx, Item value)
Generated method - Setter of theSavedValues.modifiedItemattribute.- Parameters:
value- the modifiedItem
-
setModifiedItem
protected void setModifiedItem(Item value)
Generated method - Setter of theSavedValues.modifiedItemattribute.- Parameters:
value- the modifiedItem
-
getModifiedItemDisplayString
public java.lang.String getModifiedItemDisplayString(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemDisplayStringattribute.- Returns:
- the modifiedItemDisplayString - Display String. @since 2.10
-
getModifiedItemDisplayString
public java.lang.String getModifiedItemDisplayString()
Generated method - Getter of theSavedValues.modifiedItemDisplayStringattribute.- Returns:
- the modifiedItemDisplayString - Display String. @since 2.10
-
setModifiedItemDisplayString
public void setModifiedItemDisplayString(SessionContext ctx, java.lang.String value)
Generated method - Setter of theSavedValues.modifiedItemDisplayStringattribute.- Parameters:
value- the modifiedItemDisplayString - Display String. @since 2.10
-
setModifiedItemDisplayString
public void setModifiedItemDisplayString(java.lang.String value)
Generated method - Setter of theSavedValues.modifiedItemDisplayStringattribute.- Parameters:
value- the modifiedItemDisplayString - Display String. @since 2.10
-
getModifiedItemType
public ComposedType getModifiedItemType(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemTypeattribute.- Returns:
- the modifiedItemType - Type
-
getModifiedItemType
public ComposedType getModifiedItemType()
Generated method - Getter of theSavedValues.modifiedItemTypeattribute.- Returns:
- the modifiedItemType - Type
-
setModifiedItemType
public void setModifiedItemType(SessionContext ctx, ComposedType value)
Generated method - Setter of theSavedValues.modifiedItemTypeattribute.- Parameters:
value- the modifiedItemType - Type
-
setModifiedItemType
public void setModifiedItemType(ComposedType value)
Generated method - Setter of theSavedValues.modifiedItemTypeattribute.- Parameters:
value- the modifiedItemType - Type
-
getNumberOfChangedAttributes
public abstract java.lang.Integer getNumberOfChangedAttributes(SessionContext ctx)
Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getNumberOfChangedAttributes
public java.lang.Integer getNumberOfChangedAttributes()
Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getNumberOfChangedAttributesAsPrimitive
public int getNumberOfChangedAttributesAsPrimitive(SessionContext ctx)
Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getNumberOfChangedAttributesAsPrimitive
public int getNumberOfChangedAttributesAsPrimitive()
Generated method - Getter of theSavedValues.numberOfChangedAttributesattribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getSavedValuesEntries
public java.util.Set<SavedValueEntry> getSavedValuesEntries(SessionContext ctx)
Generated method - Getter of theSavedValues.savedValuesEntriesattribute.- Returns:
- the savedValuesEntries
-
getSavedValuesEntries
public java.util.Set<SavedValueEntry> getSavedValuesEntries()
Generated method - Getter of theSavedValues.savedValuesEntriesattribute.- Returns:
- the savedValuesEntries
-
getTimestamp
public java.util.Date getTimestamp(SessionContext ctx)
Generated method - Getter of theSavedValues.timestampattribute.- Returns:
- the timestamp - the timestamp of the last modification
-
getTimestamp
public java.util.Date getTimestamp()
Generated method - Getter of theSavedValues.timestampattribute.- Returns:
- the timestamp - the timestamp of the last modification
-
setTimestamp
public void setTimestamp(SessionContext ctx, java.util.Date value)
Generated method - Setter of theSavedValues.timestampattribute.- Parameters:
value- the timestamp - the timestamp of the last modification
-
setTimestamp
public void setTimestamp(java.util.Date value)
Generated method - Setter of theSavedValues.timestampattribute.- Parameters:
value- the timestamp - the timestamp of the last modification
-
getUser
public User getUser(SessionContext ctx)
Generated method - Getter of theSavedValues.userattribute.- Returns:
- the user - the user, who has modified/saved/create this item
-
getUser
public User getUser()
Generated method - Getter of theSavedValues.userattribute.- Returns:
- the user - the user, who has modified/saved/create this item
-
setUser
public void setUser(SessionContext ctx, User value)
Generated method - Setter of theSavedValues.userattribute.- Parameters:
value- the user - the user, who has modified/saved/create this item
-
setUser
public void setUser(User value)
Generated method - Setter of theSavedValues.userattribute.- Parameters:
value- the user - the user, who has modified/saved/create this item
-
-