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 java.lang.String |
CATALOGVERSION
Qualifier of the
UsageCharge.catalogVersion attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
ID
Qualifier of the
UsageCharge.id attribute |
static java.lang.String |
NAME
Qualifier of the
UsageCharge.name attribute |
static java.lang.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 java.lang.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 java.lang.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.
|
java.util.Map<Language,java.lang.String> |
getAllName()
Generated method - Getter of the
UsageCharge.name attribute. |
java.util.Map<Language,java.lang.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 java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getId()
Generated method - Getter of the
UsageCharge.id attribute. |
java.lang.String |
getId(SessionContext ctx)
Generated method - Getter of the
UsageCharge.id attribute. |
java.lang.String |
getName()
Generated method - Getter of the
UsageCharge.name attribute. |
java.lang.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. |
java.util.Collection<UsageChargeEntry> |
getUsageChargeEntries()
Generated method - Getter of the
UsageCharge.usageChargeEntries attribute. |
java.util.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(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
UsageCharge.name attribute. |
void |
setAllName(SessionContext ctx,
java.util.Map<Language,java.lang.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,
java.lang.String value)
Generated method - Setter of the
UsageCharge.id attribute. |
protected void |
setId(java.lang.String value)
Generated method - Setter of the
UsageCharge.id attribute. |
void |
setName(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
UsageCharge.name attribute. |
void |
setName(java.lang.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(java.util.Collection<UsageChargeEntry> value)
Generated method - Setter of the
UsageCharge.usageChargeEntries attribute. |
void |
setUsageChargeEntries(SessionContext ctx,
java.util.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, 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 ID
UsageCharge.id attributepublic static final java.lang.String CATALOGVERSION
UsageCharge.catalogVersion attributepublic static final java.lang.String NAME
UsageCharge.name attributepublic static final java.lang.String USAGEUNIT
UsageCharge.usageUnit attributepublic static final java.lang.String SUBSCRIPTIONPRICEPLANUSAGE
UsageCharge.subscriptionPricePlanUsage attributepublic static final java.lang.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 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 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 java.lang.String getId(SessionContext ctx)
UsageCharge.id attribute.public java.lang.String getId()
UsageCharge.id attribute.protected void setId(SessionContext ctx, java.lang.String value)
UsageCharge.id attribute.value - the id - Identifierprotected void setId(java.lang.String value)
UsageCharge.id attribute.value - the id - Identifierpublic java.lang.String getName(SessionContext ctx)
UsageCharge.name attribute.public java.lang.String getName()
UsageCharge.name attribute.public java.util.Map<Language,java.lang.String> getAllName(SessionContext ctx)
UsageCharge.name attribute.public java.util.Map<Language,java.lang.String> getAllName()
UsageCharge.name attribute.public void setName(SessionContext ctx, java.lang.String value)
UsageCharge.name attribute.value - the name - Namepublic void setName(java.lang.String value)
UsageCharge.name attribute.value - the name - Namepublic void setAllName(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
UsageCharge.name attribute.value - the name - Namepublic void setAllName(java.util.Map<Language,java.lang.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 java.util.Collection<UsageChargeEntry> getUsageChargeEntries(SessionContext ctx)
UsageCharge.usageChargeEntries attribute.public java.util.Collection<UsageChargeEntry> getUsageChargeEntries()
UsageCharge.usageChargeEntries attribute.public void setUsageChargeEntries(SessionContext ctx, java.util.Collection<UsageChargeEntry> value)
UsageCharge.usageChargeEntries attribute.value - the usageChargeEntriespublic void setUsageChargeEntries(java.util.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 © 2018 SAP SE. All Rights Reserved.