Class JpaSubscriptionLock

java.lang.Object
com.broadleafcommerce.subscription.provider.jpa.domain.JpaSubscriptionLock

@Entity public class JpaSubscriptionLock extends Object
Represents a lock on a subscription.
  • Constructor Details

    • JpaSubscriptionLock

      public JpaSubscriptionLock()
  • Method Details

    • getId

      public String 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

      public Instant getCreatedDate()
      The date and time that the lock was created. Required.
    • getExpiresDate

      public Instant getExpiresDate()
      The date and time that the lock expires. Optional.
    • getParentLock

      public String getParentLock()
      The ID of the parent lock. Optional. Only applies to child locks.
    • getLockState

      public String getLockState()
      The state of the lock. See LockState.
    • setId

      public void setId(String id)
      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

      public void setCreatedDate(Instant createdDate)
      The date and time that the lock was created. Required.
    • setExpiresDate

      public void setExpiresDate(Instant expiresDate)
      The date and time that the lock expires. Optional.
    • setParentLock

      public void setParentLock(String parentLock)
      The ID of the parent lock. Optional. Only applies to child locks.
    • setLockState

      public void setLockState(String lockState)
      The state of the lock. See LockState.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object