Class JpaTransaction
java.lang.Object
com.broadleafcommerce.creditaccount.provider.jpa.domain.JpaTransaction
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>,com.broadleafcommerce.data.tracking.core.Trackable,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>,Serializable
@Entity
@TrackableExtension(TENANT)
public class JpaTransaction
extends Object
implements com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()javax.money.MonetaryAmountjavax.money.MonetaryAmountClass<?>The JPA primary key.A reference to the credit account this transaction belongs to.javax.money.CurrencyUnitcom.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTrackinggetType()intThe JPA managed version of this credit account.inthashCode()voidsetAmount(javax.money.MonetaryAmount amount) voidsetAmountRemaining(javax.money.MonetaryAmount amountRemaining) voidsetContextId(String contextId) The JPA primary key.voidsetCreditAccount(JpaCreditAccount creditAccount) A reference to the credit account this transaction belongs to.voidsetDateRecorded(Instant dateRecorded) voidsetExpirationDate(Instant expirationDate) voidvoidsetReasonDescription(String reasonDescription) voidsetRelatedTransactionDetails(List<RelatedTransactionDetail> relatedTransactionDetails) voidsetRequestId(String requestId) voidvoidsetSourceEntityId(String sourceEntityId) voidsetSourceEntityType(String sourceEntityType) voidsetSourceUserId(String sourceUserId) voidsetSourceUserType(String sourceUserType) voidsetSubType(String subType) voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) voidsetTransactionReferenceId(String transactionReferenceId) voidvoidsetVersion(int version) The JPA managed version of this credit account.org.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStatesMethods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaTransaction
public JpaTransaction()
-
-
Method Details
-
getAmount
public javax.money.MonetaryAmount getAmount() -
setAmount
public void setAmount(javax.money.MonetaryAmount amount) -
getAmountRemaining
@Nullable public javax.money.MonetaryAmount getAmountRemaining() -
setAmountRemaining
public void setAmountRemaining(@Nullable javax.money.MonetaryAmount amountRemaining) -
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getContextId
The JPA primary key.- Specified by:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- the jpa primary key
-
getCreditAccount
A reference to the credit account this transaction belongs to. -
getTransactionReferenceId
- See Also:
-
getRequestId
- See Also:
-
getType
- See Also:
-
getSubType
- See Also:
-
getSource
- See Also:
-
getSourceUserType
- See Also:
-
getSourceUserId
- See Also:
-
getSourceEntityType
- See Also:
-
getSourceEntityId
- See Also:
-
getReason
- See Also:
-
getReasonDescription
- See Also:
-
getDateRecorded
- See Also:
-
getExpirationDate
- See Also:
-
getRelatedTransactionDetails
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getVersion
public int getVersion()The JPA managed version of this credit account. This should not be modified by application code. See JPA's@Version. -
setContextId
The JPA primary key.- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Parameters:
contextId- the jpa primary key
-
setCreditAccount
A reference to the credit account this transaction belongs to. -
setTransactionReferenceId
- See Also:
-
setRequestId
- See Also:
-
setType
- See Also:
-
setSubType
- See Also:
-
setSource
- See Also:
-
setSourceUserType
- See Also:
-
setSourceUserId
- See Also:
-
setSourceEntityType
- See Also:
-
setSourceEntityId
- See Also:
-
setReason
- See Also:
-
setReasonDescription
- See Also:
-
setDateRecorded
- See Also:
-
setExpirationDate
- See Also:
-
setRelatedTransactionDetails
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) - Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
-
setVersion
public void setVersion(int version) The JPA managed version of this credit account. This should not be modified by application code. See JPA's@Version. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-