@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 |
---|---|
static int |
CONTEXT_SIZE
Length of the context column.
|
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()
Get the record expiration.
|
String |
getKey()
Returns the key.
|
String |
getValue()
Get the record value.
|
long |
getVersion()
Get the record version.
|
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, setValue
getValue, setValue, setVersion
public static final int CONTEXT_SIZE
public static final int KEY_SIZE
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 StorageRecord
public long getVersion()
getVersion
in class StorageRecord
public void resetVersion()
Copyright © 2019. All rights reserved.