public class RecordSerializer extends Object
| Constructor and Description |
|---|
RecordSerializer(String sDataDirectory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
delete(Class<?> cl,
String sKey)
Deletes the object instance file corresponding to the given key
|
Object |
load(Class<?> cl,
String sKey)
Load an object from the instance file corresponding to the given key
|
void |
save(Object obj,
String sKey)
Save the given object in a instance file indentifying by the given key
|
public RecordSerializer(String sDataDirectory)
sDataDirectory - : the full path of the directory where to store the instances filespublic void save(Object obj, String sKey)
obj - : the object to savesKey - : the key to use to identify the instancepublic Object load(Class<?> cl, String sKey)
cl - : the class of the object to loadsKey - : the key of the object to loadpublic int delete(Class<?> cl, String sKey)
cl - : the class of the object to deletesKey - : the key of the object to deleteCopyright © 2016. All rights reserved.