Class SingleUseObjectEntity

java.lang.Object
org.keycloak.singleobject.jpa.SingleUseObjectEntity
All Implemented Interfaces:
AsynchronousCommitAllowed

@Entity public class SingleUseObjectEntity extends Object implements AsynchronousCommitAllowed
  • Constructor Details

    • SingleUseObjectEntity

      public SingleUseObjectEntity()
  • Method Details

    • isAsyncCommitAllowed

      public boolean isAsyncCommitAllowed(AsynchronousCommitAllowed.EntityOperationType operationType)
      Description copied from interface: AsynchronousCommitAllowed
      Whether this entity allows asynchronous commit for the given operation type.

      Returning false for any operation that occurs during a transaction will force synchronous commit for the entire transaction.

      Specified by:
      isAsyncCommitAllowed in interface AsynchronousCommitAllowed
      Parameters:
      operationType - the type of database operation being performed
      Returns:
      true if the operation can tolerate asynchronous commit
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getNotes

      public String getNotes()
    • setNotes

      public void setNotes(String notes)
    • getExpire

      public long getExpire()
    • setExpire

      public void setExpire(long expire)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object