Package de.hybris.platform.payment.jalo
Class GeneratedPaymentTransaction
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.payment.jalo.GeneratedPaymentTransaction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
PaymentTransaction
public abstract class GeneratedPaymentTransaction extends GenericItem
Generated class for typePaymentTransaction
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CODE
Qualifier of thePaymentTransaction.code
attributestatic java.lang.String
CURRENCY
Qualifier of thePaymentTransaction.currency
attributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
ENTRIES
Qualifier of thePaymentTransaction.entries
attributeprotected static OneToManyHandler<PaymentTransactionEntry>
ENTRIESHANDLER
OneToManyHandler
for handling 1:n ENTRIES's relation attributes from 'many' side.static java.lang.String
INFO
Qualifier of thePaymentTransaction.info
attributestatic java.lang.String
ORDER
Qualifier of thePaymentTransaction.order
attributeprotected static BidirectionalOneToManyHandler<GeneratedPaymentTransaction>
ORDERHANDLER
BidirectionalOneToManyHandler
for handling 1:n ORDER's relation attributes from 'one' side.static java.lang.String
PAYMENTPROVIDER
Qualifier of thePaymentTransaction.paymentProvider
attributestatic java.lang.String
PLANNEDAMOUNT
Qualifier of thePaymentTransaction.plannedAmount
attributestatic java.lang.String
REQUESTID
Qualifier of thePaymentTransaction.requestId
attributestatic java.lang.String
REQUESTTOKEN
Qualifier of thePaymentTransaction.requestToken
attributestatic java.lang.String
VERSIONID
Qualifier of thePaymentTransaction.versionID
attribute-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedPaymentTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToEntries(SessionContext ctx, PaymentTransactionEntry value)
Generated method - Addsvalue
to entries.void
addToEntries(PaymentTransactionEntry value)
Generated method - Addsvalue
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 thePaymentTransaction.code
attribute.java.lang.String
getCode(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.code
attribute.Currency
getCurrency()
Generated method - Getter of thePaymentTransaction.currency
attribute.Currency
getCurrency(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.currency
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
java.util.List<PaymentTransactionEntry>
getEntries()
Generated method - Getter of thePaymentTransaction.entries
attribute.java.util.List<PaymentTransactionEntry>
getEntries(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.entries
attribute.PaymentInfo
getInfo()
Generated method - Getter of thePaymentTransaction.info
attribute.PaymentInfo
getInfo(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.info
attribute.AbstractOrder
getOrder()
Generated method - Getter of thePaymentTransaction.order
attribute.AbstractOrder
getOrder(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.order
attribute.java.lang.String
getPaymentProvider()
Generated method - Getter of thePaymentTransaction.paymentProvider
attribute.java.lang.String
getPaymentProvider(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.paymentProvider
attribute.java.math.BigDecimal
getPlannedAmount()
Generated method - Getter of thePaymentTransaction.plannedAmount
attribute.java.math.BigDecimal
getPlannedAmount(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.plannedAmount
attribute.java.lang.String
getRequestId()
Generated method - Getter of thePaymentTransaction.requestId
attribute.java.lang.String
getRequestId(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.requestId
attribute.java.lang.String
getRequestToken()
Generated method - Getter of thePaymentTransaction.requestToken
attribute.java.lang.String
getRequestToken(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.requestToken
attribute.java.lang.String
getVersionID()
Generated method - Getter of thePaymentTransaction.versionID
attribute.java.lang.String
getVersionID(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.versionID
attribute.void
removeFromEntries(SessionContext ctx, PaymentTransactionEntry value)
Generated method - Removesvalue
from entries.void
removeFromEntries(PaymentTransactionEntry value)
Generated method - Removesvalue
from entries.void
setCode(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.code
attribute.void
setCode(java.lang.String value)
Generated method - Setter of thePaymentTransaction.code
attribute.void
setCurrency(Currency value)
Generated method - Setter of thePaymentTransaction.currency
attribute.void
setCurrency(SessionContext ctx, Currency value)
Generated method - Setter of thePaymentTransaction.currency
attribute.void
setEntries(SessionContext ctx, java.util.List<PaymentTransactionEntry> value)
Generated method - Setter of thePaymentTransaction.entries
attribute.void
setEntries(java.util.List<PaymentTransactionEntry> value)
Generated method - Setter of thePaymentTransaction.entries
attribute.void
setInfo(PaymentInfo value)
Generated method - Setter of thePaymentTransaction.info
attribute.void
setInfo(SessionContext ctx, PaymentInfo value)
Generated method - Setter of thePaymentTransaction.info
attribute.void
setOrder(AbstractOrder value)
Generated method - Setter of thePaymentTransaction.order
attribute.void
setOrder(SessionContext ctx, AbstractOrder value)
Generated method - Setter of thePaymentTransaction.order
attribute.void
setPaymentProvider(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.paymentProvider
attribute.void
setPaymentProvider(java.lang.String value)
Generated method - Setter of thePaymentTransaction.paymentProvider
attribute.void
setPlannedAmount(SessionContext ctx, java.math.BigDecimal value)
Generated method - Setter of thePaymentTransaction.plannedAmount
attribute.void
setPlannedAmount(java.math.BigDecimal value)
Generated method - Setter of thePaymentTransaction.plannedAmount
attribute.void
setRequestId(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestId
attribute.void
setRequestId(java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestId
attribute.void
setRequestToken(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestToken
attribute.void
setRequestToken(java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestToken
attribute.protected void
setVersionID(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.versionID
attribute.protected void
setVersionID(java.lang.String value)
Generated method - Setter of thePaymentTransaction.versionID
attribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, 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, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
CODE
public static final java.lang.String CODE
Qualifier of thePaymentTransaction.code
attribute- See Also:
- Constant Field Values
-
REQUESTID
public static final java.lang.String REQUESTID
Qualifier of thePaymentTransaction.requestId
attribute- See Also:
- Constant Field Values
-
REQUESTTOKEN
public static final java.lang.String REQUESTTOKEN
Qualifier of thePaymentTransaction.requestToken
attribute- See Also:
- Constant Field Values
-
PAYMENTPROVIDER
public static final java.lang.String PAYMENTPROVIDER
Qualifier of thePaymentTransaction.paymentProvider
attribute- See Also:
- Constant Field Values
-
PLANNEDAMOUNT
public static final java.lang.String PLANNEDAMOUNT
Qualifier of thePaymentTransaction.plannedAmount
attribute- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Qualifier of thePaymentTransaction.currency
attribute- See Also:
- Constant Field Values
-
INFO
public static final java.lang.String INFO
Qualifier of thePaymentTransaction.info
attribute- See Also:
- Constant Field Values
-
VERSIONID
public static final java.lang.String VERSIONID
Qualifier of thePaymentTransaction.versionID
attribute- See Also:
- Constant Field Values
-
ENTRIES
public static final java.lang.String ENTRIES
Qualifier of thePaymentTransaction.entries
attribute- See Also:
- Constant Field Values
-
ORDER
public static final java.lang.String ORDER
Qualifier of thePaymentTransaction.order
attribute- See Also:
- Constant Field Values
-
ENTRIESHANDLER
protected static final OneToManyHandler<PaymentTransactionEntry> ENTRIESHANDLER
OneToManyHandler
for handling 1:n ENTRIES's relation attributes from 'many' side.
-
ORDERHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedPaymentTransaction> ORDERHANDLER
BidirectionalOneToManyHandler
for handling 1:n ORDER's relation attributes from 'one' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModes
in classItem
-
getCode
public java.lang.String getCode(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.code
attribute.- Returns:
- the code
-
getCode
public java.lang.String getCode()
Generated method - Getter of thePaymentTransaction.code
attribute.- Returns:
- the code
-
setCode
public void setCode(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.code
attribute.- Parameters:
value
- the code
-
setCode
public void setCode(java.lang.String value)
Generated method - Setter of thePaymentTransaction.code
attribute.- Parameters:
value
- the code
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:Item
Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.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; }
- Overrides:
createItem
in classGenericItem
- Parameters:
ctx
- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException
- indicates an error during creation - any changes will be rollbacked
-
getCurrency
public Currency getCurrency(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.currency
attribute.- Returns:
- the currency
-
getCurrency
public Currency getCurrency()
Generated method - Getter of thePaymentTransaction.currency
attribute.- Returns:
- the currency
-
setCurrency
public void setCurrency(SessionContext ctx, Currency value)
Generated method - Setter of thePaymentTransaction.currency
attribute.- Parameters:
value
- the currency
-
setCurrency
public void setCurrency(Currency value)
Generated method - Setter of thePaymentTransaction.currency
attribute.- Parameters:
value
- the currency
-
getEntries
public java.util.List<PaymentTransactionEntry> getEntries(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.entries
attribute.- Returns:
- the entries
-
getEntries
public java.util.List<PaymentTransactionEntry> getEntries()
Generated method - Getter of thePaymentTransaction.entries
attribute.- Returns:
- the entries
-
setEntries
public void setEntries(SessionContext ctx, java.util.List<PaymentTransactionEntry> value)
Generated method - Setter of thePaymentTransaction.entries
attribute.- Parameters:
value
- the entries
-
setEntries
public void setEntries(java.util.List<PaymentTransactionEntry> value)
Generated method - Setter of thePaymentTransaction.entries
attribute.- Parameters:
value
- the entries
-
addToEntries
public void addToEntries(SessionContext ctx, PaymentTransactionEntry value)
Generated method - Addsvalue
to entries.- Parameters:
value
- the item to add to entries
-
addToEntries
public void addToEntries(PaymentTransactionEntry value)
Generated method - Addsvalue
to entries.- Parameters:
value
- the item to add to entries
-
removeFromEntries
public void removeFromEntries(SessionContext ctx, PaymentTransactionEntry value)
Generated method - Removesvalue
from entries.- Parameters:
value
- the item to remove from entries
-
removeFromEntries
public void removeFromEntries(PaymentTransactionEntry value)
Generated method - Removesvalue
from entries.- Parameters:
value
- the item to remove from entries
-
getInfo
public PaymentInfo getInfo(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.info
attribute.- Returns:
- the info
-
getInfo
public PaymentInfo getInfo()
Generated method - Getter of thePaymentTransaction.info
attribute.- Returns:
- the info
-
setInfo
public void setInfo(SessionContext ctx, PaymentInfo value)
Generated method - Setter of thePaymentTransaction.info
attribute.- Parameters:
value
- the info
-
setInfo
public void setInfo(PaymentInfo value)
Generated method - Setter of thePaymentTransaction.info
attribute.- Parameters:
value
- the info
-
getOrder
public AbstractOrder getOrder(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.order
attribute.- Returns:
- the order
-
getOrder
public AbstractOrder getOrder()
Generated method - Getter of thePaymentTransaction.order
attribute.- Returns:
- the order
-
setOrder
public void setOrder(SessionContext ctx, AbstractOrder value)
Generated method - Setter of thePaymentTransaction.order
attribute.- Parameters:
value
- the order
-
setOrder
public void setOrder(AbstractOrder value)
Generated method - Setter of thePaymentTransaction.order
attribute.- Parameters:
value
- the order
-
getPaymentProvider
public java.lang.String getPaymentProvider(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.paymentProvider
attribute.- Returns:
- the paymentProvider
-
getPaymentProvider
public java.lang.String getPaymentProvider()
Generated method - Getter of thePaymentTransaction.paymentProvider
attribute.- Returns:
- the paymentProvider
-
setPaymentProvider
public void setPaymentProvider(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.paymentProvider
attribute.- Parameters:
value
- the paymentProvider
-
setPaymentProvider
public void setPaymentProvider(java.lang.String value)
Generated method - Setter of thePaymentTransaction.paymentProvider
attribute.- Parameters:
value
- the paymentProvider
-
getPlannedAmount
public java.math.BigDecimal getPlannedAmount(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.plannedAmount
attribute.- Returns:
- the plannedAmount
-
getPlannedAmount
public java.math.BigDecimal getPlannedAmount()
Generated method - Getter of thePaymentTransaction.plannedAmount
attribute.- Returns:
- the plannedAmount
-
setPlannedAmount
public void setPlannedAmount(SessionContext ctx, java.math.BigDecimal value)
Generated method - Setter of thePaymentTransaction.plannedAmount
attribute.- Parameters:
value
- the plannedAmount
-
setPlannedAmount
public void setPlannedAmount(java.math.BigDecimal value)
Generated method - Setter of thePaymentTransaction.plannedAmount
attribute.- Parameters:
value
- the plannedAmount
-
getRequestId
public java.lang.String getRequestId(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.requestId
attribute.- Returns:
- the requestId
-
getRequestId
public java.lang.String getRequestId()
Generated method - Getter of thePaymentTransaction.requestId
attribute.- Returns:
- the requestId
-
setRequestId
public void setRequestId(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestId
attribute.- Parameters:
value
- the requestId
-
setRequestId
public void setRequestId(java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestId
attribute.- Parameters:
value
- the requestId
-
getRequestToken
public java.lang.String getRequestToken(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.requestToken
attribute.- Returns:
- the requestToken
-
getRequestToken
public java.lang.String getRequestToken()
Generated method - Getter of thePaymentTransaction.requestToken
attribute.- Returns:
- the requestToken
-
setRequestToken
public void setRequestToken(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestToken
attribute.- Parameters:
value
- the requestToken
-
setRequestToken
public void setRequestToken(java.lang.String value)
Generated method - Setter of thePaymentTransaction.requestToken
attribute.- Parameters:
value
- the requestToken
-
getVersionID
public java.lang.String getVersionID(SessionContext ctx)
Generated method - Getter of thePaymentTransaction.versionID
attribute.- Returns:
- the versionID
-
getVersionID
public java.lang.String getVersionID()
Generated method - Getter of thePaymentTransaction.versionID
attribute.- Returns:
- the versionID
-
setVersionID
protected void setVersionID(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePaymentTransaction.versionID
attribute.- Parameters:
value
- the versionID
-
setVersionID
protected void setVersionID(java.lang.String value)
Generated method - Setter of thePaymentTransaction.versionID
attribute.- Parameters:
value
- the versionID
-
-