Record Class ImmutablePersistentClientSessionEntity

java.lang.Object
java.lang.Record
org.keycloak.models.jpa.session.ImmutablePersistentClientSessionEntity
All Implemented Interfaces:
PersistentClientSessionModel

public record ImmutablePersistentClientSessionEntity(String userSessionId, String clientId, String clientStorageProvider, String externalClientId, String offline, String data, String realmId, int timestamp) extends Record implements PersistentClientSessionModel
An immutable PersistentClientSessionEntity to optimize read-only queries.
  • Constructor Details

    • ImmutablePersistentClientSessionEntity

      public ImmutablePersistentClientSessionEntity(String userSessionId, String clientId, String clientStorageProvider, String externalClientId, String offline, String data, String realmId, int timestamp)
      Creates an instance of a ImmutablePersistentClientSessionEntity record class.
      Parameters:
      userSessionId - the value for the userSessionId record component
      clientId - the value for the clientId record component
      clientStorageProvider - the value for the clientStorageProvider record component
      externalClientId - the value for the externalClientId record component
      offline - the value for the offline record component
      data - the value for the data record component
      realmId - the value for the realmId record component
      timestamp - the value for the timestamp record component
  • Method Details

    • getUserSessionId

      public String getUserSessionId()
      Specified by:
      getUserSessionId in interface PersistentClientSessionModel
    • setUserSessionId

      public void setUserSessionId(String userSessionId)
      Specified by:
      setUserSessionId in interface PersistentClientSessionModel
    • getClientId

      public String getClientId()
      Specified by:
      getClientId in interface PersistentClientSessionModel
    • setClientId

      public void setClientId(String clientId)
      Specified by:
      setClientId in interface PersistentClientSessionModel
    • getTimestamp

      public int getTimestamp()
      Specified by:
      getTimestamp in interface PersistentClientSessionModel
    • setTimestamp

      public void setTimestamp(int timestamp)
      Specified by:
      setTimestamp in interface PersistentClientSessionModel
    • getData

      public String getData()
      Specified by:
      getData in interface PersistentClientSessionModel
    • setData

      public void setData(String data)
      Specified by:
      setData in interface PersistentClientSessionModel
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • userSessionId

      public String userSessionId()
      Returns the value of the userSessionId record component.
      Returns:
      the value of the userSessionId record component
    • clientId

      public String clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • clientStorageProvider

      public String clientStorageProvider()
      Returns the value of the clientStorageProvider record component.
      Returns:
      the value of the clientStorageProvider record component
    • externalClientId

      public String externalClientId()
      Returns the value of the externalClientId record component.
      Returns:
      the value of the externalClientId record component
    • offline

      public String offline()
      Returns the value of the offline record component.
      Returns:
      the value of the offline record component
    • data

      public String data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component
    • realmId

      public String realmId()
      Returns the value of the realmId record component.
      Returns:
      the value of the realmId record component
    • timestamp

      public int timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component