public abstract class GeneratedProductReference extends GenericItem
ProductReference.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 String |
ACTIVE
Qualifier of the
ProductReference.active attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DESCRIPTION
Qualifier of the
ProductReference.description attribute |
static String |
ICON
Qualifier of the
ProductReference.icon attribute |
static String |
PRESELECTED
Qualifier of the
ProductReference.preselected attribute |
static String |
QUALIFIER
Qualifier of the
ProductReference.qualifier attribute |
static String |
QUANTITY
Qualifier of the
ProductReference.quantity attribute |
static String |
REFERENCETYPE
Qualifier of the
ProductReference.referenceType attribute |
static String |
SOURCE
Qualifier of the
ProductReference.source attribute |
protected static BidirectionalOneToManyHandler<GeneratedProductReference> |
SOURCEHANDLER
BidirectionalOneToManyHandler for handling 1:n SOURCE's relation attributes from 'one' side. |
static String |
SOURCEPOS
Qualifier of the
ProductReference.sourcePOS attribute |
static String |
TARGET
Qualifier of the
ProductReference.target 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 |
|---|
GeneratedProductReference() |
| 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.
|
Map<Language,String> |
getAllDescription()
Generated method - Getter of the
ProductReference.description attribute. |
Map<Language,String> |
getAllDescription(SessionContext ctx)
Generated method - Getter of the
ProductReference.description attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDescription()
Generated method - Getter of the
ProductReference.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
ProductReference.description attribute. |
Media |
getIcon()
Generated method - Getter of the
ProductReference.icon attribute. |
Media |
getIcon(SessionContext ctx)
Generated method - Getter of the
ProductReference.icon attribute. |
String |
getQualifier()
Generated method - Getter of the
ProductReference.qualifier attribute. |
String |
getQualifier(SessionContext ctx)
Generated method - Getter of the
ProductReference.qualifier attribute. |
Integer |
getQuantity()
Generated method - Getter of the
ProductReference.quantity attribute. |
Integer |
getQuantity(SessionContext ctx)
Generated method - Getter of the
ProductReference.quantity attribute. |
int |
getQuantityAsPrimitive()
Generated method - Getter of the
ProductReference.quantity attribute. |
int |
getQuantityAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductReference.quantity attribute. |
EnumerationValue |
getReferenceType()
Generated method - Getter of the
ProductReference.referenceType attribute. |
EnumerationValue |
getReferenceType(SessionContext ctx)
Generated method - Getter of the
ProductReference.referenceType attribute. |
Product |
getSource()
Generated method - Getter of the
ProductReference.source attribute. |
Product |
getSource(SessionContext ctx)
Generated method - Getter of the
ProductReference.source attribute. |
Product |
getTarget()
Generated method - Getter of the
ProductReference.target attribute. |
Product |
getTarget(SessionContext ctx)
Generated method - Getter of the
ProductReference.target attribute. |
Boolean |
isActive()
Generated method - Getter of the
ProductReference.active attribute. |
Boolean |
isActive(SessionContext ctx)
Generated method - Getter of the
ProductReference.active attribute. |
boolean |
isActiveAsPrimitive()
Generated method - Getter of the
ProductReference.active attribute. |
boolean |
isActiveAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductReference.active attribute. |
Boolean |
isPreselected()
Generated method - Getter of the
ProductReference.preselected attribute. |
Boolean |
isPreselected(SessionContext ctx)
Generated method - Getter of the
ProductReference.preselected attribute. |
boolean |
isPreselectedAsPrimitive()
Generated method - Getter of the
ProductReference.preselected attribute. |
boolean |
isPreselectedAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductReference.preselected attribute. |
void |
setActive(boolean value)
Generated method - Setter of the
ProductReference.active attribute. |
void |
setActive(Boolean value)
Generated method - Setter of the
ProductReference.active attribute. |
void |
setActive(SessionContext ctx,
boolean value)
Generated method - Setter of the
ProductReference.active attribute. |
void |
setActive(SessionContext ctx,
Boolean value)
Generated method - Setter of the
ProductReference.active attribute. |
void |
setAllDescription(Map<Language,String> value)
Generated method - Setter of the
ProductReference.description attribute. |
void |
setAllDescription(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
ProductReference.description attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
ProductReference.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
ProductReference.description attribute. |
void |
setIcon(Media value)
Generated method - Setter of the
ProductReference.icon attribute. |
void |
setIcon(SessionContext ctx,
Media value)
Generated method - Setter of the
ProductReference.icon attribute. |
void |
setPreselected(boolean value)
Generated method - Setter of the
ProductReference.preselected attribute. |
void |
setPreselected(Boolean value)
Generated method - Setter of the
ProductReference.preselected attribute. |
void |
setPreselected(SessionContext ctx,
boolean value)
Generated method - Setter of the
ProductReference.preselected attribute. |
void |
setPreselected(SessionContext ctx,
Boolean value)
Generated method - Setter of the
ProductReference.preselected attribute. |
void |
setQualifier(SessionContext ctx,
String value)
Generated method - Setter of the
ProductReference.qualifier attribute. |
void |
setQualifier(String value)
Generated method - Setter of the
ProductReference.qualifier attribute. |
void |
setQuantity(int value)
Generated method - Setter of the
ProductReference.quantity attribute. |
void |
setQuantity(Integer value)
Generated method - Setter of the
ProductReference.quantity attribute. |
void |
setQuantity(SessionContext ctx,
int value)
Generated method - Setter of the
ProductReference.quantity attribute. |
void |
setQuantity(SessionContext ctx,
Integer value)
Generated method - Setter of the
ProductReference.quantity attribute. |
void |
setReferenceType(EnumerationValue value)
Generated method - Setter of the
ProductReference.referenceType attribute. |
void |
setReferenceType(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
ProductReference.referenceType attribute. |
protected void |
setSource(Product value)
Generated method - Setter of the
ProductReference.source attribute. |
protected void |
setSource(SessionContext ctx,
Product value)
Generated method - Setter of the
ProductReference.source attribute. |
void |
setTarget(Product value)
Generated method - Setter of the
ProductReference.target attribute. |
void |
setTarget(SessionContext ctx,
Product value)
Generated method - Setter of the
ProductReference.target attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, 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, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, 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, writeReplacegetImplementation, setTenantpublic static final String QUALIFIER
ProductReference.qualifier attributepublic static final String TARGET
ProductReference.target attributepublic static final String QUANTITY
ProductReference.quantity attributepublic static final String REFERENCETYPE
ProductReference.referenceType attributepublic static final String ICON
ProductReference.icon attributepublic static final String DESCRIPTION
ProductReference.description attributepublic static final String PRESELECTED
ProductReference.preselected attributepublic static final String ACTIVE
ProductReference.active attributepublic static final String SOURCEPOS
ProductReference.sourcePOS attributepublic static final String SOURCE
ProductReference.source attributeprotected static final BidirectionalOneToManyHandler<GeneratedProductReference> SOURCEHANDLER
BidirectionalOneToManyHandler for handling 1:n SOURCE's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic Boolean isActive(SessionContext ctx)
ProductReference.active attribute.public Boolean isActive()
ProductReference.active attribute.public boolean isActiveAsPrimitive(SessionContext ctx)
ProductReference.active attribute.public boolean isActiveAsPrimitive()
ProductReference.active attribute.public void setActive(SessionContext ctx, Boolean value)
ProductReference.active attribute.value - the activepublic void setActive(Boolean value)
ProductReference.active attribute.value - the activepublic void setActive(SessionContext ctx, boolean value)
ProductReference.active attribute.value - the activepublic void setActive(boolean value)
ProductReference.active attribute.value - the activeprotected 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 String getDescription(SessionContext ctx)
ProductReference.description attribute.public String getDescription()
ProductReference.description attribute.public Map<Language,String> getAllDescription(SessionContext ctx)
ProductReference.description attribute.public Map<Language,String> getAllDescription()
ProductReference.description attribute.public void setDescription(SessionContext ctx, String value)
ProductReference.description attribute.value - the descriptionpublic void setDescription(String value)
ProductReference.description attribute.value - the descriptionpublic void setAllDescription(SessionContext ctx, Map<Language,String> value)
ProductReference.description attribute.value - the descriptionpublic void setAllDescription(Map<Language,String> value)
ProductReference.description attribute.value - the descriptionpublic Media getIcon(SessionContext ctx)
ProductReference.icon attribute.public Media getIcon()
ProductReference.icon attribute.public void setIcon(SessionContext ctx, Media value)
ProductReference.icon attribute.value - the iconpublic void setIcon(Media value)
ProductReference.icon attribute.value - the iconpublic Boolean isPreselected(SessionContext ctx)
ProductReference.preselected attribute.public Boolean isPreselected()
ProductReference.preselected attribute.public boolean isPreselectedAsPrimitive(SessionContext ctx)
ProductReference.preselected attribute.public boolean isPreselectedAsPrimitive()
ProductReference.preselected attribute.public void setPreselected(SessionContext ctx, Boolean value)
ProductReference.preselected attribute.value - the preselectedpublic void setPreselected(Boolean value)
ProductReference.preselected attribute.value - the preselectedpublic void setPreselected(SessionContext ctx, boolean value)
ProductReference.preselected attribute.value - the preselectedpublic void setPreselected(boolean value)
ProductReference.preselected attribute.value - the preselectedpublic String getQualifier(SessionContext ctx)
ProductReference.qualifier attribute.public String getQualifier()
ProductReference.qualifier attribute.public void setQualifier(SessionContext ctx, String value)
ProductReference.qualifier attribute.value - the qualifier - Qualifierpublic void setQualifier(String value)
ProductReference.qualifier attribute.value - the qualifier - Qualifierpublic Integer getQuantity(SessionContext ctx)
ProductReference.quantity attribute.public Integer getQuantity()
ProductReference.quantity attribute.public int getQuantityAsPrimitive(SessionContext ctx)
ProductReference.quantity attribute.public int getQuantityAsPrimitive()
ProductReference.quantity attribute.public void setQuantity(SessionContext ctx, Integer value)
ProductReference.quantity attribute.value - the quantity - Quantitypublic void setQuantity(Integer value)
ProductReference.quantity attribute.value - the quantity - Quantitypublic void setQuantity(SessionContext ctx, int value)
ProductReference.quantity attribute.value - the quantity - Quantitypublic void setQuantity(int value)
ProductReference.quantity attribute.value - the quantity - Quantitypublic EnumerationValue getReferenceType(SessionContext ctx)
ProductReference.referenceType attribute.public EnumerationValue getReferenceType()
ProductReference.referenceType attribute.public void setReferenceType(SessionContext ctx, EnumerationValue value)
ProductReference.referenceType attribute.value - the referenceTypepublic void setReferenceType(EnumerationValue value)
ProductReference.referenceType attribute.value - the referenceTypepublic Product getSource(SessionContext ctx)
ProductReference.source attribute.public Product getSource()
ProductReference.source attribute.protected void setSource(SessionContext ctx, Product value)
ProductReference.source attribute.value - the sourceprotected void setSource(Product value)
ProductReference.source attribute.value - the sourcepublic Product getTarget(SessionContext ctx)
ProductReference.target attribute.public Product getTarget()
ProductReference.target attribute.public void setTarget(SessionContext ctx, Product value)
ProductReference.target attribute.value - the target - Targetpublic void setTarget(Product value)
ProductReference.target attribute.value - the target - TargetCopyright © 2017 SAP SE. All Rights Reserved.