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.String
CHANGEDATTRIBUTES
Qualifier of theSavedValues.changedAttributes
attributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
MODIFICATIONTYPE
Qualifier of theSavedValues.modificationType
attributestatic java.lang.String
MODIFIEDITEM
Qualifier of theSavedValues.modifiedItem
attributestatic java.lang.String
MODIFIEDITEMDISPLAYSTRING
Qualifier of theSavedValues.modifiedItemDisplayString
attributeprotected static BidirectionalOneToManyHandler<GeneratedSavedValues>
MODIFIEDITEMHANDLER
BidirectionalOneToManyHandler
for handling 1:n MODIFIEDITEM's relation attributes from 'one' side.static java.lang.String
MODIFIEDITEMPOS
Qualifier of theSavedValues.modifiedItemPOS
attributestatic java.lang.String
MODIFIEDITEMTYPE
Qualifier of theSavedValues.modifiedItemType
attributestatic java.lang.String
NUMBEROFCHANGEDATTRIBUTES
Qualifier of theSavedValues.numberOfChangedAttributes
attributestatic java.lang.String
SAVEDVALUESENTRIES
Qualifier of theSavedValues.savedValuesEntries
attributeprotected static OneToManyHandler<SavedValueEntry>
SAVEDVALUESENTRIESHANDLER
OneToManyHandler
for handling 1:n SAVEDVALUESENTRIES's relation attributes from 'many' side.static java.lang.String
TIMESTAMP
Qualifier of theSavedValues.timestamp
attributestatic java.lang.String
USER
Qualifier of theSavedValues.user
attribute-
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 Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.java.lang.String
getChangedAttributes()
Generated method - Getter of theSavedValues.changedAttributes
attribute.abstract java.lang.String
getChangedAttributes(SessionContext ctx)
Generated method - Getter of theSavedValues.changedAttributes
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
EnumerationValue
getModificationType()
Generated method - Getter of theSavedValues.modificationType
attribute.EnumerationValue
getModificationType(SessionContext ctx)
Generated method - Getter of theSavedValues.modificationType
attribute.Item
getModifiedItem()
Generated method - Getter of theSavedValues.modifiedItem
attribute.Item
getModifiedItem(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItem
attribute.java.lang.String
getModifiedItemDisplayString()
Generated method - Getter of theSavedValues.modifiedItemDisplayString
attribute.java.lang.String
getModifiedItemDisplayString(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemDisplayString
attribute.ComposedType
getModifiedItemType()
Generated method - Getter of theSavedValues.modifiedItemType
attribute.ComposedType
getModifiedItemType(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemType
attribute.java.lang.Integer
getNumberOfChangedAttributes()
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.abstract java.lang.Integer
getNumberOfChangedAttributes(SessionContext ctx)
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.int
getNumberOfChangedAttributesAsPrimitive()
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.int
getNumberOfChangedAttributesAsPrimitive(SessionContext ctx)
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.java.util.Set<SavedValueEntry>
getSavedValuesEntries()
Generated method - Getter of theSavedValues.savedValuesEntries
attribute.java.util.Set<SavedValueEntry>
getSavedValuesEntries(SessionContext ctx)
Generated method - Getter of theSavedValues.savedValuesEntries
attribute.java.util.Date
getTimestamp()
Generated method - Getter of theSavedValues.timestamp
attribute.java.util.Date
getTimestamp(SessionContext ctx)
Generated method - Getter of theSavedValues.timestamp
attribute.User
getUser()
Generated method - Getter of theSavedValues.user
attribute.User
getUser(SessionContext ctx)
Generated method - Getter of theSavedValues.user
attribute.void
setModificationType(EnumerationValue value)
Generated method - Setter of theSavedValues.modificationType
attribute.void
setModificationType(SessionContext ctx, EnumerationValue value)
Generated method - Setter of theSavedValues.modificationType
attribute.protected void
setModifiedItem(Item value)
Generated method - Setter of theSavedValues.modifiedItem
attribute.protected void
setModifiedItem(SessionContext ctx, Item value)
Generated method - Setter of theSavedValues.modifiedItem
attribute.void
setModifiedItemDisplayString(SessionContext ctx, java.lang.String value)
Generated method - Setter of theSavedValues.modifiedItemDisplayString
attribute.void
setModifiedItemDisplayString(java.lang.String value)
Generated method - Setter of theSavedValues.modifiedItemDisplayString
attribute.void
setModifiedItemType(SessionContext ctx, ComposedType value)
Generated method - Setter of theSavedValues.modifiedItemType
attribute.void
setModifiedItemType(ComposedType value)
Generated method - Setter of theSavedValues.modifiedItemType
attribute.void
setTimestamp(SessionContext ctx, java.util.Date value)
Generated method - Setter of theSavedValues.timestamp
attribute.void
setTimestamp(java.util.Date value)
Generated method - Setter of theSavedValues.timestamp
attribute.void
setUser(SessionContext ctx, User value)
Generated method - Setter of theSavedValues.user
attribute.void
setUser(User value)
Generated method - Setter of theSavedValues.user
attribute.-
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.modifiedItemType
attribute- See Also:
- Constant Field Values
-
MODIFIEDITEMDISPLAYSTRING
public static final java.lang.String MODIFIEDITEMDISPLAYSTRING
Qualifier of theSavedValues.modifiedItemDisplayString
attribute- See Also:
- Constant Field Values
-
TIMESTAMP
public static final java.lang.String TIMESTAMP
Qualifier of theSavedValues.timestamp
attribute- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Qualifier of theSavedValues.user
attribute- See Also:
- Constant Field Values
-
CHANGEDATTRIBUTES
public static final java.lang.String CHANGEDATTRIBUTES
Qualifier of theSavedValues.changedAttributes
attribute- See Also:
- Constant Field Values
-
NUMBEROFCHANGEDATTRIBUTES
public static final java.lang.String NUMBEROFCHANGEDATTRIBUTES
Qualifier of theSavedValues.numberOfChangedAttributes
attribute- See Also:
- Constant Field Values
-
MODIFICATIONTYPE
public static final java.lang.String MODIFICATIONTYPE
Qualifier of theSavedValues.modificationType
attribute- See Also:
- Constant Field Values
-
SAVEDVALUESENTRIES
public static final java.lang.String SAVEDVALUESENTRIES
Qualifier of theSavedValues.savedValuesEntries
attribute- See Also:
- Constant Field Values
-
MODIFIEDITEMPOS
public static final java.lang.String MODIFIEDITEMPOS
Qualifier of theSavedValues.modifiedItemPOS
attribute- See Also:
- Constant Field Values
-
MODIFIEDITEM
public static final java.lang.String MODIFIEDITEM
Qualifier of theSavedValues.modifiedItem
attribute- See Also:
- Constant Field Values
-
SAVEDVALUESENTRIESHANDLER
protected static final OneToManyHandler<SavedValueEntry> SAVEDVALUESENTRIESHANDLER
OneToManyHandler
for handling 1:n SAVEDVALUESENTRIES's relation attributes from 'many' side.
-
MODIFIEDITEMHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedSavedValues> MODIFIEDITEMHANDLER
BidirectionalOneToManyHandler
for 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:
getDefaultAttributeModes
in classItem
-
getChangedAttributes
public abstract java.lang.String getChangedAttributes(SessionContext ctx)
Generated method - Getter of theSavedValues.changedAttributes
attribute.- Returns:
- the changedAttributes - jalo generated string of changes attributes
-
getChangedAttributes
public java.lang.String getChangedAttributes()
Generated method - Getter of theSavedValues.changedAttributes
attribute.- 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:Item
Has 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:
createItem
in 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.modificationType
attribute.- Returns:
- the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
-
getModificationType
public EnumerationValue getModificationType()
Generated method - Getter of theSavedValues.modificationType
attribute.- 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.modificationType
attribute.- 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.modificationType
attribute.- 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.modifiedItem
attribute.- Returns:
- the modifiedItem
-
getModifiedItem
public Item getModifiedItem()
Generated method - Getter of theSavedValues.modifiedItem
attribute.- Returns:
- the modifiedItem
-
setModifiedItem
protected void setModifiedItem(SessionContext ctx, Item value)
Generated method - Setter of theSavedValues.modifiedItem
attribute.- Parameters:
value
- the modifiedItem
-
setModifiedItem
protected void setModifiedItem(Item value)
Generated method - Setter of theSavedValues.modifiedItem
attribute.- Parameters:
value
- the modifiedItem
-
getModifiedItemDisplayString
public java.lang.String getModifiedItemDisplayString(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemDisplayString
attribute.- Returns:
- the modifiedItemDisplayString - Display String. @since 2.10
-
getModifiedItemDisplayString
public java.lang.String getModifiedItemDisplayString()
Generated method - Getter of theSavedValues.modifiedItemDisplayString
attribute.- Returns:
- the modifiedItemDisplayString - Display String. @since 2.10
-
setModifiedItemDisplayString
public void setModifiedItemDisplayString(SessionContext ctx, java.lang.String value)
Generated method - Setter of theSavedValues.modifiedItemDisplayString
attribute.- Parameters:
value
- the modifiedItemDisplayString - Display String. @since 2.10
-
setModifiedItemDisplayString
public void setModifiedItemDisplayString(java.lang.String value)
Generated method - Setter of theSavedValues.modifiedItemDisplayString
attribute.- Parameters:
value
- the modifiedItemDisplayString - Display String. @since 2.10
-
getModifiedItemType
public ComposedType getModifiedItemType(SessionContext ctx)
Generated method - Getter of theSavedValues.modifiedItemType
attribute.- Returns:
- the modifiedItemType - Type
-
getModifiedItemType
public ComposedType getModifiedItemType()
Generated method - Getter of theSavedValues.modifiedItemType
attribute.- Returns:
- the modifiedItemType - Type
-
setModifiedItemType
public void setModifiedItemType(SessionContext ctx, ComposedType value)
Generated method - Setter of theSavedValues.modifiedItemType
attribute.- Parameters:
value
- the modifiedItemType - Type
-
setModifiedItemType
public void setModifiedItemType(ComposedType value)
Generated method - Setter of theSavedValues.modifiedItemType
attribute.- Parameters:
value
- the modifiedItemType - Type
-
getNumberOfChangedAttributes
public abstract java.lang.Integer getNumberOfChangedAttributes(SessionContext ctx)
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getNumberOfChangedAttributes
public java.lang.Integer getNumberOfChangedAttributes()
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getNumberOfChangedAttributesAsPrimitive
public int getNumberOfChangedAttributesAsPrimitive(SessionContext ctx)
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getNumberOfChangedAttributesAsPrimitive
public int getNumberOfChangedAttributesAsPrimitive()
Generated method - Getter of theSavedValues.numberOfChangedAttributes
attribute.- Returns:
- the numberOfChangedAttributes - jalo generated string of changes attributes
-
getSavedValuesEntries
public java.util.Set<SavedValueEntry> getSavedValuesEntries(SessionContext ctx)
Generated method - Getter of theSavedValues.savedValuesEntries
attribute.- Returns:
- the savedValuesEntries
-
getSavedValuesEntries
public java.util.Set<SavedValueEntry> getSavedValuesEntries()
Generated method - Getter of theSavedValues.savedValuesEntries
attribute.- Returns:
- the savedValuesEntries
-
getTimestamp
public java.util.Date getTimestamp(SessionContext ctx)
Generated method - Getter of theSavedValues.timestamp
attribute.- Returns:
- the timestamp - the timestamp of the last modification
-
getTimestamp
public java.util.Date getTimestamp()
Generated method - Getter of theSavedValues.timestamp
attribute.- Returns:
- the timestamp - the timestamp of the last modification
-
setTimestamp
public void setTimestamp(SessionContext ctx, java.util.Date value)
Generated method - Setter of theSavedValues.timestamp
attribute.- Parameters:
value
- the timestamp - the timestamp of the last modification
-
setTimestamp
public void setTimestamp(java.util.Date value)
Generated method - Setter of theSavedValues.timestamp
attribute.- Parameters:
value
- the timestamp - the timestamp of the last modification
-
getUser
public User getUser(SessionContext ctx)
Generated method - Getter of theSavedValues.user
attribute.- Returns:
- the user - the user, who has modified/saved/create this item
-
getUser
public User getUser()
Generated method - Getter of theSavedValues.user
attribute.- 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.user
attribute.- Parameters:
value
- the user - the user, who has modified/saved/create this item
-
setUser
public void setUser(User value)
Generated method - Setter of theSavedValues.user
attribute.- Parameters:
value
- the user - the user, who has modified/saved/create this item
-
-