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 classComposite 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.longGet the record version.voidResets the version of this storage record to 1.voidsetContext(String ctx) Sets the context.voidSets the key.toString()Methods inherited from class org.opensaml.storage.MutableStorageRecord
incrementVersion, setExpiration, setValueMethods 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:
getValuein classStorageRecord<T>- Returns:
- the record value
-
getExpiration
Get the record expiration.- Overrides:
getExpirationin classStorageRecord<T>- Returns:
- the record expiration, or null if none
-
getVersion
public long getVersion()Get the record version.- Overrides:
getVersionin classStorageRecord<T>- Returns:
- the record version
-
resetVersion
public void resetVersion()Resets the version of this storage record to 1. -
toString
-