public abstract class StorageItem extends Object
| Constructor and Description |
|---|
StorageItem() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
fromJson(com.google.gwt.json.client.JSONValue json)
Used to convert the JSONValue object (as stored in local and remote
storage) back to the object itself.
|
void |
fromJson(StorageItem storageItem)
Convenience method to read the attributes of the StorageItem in and assign
them internally from a Json read object which is inherited from
StrorageItem
|
void |
fromJson(String jsonString)
Converts back from a json string to the object itself
|
String |
getId() |
String |
getJsonFileName() |
String |
getLogId()
Retrieve a unique key to identify StorageItems for log entries
|
String |
getStorageItemIdKey()
Retrieve a unique key to identify StorageItems in a key/value storage
|
String |
getStorageItemTimeKey()
Retrieve a unique key to identify StorageItems Save Time in a key/value
storage
|
String |
getTypeName() |
Integer |
getVersion() |
static boolean |
isStorageItemIdKey(String key) |
static boolean |
isStorageItemKey(String key) |
static boolean |
isStorageItemTimeKey(String key) |
void |
setId(String id) |
void |
setVersion(Integer version) |
abstract com.google.gwt.json.client.JSONValue |
toJson()
Used to convert the object value to a JsonValue.
|
String |
toString()
Retrieves the current object state as stringified JSON value
|
public StorageItem()
public String getStorageItemIdKey()
public String getStorageItemTimeKey()
public static boolean isStorageItemKey(String key)
public static boolean isStorageItemIdKey(String key)
public static boolean isStorageItemTimeKey(String key)
public String getLogId()
public void setVersion(Integer version)
public Integer getVersion()
public String getTypeName()
public String getJsonFileName()
public abstract com.google.gwt.json.client.JSONValue toJson()
public abstract void fromJson(com.google.gwt.json.client.JSONValue json)
storedItem - The value which was stored in the LocalStore and should be
transformed back into the object.public final void fromJson(StorageItem storageItem)
storageItem - The item from which the values must be read and assignpublic void fromJson(String jsonString)
jsonString - Copyright © 2016. All rights reserved.