public abstract class GeneratedSavedValues extends GenericItem
SavedValues.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHANGEDATTRIBUTES
Qualifier of the
SavedValues.changedAttributes attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
MODIFICATIONTYPE
Qualifier of the
SavedValues.modificationType attribute |
static java.lang.String |
MODIFIEDITEM
Qualifier of the
SavedValues.modifiedItem attribute |
static java.lang.String |
MODIFIEDITEMDISPLAYSTRING
Qualifier of the
SavedValues.modifiedItemDisplayString attribute |
protected static BidirectionalOneToManyHandler<GeneratedSavedValues> |
MODIFIEDITEMHANDLER
BidirectionalOneToManyHandler for handling 1:n MODIFIEDITEM's relation attributes from 'one' side. |
static java.lang.String |
MODIFIEDITEMPOS
Qualifier of the
SavedValues.modifiedItemPOS attribute |
static java.lang.String |
MODIFIEDITEMTYPE
Qualifier of the
SavedValues.modifiedItemType attribute |
static java.lang.String |
NUMBEROFCHANGEDATTRIBUTES
Qualifier of the
SavedValues.numberOfChangedAttributes attribute |
static java.lang.String |
SAVEDVALUESENTRIES
Qualifier of the
SavedValues.savedValuesEntries attribute |
protected static OneToManyHandler<SavedValueEntry> |
SAVEDVALUESENTRIESHANDLER
OneToManyHandler for handling 1:n SAVEDVALUESENTRIES's relation attributes from 'many' side. |
static java.lang.String |
TIMESTAMP
Qualifier of the
SavedValues.timestamp attribute |
static java.lang.String |
USER
Qualifier of the
SavedValues.user attribute |
LANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedSavedValues() |
| Modifier and Type | Method and 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 the
SavedValues.changedAttributes attribute. |
abstract java.lang.String |
getChangedAttributes(SessionContext ctx)
Generated method - Getter of the
SavedValues.changedAttributes attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
EnumerationValue |
getModificationType()
Generated method - Getter of the
SavedValues.modificationType attribute. |
EnumerationValue |
getModificationType(SessionContext ctx)
Generated method - Getter of the
SavedValues.modificationType attribute. |
Item |
getModifiedItem()
Generated method - Getter of the
SavedValues.modifiedItem attribute. |
Item |
getModifiedItem(SessionContext ctx)
Generated method - Getter of the
SavedValues.modifiedItem attribute. |
java.lang.String |
getModifiedItemDisplayString()
Generated method - Getter of the
SavedValues.modifiedItemDisplayString attribute. |
java.lang.String |
getModifiedItemDisplayString(SessionContext ctx)
Generated method - Getter of the
SavedValues.modifiedItemDisplayString attribute. |
ComposedType |
getModifiedItemType()
Generated method - Getter of the
SavedValues.modifiedItemType attribute. |
ComposedType |
getModifiedItemType(SessionContext ctx)
Generated method - Getter of the
SavedValues.modifiedItemType attribute. |
java.lang.Integer |
getNumberOfChangedAttributes()
Generated method - Getter of the
SavedValues.numberOfChangedAttributes attribute. |
abstract java.lang.Integer |
getNumberOfChangedAttributes(SessionContext ctx)
Generated method - Getter of the
SavedValues.numberOfChangedAttributes attribute. |
int |
getNumberOfChangedAttributesAsPrimitive()
Generated method - Getter of the
SavedValues.numberOfChangedAttributes attribute. |
int |
getNumberOfChangedAttributesAsPrimitive(SessionContext ctx)
Generated method - Getter of the
SavedValues.numberOfChangedAttributes attribute. |
java.util.Set<SavedValueEntry> |
getSavedValuesEntries()
Generated method - Getter of the
SavedValues.savedValuesEntries attribute. |
java.util.Set<SavedValueEntry> |
getSavedValuesEntries(SessionContext ctx)
Generated method - Getter of the
SavedValues.savedValuesEntries attribute. |
java.util.Date |
getTimestamp()
Generated method - Getter of the
SavedValues.timestamp attribute. |
java.util.Date |
getTimestamp(SessionContext ctx)
Generated method - Getter of the
SavedValues.timestamp attribute. |
User |
getUser()
Generated method - Getter of the
SavedValues.user attribute. |
User |
getUser(SessionContext ctx)
Generated method - Getter of the
SavedValues.user attribute. |
void |
setModificationType(EnumerationValue value)
Generated method - Setter of the
SavedValues.modificationType attribute. |
void |
setModificationType(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
SavedValues.modificationType attribute. |
protected void |
setModifiedItem(Item value)
Generated method - Setter of the
SavedValues.modifiedItem attribute. |
protected void |
setModifiedItem(SessionContext ctx,
Item value)
Generated method - Setter of the
SavedValues.modifiedItem attribute. |
void |
setModifiedItemDisplayString(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
SavedValues.modifiedItemDisplayString attribute. |
void |
setModifiedItemDisplayString(java.lang.String value)
Generated method - Setter of the
SavedValues.modifiedItemDisplayString attribute. |
void |
setModifiedItemType(ComposedType value)
Generated method - Setter of the
SavedValues.modifiedItemType attribute. |
void |
setModifiedItemType(SessionContext ctx,
ComposedType value)
Generated method - Setter of the
SavedValues.modifiedItemType attribute. |
void |
setTimestamp(java.util.Date value)
Generated method - Setter of the
SavedValues.timestamp attribute. |
void |
setTimestamp(SessionContext ctx,
java.util.Date value)
Generated method - Setter of the
SavedValues.timestamp attribute. |
void |
setUser(SessionContext ctx,
User value)
Generated method - Setter of the
SavedValues.user attribute. |
void |
setUser(User value)
Generated method - Setter of the
SavedValues.user attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, 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, writeReplacesetTenantpublic static final java.lang.String MODIFIEDITEMTYPE
SavedValues.modifiedItemType attributepublic static final java.lang.String MODIFIEDITEMDISPLAYSTRING
SavedValues.modifiedItemDisplayString attributepublic static final java.lang.String TIMESTAMP
SavedValues.timestamp attributepublic static final java.lang.String USER
SavedValues.user attributepublic static final java.lang.String CHANGEDATTRIBUTES
SavedValues.changedAttributes attributepublic static final java.lang.String NUMBEROFCHANGEDATTRIBUTES
SavedValues.numberOfChangedAttributes attributepublic static final java.lang.String MODIFICATIONTYPE
SavedValues.modificationType attributepublic static final java.lang.String SAVEDVALUESENTRIES
SavedValues.savedValuesEntries attributepublic static final java.lang.String MODIFIEDITEMPOS
SavedValues.modifiedItemPOS attributepublic static final java.lang.String MODIFIEDITEM
SavedValues.modifiedItem attributeprotected static final OneToManyHandler<SavedValueEntry> SAVEDVALUESENTRIESHANDLER
OneToManyHandler for handling 1:n SAVEDVALUESENTRIES's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedSavedValues> MODIFIEDITEMHANDLER
BidirectionalOneToManyHandler for handling 1:n MODIFIEDITEM's relation attributes from 'one' side.protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic abstract java.lang.String getChangedAttributes(SessionContext ctx)
SavedValues.changedAttributes attribute.public java.lang.String getChangedAttributes()
SavedValues.changedAttributes attribute.protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.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; }
createItem in class GenericItemctx - 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 )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic EnumerationValue getModificationType(SessionContext ctx)
SavedValues.modificationType attribute.public EnumerationValue getModificationType()
SavedValues.modificationType attribute.public void setModificationType(SessionContext ctx, EnumerationValue value)
SavedValues.modificationType attribute.value - the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10public void setModificationType(EnumerationValue value)
SavedValues.modificationType attribute.value - the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10public Item getModifiedItem(SessionContext ctx)
SavedValues.modifiedItem attribute.public Item getModifiedItem()
SavedValues.modifiedItem attribute.protected void setModifiedItem(SessionContext ctx, Item value)
SavedValues.modifiedItem attribute.value - the modifiedItemprotected void setModifiedItem(Item value)
SavedValues.modifiedItem attribute.value - the modifiedItempublic java.lang.String getModifiedItemDisplayString(SessionContext ctx)
SavedValues.modifiedItemDisplayString attribute.public java.lang.String getModifiedItemDisplayString()
SavedValues.modifiedItemDisplayString attribute.public void setModifiedItemDisplayString(SessionContext ctx, java.lang.String value)
SavedValues.modifiedItemDisplayString attribute.value - the modifiedItemDisplayString - Display String. @since 2.10public void setModifiedItemDisplayString(java.lang.String value)
SavedValues.modifiedItemDisplayString attribute.value - the modifiedItemDisplayString - Display String. @since 2.10public ComposedType getModifiedItemType(SessionContext ctx)
SavedValues.modifiedItemType attribute.public ComposedType getModifiedItemType()
SavedValues.modifiedItemType attribute.public void setModifiedItemType(SessionContext ctx, ComposedType value)
SavedValues.modifiedItemType attribute.value - the modifiedItemType - Typepublic void setModifiedItemType(ComposedType value)
SavedValues.modifiedItemType attribute.value - the modifiedItemType - Typepublic abstract java.lang.Integer getNumberOfChangedAttributes(SessionContext ctx)
SavedValues.numberOfChangedAttributes attribute.public java.lang.Integer getNumberOfChangedAttributes()
SavedValues.numberOfChangedAttributes attribute.public int getNumberOfChangedAttributesAsPrimitive(SessionContext ctx)
SavedValues.numberOfChangedAttributes attribute.public int getNumberOfChangedAttributesAsPrimitive()
SavedValues.numberOfChangedAttributes attribute.public java.util.Set<SavedValueEntry> getSavedValuesEntries(SessionContext ctx)
SavedValues.savedValuesEntries attribute.public java.util.Set<SavedValueEntry> getSavedValuesEntries()
SavedValues.savedValuesEntries attribute.public java.util.Date getTimestamp(SessionContext ctx)
SavedValues.timestamp attribute.public java.util.Date getTimestamp()
SavedValues.timestamp attribute.public void setTimestamp(SessionContext ctx, java.util.Date value)
SavedValues.timestamp attribute.value - the timestamp - the timestamp of the last modificationpublic void setTimestamp(java.util.Date value)
SavedValues.timestamp attribute.value - the timestamp - the timestamp of the last modificationpublic User getUser(SessionContext ctx)
SavedValues.user attribute.public User getUser()
SavedValues.user attribute.public void setUser(SessionContext ctx, User value)
SavedValues.user attribute.value - the user - the user, who has modified/saved/create this itempublic void setUser(User value)
SavedValues.user attribute.value - the user - the user, who has modified/saved/create this itemCopyright © 2018 SAP SE. All Rights Reserved.