public abstract class GeneratedUsageCharge extends GenericItem
UsageCharge.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 |
CATALOGVERSION
Qualifier of the
UsageCharge.catalogVersion attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
ID
Qualifier of the
UsageCharge.id attribute |
static String |
NAME
Qualifier of the
UsageCharge.name attribute |
static String |
SUBSCRIPTIONPRICEPLANUSAGE
Qualifier of the
UsageCharge.subscriptionPricePlanUsage attribute |
protected static BidirectionalOneToManyHandler<GeneratedUsageCharge> |
SUBSCRIPTIONPRICEPLANUSAGEHANDLER
BidirectionalOneToManyHandler for handling 1:n SUBSCRIPTIONPRICEPLANUSAGE's relation attributes from 'one' side. |
static String |
USAGECHARGEENTRIES
Qualifier of the
UsageCharge.usageChargeEntries attribute |
protected static OneToManyHandler<UsageChargeEntry> |
USAGECHARGEENTRIESHANDLER
OneToManyHandler for handling 1:n USAGECHARGEENTRIES's relation attributes from 'many' side. |
static String |
USAGEUNIT
Qualifier of the
UsageCharge.usageUnit 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 |
|---|
GeneratedUsageCharge() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToUsageChargeEntries(SessionContext ctx,
UsageChargeEntry value)
Generated method - Adds
value to usageChargeEntries. |
void |
addToUsageChargeEntries(UsageChargeEntry value)
Generated method - Adds
value to usageChargeEntries. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
Map<Language,String> |
getAllName()
Generated method - Getter of the
UsageCharge.name attribute. |
Map<Language,String> |
getAllName(SessionContext ctx)
Generated method - Getter of the
UsageCharge.name attribute. |
CatalogVersion |
getCatalogVersion()
Generated method - Getter of the
UsageCharge.catalogVersion attribute. |
CatalogVersion |
getCatalogVersion(SessionContext ctx)
Generated method - Getter of the
UsageCharge.catalogVersion attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getId()
Generated method - Getter of the
UsageCharge.id attribute. |
String |
getId(SessionContext ctx)
Generated method - Getter of the
UsageCharge.id attribute. |
String |
getName()
Generated method - Getter of the
UsageCharge.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
UsageCharge.name attribute. |
SubscriptionPricePlan |
getSubscriptionPricePlanUsage()
Generated method - Getter of the
UsageCharge.subscriptionPricePlanUsage attribute. |
SubscriptionPricePlan |
getSubscriptionPricePlanUsage(SessionContext ctx)
Generated method - Getter of the
UsageCharge.subscriptionPricePlanUsage attribute. |
Collection<UsageChargeEntry> |
getUsageChargeEntries()
Generated method - Getter of the
UsageCharge.usageChargeEntries attribute. |
Collection<UsageChargeEntry> |
getUsageChargeEntries(SessionContext ctx)
Generated method - Getter of the
UsageCharge.usageChargeEntries attribute. |
UsageUnit |
getUsageUnit()
Generated method - Getter of the
UsageCharge.usageUnit attribute. |
UsageUnit |
getUsageUnit(SessionContext ctx)
Generated method - Getter of the
UsageCharge.usageUnit attribute. |
void |
removeFromUsageChargeEntries(SessionContext ctx,
UsageChargeEntry value)
Generated method - Removes
value from usageChargeEntries. |
void |
removeFromUsageChargeEntries(UsageChargeEntry value)
Generated method - Removes
value from usageChargeEntries. |
void |
setAllName(Map<Language,String> value)
Generated method - Setter of the
UsageCharge.name attribute. |
void |
setAllName(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
UsageCharge.name attribute. |
protected void |
setCatalogVersion(CatalogVersion value)
Generated method - Setter of the
UsageCharge.catalogVersion attribute. |
protected void |
setCatalogVersion(SessionContext ctx,
CatalogVersion value)
Generated method - Setter of the
UsageCharge.catalogVersion attribute. |
protected void |
setId(SessionContext ctx,
String value)
Generated method - Setter of the
UsageCharge.id attribute. |
protected void |
setId(String value)
Generated method - Setter of the
UsageCharge.id attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
UsageCharge.name attribute. |
void |
setName(String value)
Generated method - Setter of the
UsageCharge.name attribute. |
void |
setSubscriptionPricePlanUsage(SessionContext ctx,
SubscriptionPricePlan value)
Generated method - Setter of the
UsageCharge.subscriptionPricePlanUsage attribute. |
void |
setSubscriptionPricePlanUsage(SubscriptionPricePlan value)
Generated method - Setter of the
UsageCharge.subscriptionPricePlanUsage attribute. |
void |
setUsageChargeEntries(Collection<UsageChargeEntry> value)
Generated method - Setter of the
UsageCharge.usageChargeEntries attribute. |
void |
setUsageChargeEntries(SessionContext ctx,
Collection<UsageChargeEntry> value)
Generated method - Setter of the
UsageCharge.usageChargeEntries attribute. |
void |
setUsageUnit(SessionContext ctx,
UsageUnit value)
Generated method - Setter of the
UsageCharge.usageUnit attribute. |
void |
setUsageUnit(UsageUnit value)
Generated method - Setter of the
UsageCharge.usageUnit 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 ID
UsageCharge.id attributepublic static final String CATALOGVERSION
UsageCharge.catalogVersion attributepublic static final String NAME
UsageCharge.name attributepublic static final String USAGEUNIT
UsageCharge.usageUnit attributepublic static final String SUBSCRIPTIONPRICEPLANUSAGE
UsageCharge.subscriptionPricePlanUsage attributepublic static final String USAGECHARGEENTRIES
UsageCharge.usageChargeEntries attributeprotected static final BidirectionalOneToManyHandler<GeneratedUsageCharge> SUBSCRIPTIONPRICEPLANUSAGEHANDLER
BidirectionalOneToManyHandler for handling 1:n SUBSCRIPTIONPRICEPLANUSAGE's relation attributes from 'one' side.protected static final OneToManyHandler<UsageChargeEntry> USAGECHARGEENTRIESHANDLER
OneToManyHandler for handling 1:n USAGECHARGEENTRIES's relation attributes from 'many' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic CatalogVersion getCatalogVersion(SessionContext ctx)
UsageCharge.catalogVersion attribute.public CatalogVersion getCatalogVersion()
UsageCharge.catalogVersion attribute.protected void setCatalogVersion(SessionContext ctx, CatalogVersion value)
UsageCharge.catalogVersion attribute.value - the catalogVersion - Catalog Versionprotected void setCatalogVersion(CatalogVersion value)
UsageCharge.catalogVersion attribute.value - the catalogVersion - Catalog Versionprotected 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 getId(SessionContext ctx)
UsageCharge.id attribute.public String getId()
UsageCharge.id attribute.protected void setId(SessionContext ctx, String value)
UsageCharge.id attribute.value - the id - Identifierprotected void setId(String value)
UsageCharge.id attribute.value - the id - Identifierpublic String getName(SessionContext ctx)
UsageCharge.name attribute.public String getName()
UsageCharge.name attribute.public Map<Language,String> getAllName(SessionContext ctx)
UsageCharge.name attribute.public Map<Language,String> getAllName()
UsageCharge.name attribute.public void setName(SessionContext ctx, String value)
UsageCharge.name attribute.value - the name - Namepublic void setName(String value)
UsageCharge.name attribute.value - the name - Namepublic void setAllName(SessionContext ctx, Map<Language,String> value)
UsageCharge.name attribute.value - the name - Namepublic void setAllName(Map<Language,String> value)
UsageCharge.name attribute.value - the name - Namepublic SubscriptionPricePlan getSubscriptionPricePlanUsage(SessionContext ctx)
UsageCharge.subscriptionPricePlanUsage attribute.public SubscriptionPricePlan getSubscriptionPricePlanUsage()
UsageCharge.subscriptionPricePlanUsage attribute.public void setSubscriptionPricePlanUsage(SessionContext ctx, SubscriptionPricePlan value)
UsageCharge.subscriptionPricePlanUsage attribute.value - the subscriptionPricePlanUsagepublic void setSubscriptionPricePlanUsage(SubscriptionPricePlan value)
UsageCharge.subscriptionPricePlanUsage attribute.value - the subscriptionPricePlanUsagepublic Collection<UsageChargeEntry> getUsageChargeEntries(SessionContext ctx)
UsageCharge.usageChargeEntries attribute.public Collection<UsageChargeEntry> getUsageChargeEntries()
UsageCharge.usageChargeEntries attribute.public void setUsageChargeEntries(SessionContext ctx, Collection<UsageChargeEntry> value)
UsageCharge.usageChargeEntries attribute.value - the usageChargeEntriespublic void setUsageChargeEntries(Collection<UsageChargeEntry> value)
UsageCharge.usageChargeEntries attribute.value - the usageChargeEntriespublic void addToUsageChargeEntries(SessionContext ctx, UsageChargeEntry value)
value to usageChargeEntries.value - the item to add to usageChargeEntriespublic void addToUsageChargeEntries(UsageChargeEntry value)
value to usageChargeEntries.value - the item to add to usageChargeEntriespublic void removeFromUsageChargeEntries(SessionContext ctx, UsageChargeEntry value)
value from usageChargeEntries.value - the item to remove from usageChargeEntriespublic void removeFromUsageChargeEntries(UsageChargeEntry value)
value from usageChargeEntries.value - the item to remove from usageChargeEntriespublic UsageUnit getUsageUnit(SessionContext ctx)
UsageCharge.usageUnit attribute.public UsageUnit getUsageUnit()
UsageCharge.usageUnit attribute.public void setUsageUnit(SessionContext ctx, UsageUnit value)
UsageCharge.usageUnit attribute.value - the usageUnit - Usage Unitpublic void setUsageUnit(UsageUnit value)
UsageCharge.usageUnit attribute.value - the usageUnit - Usage UnitCopyright © 2017 SAP SE. All Rights Reserved.