Record Class FallbackCacheMeta.FallbackCacheRow
java.lang.Object
java.lang.Record
com.inductiveautomation.vision.auth.FallbackCacheMeta.FallbackCacheRow
- Enclosing class:
- FallbackCacheMeta
-
Constructor Summary
ConstructorsConstructorDescriptionFallbackCacheRow(String username, String userJson, String hashedPassword, long timestamp) Creates an instance of aFallbackCacheRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehashedPasswordrecord component.longReturns the value of thetimestamprecord component.voidtoRow(PreparedStatement statement) final StringtoString()Returns a string representation of this record class.userJson()Returns the value of theuserJsonrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
FallbackCacheRow
Creates an instance of aFallbackCacheRowrecord class.- Parameters:
username- the value for theusernamerecord componentuserJson- the value for theuserJsonrecord componenthashedPassword- the value for thehashedPasswordrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
fromRow
- Throws:
SQLException
-
toRow
- Throws:
SQLException
-
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 '=='. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
userJson
Returns the value of theuserJsonrecord component.- Returns:
- the value of the
userJsonrecord component
-
hashedPassword
Returns the value of thehashedPasswordrecord component.- Returns:
- the value of the
hashedPasswordrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-