public abstract class GeneratedProductFeature extends GenericItem
ProductFeature.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 |
BOOLEANVALUE
Qualifier of the
ProductFeature.booleanValue attribute |
static String |
CLASSIFICATIONATTRIBUTEASSIGNMENT
Qualifier of the
ProductFeature.classificationAttributeAssignment attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DESCRIPTION
Qualifier of the
ProductFeature.description attribute |
static String |
FEATUREPOSITION
Qualifier of the
ProductFeature.featurePosition attribute |
static String |
LANGUAGE
Qualifier of the
ProductFeature.language attribute |
static String |
NUMBERVALUE
Qualifier of the
ProductFeature.numberValue attribute |
static String |
PRODUCT
Qualifier of the
ProductFeature.product attribute |
protected static BidirectionalOneToManyHandler<GeneratedProductFeature> |
PRODUCTHANDLER
BidirectionalOneToManyHandler for handling 1:n PRODUCT's relation attributes from 'one' side. |
static String |
PRODUCTPOS
Qualifier of the
ProductFeature.productPOS attribute |
static String |
QUALIFIER
Qualifier of the
ProductFeature.qualifier attribute |
static String |
RAWVALUE
Qualifier of the
ProductFeature.rawValue attribute |
static String |
STRINGVALUE
Qualifier of the
ProductFeature.stringValue attribute |
static String |
UNIT
Qualifier of the
ProductFeature.unit attribute |
static String |
VALUEDETAILS
Qualifier of the
ProductFeature.valueDetails attribute |
static String |
VALUEPOSITION
Qualifier of the
ProductFeature.valuePosition attribute |
static String |
VALUETYPE
Qualifier of the
ProductFeature.valueType 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 |
|---|
GeneratedProductFeature() |
| 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.
|
ClassAttributeAssignment |
getClassificationAttributeAssignment()
Generated method - Getter of the
ProductFeature.classificationAttributeAssignment attribute. |
ClassAttributeAssignment |
getClassificationAttributeAssignment(SessionContext ctx)
Generated method - Getter of the
ProductFeature.classificationAttributeAssignment attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDescription()
Generated method - Getter of the
ProductFeature.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
ProductFeature.description attribute. |
Integer |
getFeaturePosition()
Generated method - Getter of the
ProductFeature.featurePosition attribute. |
Integer |
getFeaturePosition(SessionContext ctx)
Generated method - Getter of the
ProductFeature.featurePosition attribute. |
int |
getFeaturePositionAsPrimitive()
Generated method - Getter of the
ProductFeature.featurePosition attribute. |
int |
getFeaturePositionAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductFeature.featurePosition attribute. |
Language |
getLanguage()
Generated method - Getter of the
ProductFeature.language attribute. |
Language |
getLanguage(SessionContext ctx)
Generated method - Getter of the
ProductFeature.language attribute. |
Product |
getProduct()
Generated method - Getter of the
ProductFeature.product attribute. |
Product |
getProduct(SessionContext ctx)
Generated method - Getter of the
ProductFeature.product attribute. |
String |
getQualifier()
Generated method - Getter of the
ProductFeature.qualifier attribute. |
String |
getQualifier(SessionContext ctx)
Generated method - Getter of the
ProductFeature.qualifier attribute. |
ClassificationAttributeUnit |
getUnit()
Generated method - Getter of the
ProductFeature.unit attribute. |
ClassificationAttributeUnit |
getUnit(SessionContext ctx)
Generated method - Getter of the
ProductFeature.unit attribute. |
String |
getValueDetails()
Generated method - Getter of the
ProductFeature.valueDetails attribute. |
String |
getValueDetails(SessionContext ctx)
Generated method - Getter of the
ProductFeature.valueDetails attribute. |
Integer |
getValuePosition()
Generated method - Getter of the
ProductFeature.valuePosition attribute. |
Integer |
getValuePosition(SessionContext ctx)
Generated method - Getter of the
ProductFeature.valuePosition attribute. |
int |
getValuePositionAsPrimitive()
Generated method - Getter of the
ProductFeature.valuePosition attribute. |
int |
getValuePositionAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductFeature.valuePosition attribute. |
protected void |
setClassificationAttributeAssignment(ClassAttributeAssignment value)
Generated method - Setter of the
ProductFeature.classificationAttributeAssignment attribute. |
protected void |
setClassificationAttributeAssignment(SessionContext ctx,
ClassAttributeAssignment value)
Generated method - Setter of the
ProductFeature.classificationAttributeAssignment attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
ProductFeature.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
ProductFeature.description attribute. |
void |
setFeaturePosition(int value)
Generated method - Setter of the
ProductFeature.featurePosition attribute. |
void |
setFeaturePosition(Integer value)
Generated method - Setter of the
ProductFeature.featurePosition attribute. |
void |
setFeaturePosition(SessionContext ctx,
int value)
Generated method - Setter of the
ProductFeature.featurePosition attribute. |
void |
setFeaturePosition(SessionContext ctx,
Integer value)
Generated method - Setter of the
ProductFeature.featurePosition attribute. |
protected void |
setLanguage(Language value)
Generated method - Setter of the
ProductFeature.language attribute. |
protected void |
setLanguage(SessionContext ctx,
Language value)
Generated method - Setter of the
ProductFeature.language attribute. |
protected void |
setProduct(Product value)
Generated method - Setter of the
ProductFeature.product attribute. |
protected void |
setProduct(SessionContext ctx,
Product value)
Generated method - Setter of the
ProductFeature.product attribute. |
protected void |
setQualifier(SessionContext ctx,
String value)
Generated method - Setter of the
ProductFeature.qualifier attribute. |
protected void |
setQualifier(String value)
Generated method - Setter of the
ProductFeature.qualifier attribute. |
void |
setUnit(ClassificationAttributeUnit value)
Generated method - Setter of the
ProductFeature.unit attribute. |
void |
setUnit(SessionContext ctx,
ClassificationAttributeUnit value)
Generated method - Setter of the
ProductFeature.unit attribute. |
void |
setValueDetails(SessionContext ctx,
String value)
Generated method - Setter of the
ProductFeature.valueDetails attribute. |
void |
setValueDetails(String value)
Generated method - Setter of the
ProductFeature.valueDetails attribute. |
void |
setValuePosition(int value)
Generated method - Setter of the
ProductFeature.valuePosition attribute. |
void |
setValuePosition(Integer value)
Generated method - Setter of the
ProductFeature.valuePosition attribute. |
void |
setValuePosition(SessionContext ctx,
int value)
Generated method - Setter of the
ProductFeature.valuePosition attribute. |
void |
setValuePosition(SessionContext ctx,
Integer value)
Generated method - Setter of the
ProductFeature.valuePosition 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
ProductFeature.qualifier attributepublic static final String CLASSIFICATIONATTRIBUTEASSIGNMENT
ProductFeature.classificationAttributeAssignment attributepublic static final String LANGUAGE
ProductFeature.language attributepublic static final String VALUEPOSITION
ProductFeature.valuePosition attributepublic static final String FEATUREPOSITION
ProductFeature.featurePosition attributepublic static final String VALUETYPE
ProductFeature.valueType attributepublic static final String STRINGVALUE
ProductFeature.stringValue attributepublic static final String BOOLEANVALUE
ProductFeature.booleanValue attributepublic static final String NUMBERVALUE
ProductFeature.numberValue attributepublic static final String RAWVALUE
ProductFeature.rawValue attributepublic static final String UNIT
ProductFeature.unit attributepublic static final String VALUEDETAILS
ProductFeature.valueDetails attributepublic static final String DESCRIPTION
ProductFeature.description attributepublic static final String PRODUCTPOS
ProductFeature.productPOS attributepublic static final String PRODUCT
ProductFeature.product attributeprotected static final BidirectionalOneToManyHandler<GeneratedProductFeature> PRODUCTHANDLER
BidirectionalOneToManyHandler for handling 1:n PRODUCT'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 ClassAttributeAssignment getClassificationAttributeAssignment(SessionContext ctx)
ProductFeature.classificationAttributeAssignment attribute.public ClassAttributeAssignment getClassificationAttributeAssignment()
ProductFeature.classificationAttributeAssignment attribute.protected void setClassificationAttributeAssignment(SessionContext ctx, ClassAttributeAssignment value)
ProductFeature.classificationAttributeAssignment attribute.value - the classificationAttributeAssignment - Classification attribute assignment which this value belongs toprotected void setClassificationAttributeAssignment(ClassAttributeAssignment value)
ProductFeature.classificationAttributeAssignment attribute.value - the classificationAttributeAssignment - Classification attribute assignment which this value belongs toprotected 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)
ProductFeature.description attribute.public String getDescription()
ProductFeature.description attribute.public void setDescription(SessionContext ctx, String value)
ProductFeature.description attribute.value - the description - description textpublic void setDescription(String value)
ProductFeature.description attribute.value - the description - description textpublic Integer getFeaturePosition(SessionContext ctx)
ProductFeature.featurePosition attribute.public Integer getFeaturePosition()
ProductFeature.featurePosition attribute.public int getFeaturePositionAsPrimitive(SessionContext ctx)
ProductFeature.featurePosition attribute.public int getFeaturePositionAsPrimitive()
ProductFeature.featurePosition attribute.public void setFeaturePosition(SessionContext ctx, Integer value)
ProductFeature.featurePosition attribute.value - the featurePosition - position of the feature which this value belongs topublic void setFeaturePosition(Integer value)
ProductFeature.featurePosition attribute.value - the featurePosition - position of the feature which this value belongs topublic void setFeaturePosition(SessionContext ctx, int value)
ProductFeature.featurePosition attribute.value - the featurePosition - position of the feature which this value belongs topublic void setFeaturePosition(int value)
ProductFeature.featurePosition attribute.value - the featurePosition - position of the feature which this value belongs topublic Language getLanguage(SessionContext ctx)
ProductFeature.language attribute.public Language getLanguage()
ProductFeature.language attribute.protected void setLanguage(SessionContext ctx, Language value)
ProductFeature.language attribute.value - the languageprotected void setLanguage(Language value)
ProductFeature.language attribute.value - the languagepublic Product getProduct(SessionContext ctx)
ProductFeature.product attribute.public Product getProduct()
ProductFeature.product attribute.protected void setProduct(SessionContext ctx, Product value)
ProductFeature.product attribute.value - the productprotected void setProduct(Product value)
ProductFeature.product attribute.value - the productpublic String getQualifier(SessionContext ctx)
ProductFeature.qualifier attribute.public String getQualifier()
ProductFeature.qualifier attribute.protected void setQualifier(SessionContext ctx, String value)
ProductFeature.qualifier attribute.value - the qualifier - Qualifierprotected void setQualifier(String value)
ProductFeature.qualifier attribute.value - the qualifier - Qualifierpublic ClassificationAttributeUnit getUnit(SessionContext ctx)
ProductFeature.unit attribute.public ClassificationAttributeUnit getUnit()
ProductFeature.unit attribute.public void setUnit(SessionContext ctx, ClassificationAttributeUnit value)
ProductFeature.unit attribute.value - the unit - Classification attribute unitpublic void setUnit(ClassificationAttributeUnit value)
ProductFeature.unit attribute.value - the unit - Classification attribute unitpublic String getValueDetails(SessionContext ctx)
ProductFeature.valueDetails attribute.public String getValueDetails()
ProductFeature.valueDetails attribute.public void setValueDetails(SessionContext ctx, String value)
ProductFeature.valueDetails attribute.value - the valueDetails - value details textpublic void setValueDetails(String value)
ProductFeature.valueDetails attribute.value - the valueDetails - value details textpublic Integer getValuePosition(SessionContext ctx)
ProductFeature.valuePosition attribute.public Integer getValuePosition()
ProductFeature.valuePosition attribute.public int getValuePositionAsPrimitive(SessionContext ctx)
ProductFeature.valuePosition attribute.public int getValuePositionAsPrimitive()
ProductFeature.valuePosition attribute.public void setValuePosition(SessionContext ctx, Integer value)
ProductFeature.valuePosition attribute.value - the valuePosition - position mark for multi value featurespublic void setValuePosition(Integer value)
ProductFeature.valuePosition attribute.value - the valuePosition - position mark for multi value featurespublic void setValuePosition(SessionContext ctx, int value)
ProductFeature.valuePosition attribute.value - the valuePosition - position mark for multi value featurespublic void setValuePosition(int value)
ProductFeature.valuePosition attribute.value - the valuePosition - position mark for multi value featuresCopyright © 2017 SAP SE. All Rights Reserved.