|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.extradbdata.ExtraDBDataManager
public class ExtraDBDataManager
Manages all Data's extradbdata serialization in the database.
You will usually not need to invoke this class, see following methods of Data
Field Summary | |
---|---|
static String |
REVISION
|
Constructor Summary | |
---|---|
ExtraDBDataManager()
|
Method Summary | |
---|---|
static ExtraDBData |
getExtraDBData(Data data,
String name)
Retrieve the ExtraDBData instance for the specified Data and name. |
static List<ExtraDBData> |
getExtraDBDataList(Data data)
Retrieve all ExtraDBData for the specified Data. |
static Map<String,String> |
getExtraDBDataMap(Data data)
Retrieve all the extradbdata values for the specified Data. |
static String |
getExtraDBDataValue(Data data,
String name)
Retrieve the extradbdata value for the specified Data and name. |
static int |
removeAllExtraDBData(Data data)
Delete all ExtraDBData for the specified Data. |
static String |
saveExtraDBData(Data data,
String name,
String value)
Save, update or remove the specified extradbdata value for the specified Data and name. |
static void |
saveExtraDBDataMap(Data data,
Map<String,String> extraDBDataMap,
boolean replace)
Save, update or remove the specified extradbdatas values for the specified Data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public ExtraDBDataManager()
Method Detail |
---|
public static ExtraDBData getExtraDBData(Data data, String name)
data
- the Data for which the ExtraDBData is being retrievedname
- the name of the ExtraDBData to retrieve
public static String getExtraDBDataValue(Data data, String name)
data
- the Data for which the extra is being retrievedname
- the name of the extradbdata to be retrieved
public static String saveExtraDBData(Data data, String name, String value)
data
- the Data for which the extra is being setname
- the name of the extradbdata to be setvalue
- the value of the extradbdata to be set (set to null to remove this extradbdata)
public static List<ExtraDBData> getExtraDBDataList(Data data)
data
- the Data for which the ExtraDBData are being retrieved
public static Map<String,String> getExtraDBDataMap(Data data)
data
- the Data for which the extra is being retrieved
public static void saveExtraDBDataMap(Data data, Map<String,String> extraDBDataMap, boolean replace)
data
- the Data for which the extra is being setextraDBDataMap
- the map of ALL name/value to be saved/updated/removedreplace
- if true, all existing value will be replaced with the specified map,
if false, only the key of the specified map are updated/deletedpublic static int removeAllExtraDBData(Data data)
data
- the Data for which the ExtraDBData are being deleted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |