Class JpaSubscriptionLock
java.lang.Object
com.broadleafcommerce.subscription.provider.jpa.domain.JpaSubscriptionLock
Represents a lock on a subscription.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe date and time that the lock was created.The date and time that the lock expires.getId()Primary key.The state of the lock.The ID of the parent lock.inthashCode()voidsetCreatedDate(Instant createdDate) The date and time that the lock was created.voidsetExpiresDate(Instant expiresDate) The date and time that the lock expires.voidPrimary key.voidsetLockState(String lockState) The state of the lock.voidsetParentLock(String parentLock) The ID of the parent lock.toString()
-
Constructor Details
-
JpaSubscriptionLock
public JpaSubscriptionLock()
-
-
Method Details
-
getId
Primary key. For top-level locks, this is the subscription ID. For child locks, this is a hyphenated string of the parent lock ID and the child lock ID. -
getCreatedDate
The date and time that the lock was created. Required. -
getExpiresDate
The date and time that the lock expires. Optional. -
getParentLock
The ID of the parent lock. Optional. Only applies to child locks. -
getLockState
The state of the lock. SeeLockState. -
setId
Primary key. For top-level locks, this is the subscription ID. For child locks, this is a hyphenated string of the parent lock ID and the child lock ID. -
setCreatedDate
The date and time that the lock was created. Required. -
setExpiresDate
The date and time that the lock expires. Optional. -
setParentLock
The ID of the parent lock. Optional. Only applies to child locks. -
setLockState
The state of the lock. SeeLockState. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-