Class JPAStorageRecord.RecordId

java.lang.Object
org.opensaml.storage.impl.JPAStorageRecord.RecordId
All Implemented Interfaces:
Serializable
Enclosing class:
JPAStorageRecord<T>

@Embeddable public static class JPAStorageRecord.RecordId extends Object implements Serializable
Composite key to represent the record id.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serial version UID.
      See Also:
    • context

      private String context
      Context string.
    • key

      private String key
      Key string.
  • Constructor Details

    • RecordId

      public RecordId()
      Default constructor.
    • RecordId

      public RecordId(@Nonnull @NotEmpty String ctx, @Nonnull @NotEmpty String k)
      Creates a new record Id.
      Parameters:
      ctx - context
      k - key
  • Method Details

    • getContext

      @Nonnull public String getContext()
      Returns the context.
      Returns:
      context
    • setContext

      public void setContext(@Nonnull @NotEmpty String ctx)
      Sets the context.
      Parameters:
      ctx - to set
    • getKey

      @Nonnull public String getKey()
      Returns the key.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull @NotEmpty String k)
      Sets the key.
      Parameters:
      k - to set
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object