Package org.keycloak.models.jpa.session
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.Returns the value of theclientStorageProviderrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalClientIdrecord component.getData()intfinal inthashCode()Returns a hash code value for this object.offline()Returns the value of theofflinerecord component.realmId()Returns the value of therealmIdrecord component.voidsetClientId(String clientId) voidvoidsetTimestamp(int timestamp) voidsetUserSessionId(String userSessionId) intReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserSessionIdrecord component.
-
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 aImmutablePersistentClientSessionEntityrecord class.- Parameters:
userSessionId- the value for theuserSessionIdrecord componentclientId- the value for theclientIdrecord componentclientStorageProvider- the value for theclientStorageProviderrecord componentexternalClientId- the value for theexternalClientIdrecord componentoffline- the value for theofflinerecord componentdata- the value for thedatarecord componentrealmId- the value for therealmIdrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
getUserSessionId
- Specified by:
getUserSessionIdin interfacePersistentClientSessionModel
-
setUserSessionId
- Specified by:
setUserSessionIdin interfacePersistentClientSessionModel
-
getClientId
- Specified by:
getClientIdin interfacePersistentClientSessionModel
-
setClientId
- Specified by:
setClientIdin interfacePersistentClientSessionModel
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestampin interfacePersistentClientSessionModel
-
setTimestamp
public void setTimestamp(int timestamp) - Specified by:
setTimestampin interfacePersistentClientSessionModel
-
getData
- Specified by:
getDatain interfacePersistentClientSessionModel
-
setData
- Specified by:
setDatain interfacePersistentClientSessionModel
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
userSessionId
Returns the value of theuserSessionIdrecord component.- Returns:
- the value of the
userSessionIdrecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientStorageProvider
Returns the value of theclientStorageProviderrecord component.- Returns:
- the value of the
clientStorageProviderrecord component
-
externalClientId
Returns the value of theexternalClientIdrecord component.- Returns:
- the value of the
externalClientIdrecord component
-
offline
Returns the value of theofflinerecord component.- Returns:
- the value of the
offlinerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
realmId
Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-
timestamp
public int timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-