Package org.opensaml.storage.impl
Class JPAStorageRecord<T>
java.lang.Object
org.opensaml.storage.StorageRecord<T>
org.opensaml.storage.MutableStorageRecord<T>
org.opensaml.storage.impl.JPAStorageRecord<T>
- Type Parameters:
T
- type of object
Implementation of
MutableStorageRecord
annotated for JPA.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Composite key to represent the record id. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the context.Get the record expiration.getKey()
Returns the key.getValue()
Get the record value.long
Get the record version.void
Resets the version of this storage record to 1.void
setContext
(String ctx) Sets the context.void
Sets the key.toString()
Methods inherited from class org.opensaml.storage.MutableStorageRecord
incrementVersion, setExpiration, setValue
Methods inherited from class org.opensaml.storage.StorageRecord
getValue, setValue, setVersion
-
Field Details
-
CONTEXT_SIZE
public static final int CONTEXT_SIZELength of the context column.- See Also:
-
KEY_SIZE
public static final int KEY_SIZELength of the key column.- See Also:
-
context
Context string. -
key
Key string.
-
-
Constructor Details
-
JPAStorageRecord
public JPAStorageRecord()Creates a new JPA storage record. All properties initialized to null.
-
-
Method Details
-
getContext
Returns the context.- Returns:
- context
-
setContext
Sets the context.- Parameters:
ctx
- to set
-
getKey
Returns the key.- Returns:
- key
-
setKey
Sets the key.- Parameters:
k
- to set
-
getValue
Get the record value.- Overrides:
getValue
in classStorageRecord<T>
- Returns:
- the record value
-
getExpiration
Get the record expiration.- Overrides:
getExpiration
in classStorageRecord<T>
- Returns:
- the record expiration, or null if none
-
getVersion
public long getVersion()Get the record version.- Overrides:
getVersion
in classStorageRecord<T>
- Returns:
- the record version
-
resetVersion
public void resetVersion()Resets the version of this storage record to 1. -
toString
-