@Entity public class JPAStorageRecord extends MutableStorageRecord
MutableStorageRecord annotated for JPA.| Modifier and Type | Class and Description |
|---|---|
static class |
JPAStorageRecord.RecordId
Composite key to represent the record id.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
context
Context string.
|
static int |
CONTEXT_SIZE
Length of the context column.
|
private String |
key
Key string.
|
static int |
KEY_SIZE
Length of the key column.
|
| Constructor and Description |
|---|
JPAStorageRecord()
Creates a new JPA storage record.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContext()
Returns the context.
|
Long |
getExpiration() |
String |
getKey()
Returns the key.
|
String |
getValue() |
long |
getVersion() |
void |
resetVersion()
Resets the version of this storage record to 1.
|
void |
setContext(String ctx)
Sets the context.
|
void |
setKey(String k)
Sets the key.
|
String |
toString() |
incrementVersion, setExpiration, setValuegetValue, setValue, setVersionpublic static final int CONTEXT_SIZE
public static final int KEY_SIZE
private String context
private String key
public JPAStorageRecord()
public void setContext(@Nonnull@NotEmpty String ctx)
ctx - to set@Nonnull public String getValue()
getValue in class StorageRecord@Nullable public Long getExpiration()
getExpiration in class StorageRecordpublic long getVersion()
getVersion in class StorageRecordpublic void resetVersion()
Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.