public abstract class GeneratedPaymentTransaction extends GenericItem
PaymentTransaction.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 |
CODE
Qualifier of the
PaymentTransaction.code attribute |
static java.lang.String |
CURRENCY
Qualifier of the
PaymentTransaction.currency attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
ENTRIES
Qualifier of the
PaymentTransaction.entries attribute |
protected static OneToManyHandler<PaymentTransactionEntry> |
ENTRIESHANDLER
OneToManyHandler for handling 1:n ENTRIES's relation attributes from 'many' side. |
static java.lang.String |
INFO
Qualifier of the
PaymentTransaction.info attribute |
static java.lang.String |
ORDER
Qualifier of the
PaymentTransaction.order attribute |
protected static BidirectionalOneToManyHandler<GeneratedPaymentTransaction> |
ORDERHANDLER
BidirectionalOneToManyHandler for handling 1:n ORDER's relation attributes from 'one' side. |
static java.lang.String |
PAYMENTPROVIDER
Qualifier of the
PaymentTransaction.paymentProvider attribute |
static java.lang.String |
PLANNEDAMOUNT
Qualifier of the
PaymentTransaction.plannedAmount attribute |
static java.lang.String |
REQUESTID
Qualifier of the
PaymentTransaction.requestId attribute |
static java.lang.String |
REQUESTTOKEN
Qualifier of the
PaymentTransaction.requestToken attribute |
static java.lang.String |
VERSIONID
Qualifier of the
PaymentTransaction.versionID 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 |
|---|
GeneratedPaymentTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToEntries(PaymentTransactionEntry value)
Generated method - Adds
value to entries. |
void |
addToEntries(SessionContext ctx,
PaymentTransactionEntry value)
Generated method - Adds
value to entries. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
java.lang.String |
getCode()
Generated method - Getter of the
PaymentTransaction.code attribute. |
java.lang.String |
getCode(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.code attribute. |
Currency |
getCurrency()
Generated method - Getter of the
PaymentTransaction.currency attribute. |
Currency |
getCurrency(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.currency attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.util.List<PaymentTransactionEntry> |
getEntries()
Generated method - Getter of the
PaymentTransaction.entries attribute. |
java.util.List<PaymentTransactionEntry> |
getEntries(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.entries attribute. |
PaymentInfo |
getInfo()
Generated method - Getter of the
PaymentTransaction.info attribute. |
PaymentInfo |
getInfo(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.info attribute. |
AbstractOrder |
getOrder()
Generated method - Getter of the
PaymentTransaction.order attribute. |
AbstractOrder |
getOrder(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.order attribute. |
java.lang.String |
getPaymentProvider()
Generated method - Getter of the
PaymentTransaction.paymentProvider attribute. |
java.lang.String |
getPaymentProvider(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.paymentProvider attribute. |
java.math.BigDecimal |
getPlannedAmount()
Generated method - Getter of the
PaymentTransaction.plannedAmount attribute. |
java.math.BigDecimal |
getPlannedAmount(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.plannedAmount attribute. |
java.lang.String |
getRequestId()
Generated method - Getter of the
PaymentTransaction.requestId attribute. |
java.lang.String |
getRequestId(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.requestId attribute. |
java.lang.String |
getRequestToken()
Generated method - Getter of the
PaymentTransaction.requestToken attribute. |
java.lang.String |
getRequestToken(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.requestToken attribute. |
java.lang.String |
getVersionID()
Generated method - Getter of the
PaymentTransaction.versionID attribute. |
java.lang.String |
getVersionID(SessionContext ctx)
Generated method - Getter of the
PaymentTransaction.versionID attribute. |
void |
removeFromEntries(PaymentTransactionEntry value)
Generated method - Removes
value from entries. |
void |
removeFromEntries(SessionContext ctx,
PaymentTransactionEntry value)
Generated method - Removes
value from entries. |
void |
setCode(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
PaymentTransaction.code attribute. |
void |
setCode(java.lang.String value)
Generated method - Setter of the
PaymentTransaction.code attribute. |
void |
setCurrency(Currency value)
Generated method - Setter of the
PaymentTransaction.currency attribute. |
void |
setCurrency(SessionContext ctx,
Currency value)
Generated method - Setter of the
PaymentTransaction.currency attribute. |
void |
setEntries(java.util.List<PaymentTransactionEntry> value)
Generated method - Setter of the
PaymentTransaction.entries attribute. |
void |
setEntries(SessionContext ctx,
java.util.List<PaymentTransactionEntry> value)
Generated method - Setter of the
PaymentTransaction.entries attribute. |
void |
setInfo(PaymentInfo value)
Generated method - Setter of the
PaymentTransaction.info attribute. |
void |
setInfo(SessionContext ctx,
PaymentInfo value)
Generated method - Setter of the
PaymentTransaction.info attribute. |
void |
setOrder(AbstractOrder value)
Generated method - Setter of the
PaymentTransaction.order attribute. |
void |
setOrder(SessionContext ctx,
AbstractOrder value)
Generated method - Setter of the
PaymentTransaction.order attribute. |
void |
setPaymentProvider(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
PaymentTransaction.paymentProvider attribute. |
void |
setPaymentProvider(java.lang.String value)
Generated method - Setter of the
PaymentTransaction.paymentProvider attribute. |
void |
setPlannedAmount(java.math.BigDecimal value)
Generated method - Setter of the
PaymentTransaction.plannedAmount attribute. |
void |
setPlannedAmount(SessionContext ctx,
java.math.BigDecimal value)
Generated method - Setter of the
PaymentTransaction.plannedAmount attribute. |
void |
setRequestId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
PaymentTransaction.requestId attribute. |
void |
setRequestId(java.lang.String value)
Generated method - Setter of the
PaymentTransaction.requestId attribute. |
void |
setRequestToken(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
PaymentTransaction.requestToken attribute. |
void |
setRequestToken(java.lang.String value)
Generated method - Setter of the
PaymentTransaction.requestToken attribute. |
protected void |
setVersionID(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
PaymentTransaction.versionID attribute. |
protected void |
setVersionID(java.lang.String value)
Generated method - Setter of the
PaymentTransaction.versionID 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 CODE
PaymentTransaction.code attributepublic static final java.lang.String REQUESTID
PaymentTransaction.requestId attributepublic static final java.lang.String REQUESTTOKEN
PaymentTransaction.requestToken attributepublic static final java.lang.String PAYMENTPROVIDER
PaymentTransaction.paymentProvider attributepublic static final java.lang.String PLANNEDAMOUNT
PaymentTransaction.plannedAmount attributepublic static final java.lang.String CURRENCY
PaymentTransaction.currency attributepublic static final java.lang.String INFO
PaymentTransaction.info attributepublic static final java.lang.String VERSIONID
PaymentTransaction.versionID attributepublic static final java.lang.String ENTRIES
PaymentTransaction.entries attributepublic static final java.lang.String ORDER
PaymentTransaction.order attributeprotected static final OneToManyHandler<PaymentTransactionEntry> ENTRIESHANDLER
OneToManyHandler for handling 1:n ENTRIES's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedPaymentTransaction> ORDERHANDLER
BidirectionalOneToManyHandler for handling 1:n ORDER'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 java.lang.String getCode(SessionContext ctx)
PaymentTransaction.code attribute.public java.lang.String getCode()
PaymentTransaction.code attribute.public void setCode(SessionContext ctx, java.lang.String value)
PaymentTransaction.code attribute.value - the codepublic void setCode(java.lang.String value)
PaymentTransaction.code attribute.value - the codeprotected 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 Currency getCurrency(SessionContext ctx)
PaymentTransaction.currency attribute.public Currency getCurrency()
PaymentTransaction.currency attribute.public void setCurrency(SessionContext ctx, Currency value)
PaymentTransaction.currency attribute.value - the currencypublic void setCurrency(Currency value)
PaymentTransaction.currency attribute.value - the currencypublic java.util.List<PaymentTransactionEntry> getEntries(SessionContext ctx)
PaymentTransaction.entries attribute.public java.util.List<PaymentTransactionEntry> getEntries()
PaymentTransaction.entries attribute.public void setEntries(SessionContext ctx, java.util.List<PaymentTransactionEntry> value)
PaymentTransaction.entries attribute.value - the entriespublic void setEntries(java.util.List<PaymentTransactionEntry> value)
PaymentTransaction.entries attribute.value - the entriespublic void addToEntries(SessionContext ctx, PaymentTransactionEntry value)
value to entries.value - the item to add to entriespublic void addToEntries(PaymentTransactionEntry value)
value to entries.value - the item to add to entriespublic void removeFromEntries(SessionContext ctx, PaymentTransactionEntry value)
value from entries.value - the item to remove from entriespublic void removeFromEntries(PaymentTransactionEntry value)
value from entries.value - the item to remove from entriespublic PaymentInfo getInfo(SessionContext ctx)
PaymentTransaction.info attribute.public PaymentInfo getInfo()
PaymentTransaction.info attribute.public void setInfo(SessionContext ctx, PaymentInfo value)
PaymentTransaction.info attribute.value - the infopublic void setInfo(PaymentInfo value)
PaymentTransaction.info attribute.value - the infopublic AbstractOrder getOrder(SessionContext ctx)
PaymentTransaction.order attribute.public AbstractOrder getOrder()
PaymentTransaction.order attribute.public void setOrder(SessionContext ctx, AbstractOrder value)
PaymentTransaction.order attribute.value - the orderpublic void setOrder(AbstractOrder value)
PaymentTransaction.order attribute.value - the orderpublic java.lang.String getPaymentProvider(SessionContext ctx)
PaymentTransaction.paymentProvider attribute.public java.lang.String getPaymentProvider()
PaymentTransaction.paymentProvider attribute.public void setPaymentProvider(SessionContext ctx, java.lang.String value)
PaymentTransaction.paymentProvider attribute.value - the paymentProviderpublic void setPaymentProvider(java.lang.String value)
PaymentTransaction.paymentProvider attribute.value - the paymentProviderpublic java.math.BigDecimal getPlannedAmount(SessionContext ctx)
PaymentTransaction.plannedAmount attribute.public java.math.BigDecimal getPlannedAmount()
PaymentTransaction.plannedAmount attribute.public void setPlannedAmount(SessionContext ctx, java.math.BigDecimal value)
PaymentTransaction.plannedAmount attribute.value - the plannedAmountpublic void setPlannedAmount(java.math.BigDecimal value)
PaymentTransaction.plannedAmount attribute.value - the plannedAmountpublic java.lang.String getRequestId(SessionContext ctx)
PaymentTransaction.requestId attribute.public java.lang.String getRequestId()
PaymentTransaction.requestId attribute.public void setRequestId(SessionContext ctx, java.lang.String value)
PaymentTransaction.requestId attribute.value - the requestIdpublic void setRequestId(java.lang.String value)
PaymentTransaction.requestId attribute.value - the requestIdpublic java.lang.String getRequestToken(SessionContext ctx)
PaymentTransaction.requestToken attribute.public java.lang.String getRequestToken()
PaymentTransaction.requestToken attribute.public void setRequestToken(SessionContext ctx, java.lang.String value)
PaymentTransaction.requestToken attribute.value - the requestTokenpublic void setRequestToken(java.lang.String value)
PaymentTransaction.requestToken attribute.value - the requestTokenpublic java.lang.String getVersionID(SessionContext ctx)
PaymentTransaction.versionID attribute.public java.lang.String getVersionID()
PaymentTransaction.versionID attribute.protected void setVersionID(SessionContext ctx, java.lang.String value)
PaymentTransaction.versionID attribute.value - the versionIDprotected void setVersionID(java.lang.String value)
PaymentTransaction.versionID attribute.value - the versionIDCopyright © 2018 SAP SE. All Rights Reserved.