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 boolean
boolean
org.modelmapper.ModelMapper
fromMe()
javax.money.MonetaryAmount
javax.money.MonetaryAmount
Class<?>
The JPA primary key.A reference to the credit account this transaction belongs to.javax.money.CurrencyUnit
com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
getType()
int
The JPA managed version of this credit account.int
hashCode()
void
setAmount
(javax.money.MonetaryAmount amount) void
setAmountRemaining
(javax.money.MonetaryAmount amountRemaining) void
setContextId
(String contextId) The JPA primary key.void
setCreditAccount
(JpaCreditAccount creditAccount) A reference to the credit account this transaction belongs to.void
setDateRecorded
(Instant dateRecorded) void
setExpirationDate
(Instant expirationDate) void
void
setReasonDescription
(String reasonDescription) void
setRelatedTransactionDetails
(List<RelatedTransactionDetail> relatedTransactionDetails) void
setRequestId
(String requestId) void
void
setSourceEntityId
(String sourceEntityId) void
setSourceEntityType
(String sourceEntityType) void
setSourceUserId
(String sourceUserId) void
setSourceUserType
(String sourceUserType) void
setSubType
(String subType) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) void
setTransactionReferenceId
(String transactionReferenceId) void
void
setVersion
(int version) The JPA managed version of this credit account.org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStates
Methods 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:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getContextId
The JPA primary key.- Specified by:
getContextId
in 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:
getTracking
in 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:
setContextId
in 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:
setTracking
in 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()
-