|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.db.DataHolder
public class DataHolder
Class which enables it to perform "super-CRUD" operations, i.e. composite inserts and updates on subrecords The data is passed as a dictionary, and its keys look like "a", "a.b", "a.b.c" ...
Field Summary | |
---|---|
(package private) Hashtable<String,Object> |
dictionnary
dictionary holding the data used for the operation, and on which operations are performed |
(package private) Hashtable<String,Object> |
sets
dictionary holding the data which has to be performed on sets |
(package private) Hashtable<String,DataHolder> |
subrecords
dictionary holding subrecords, i.e. each key gives access to a hashtable of fields |
Constructor Summary | |
---|---|
DataHolder(Transaction t,
Dictionary<String,Object> data,
String type)
|
Method Summary | |
---|---|
void |
checkInsert()
Checks if it is possible to insert data for all subrecords. |
(package private) void |
checkUpdate(Pointer pointer)
Checks if it is possible to update for all subrecords. |
Pointer |
insert()
|
String |
toString()
|
(package private) int |
update(Pointer p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Hashtable<String,Object> dictionnary
Hashtable<String,DataHolder> subrecords
Hashtable<String,Object> sets
Constructor Detail |
---|
public DataHolder(Transaction t, Dictionary<String,Object> data, String type)
Method Detail |
---|
public String toString()
toString
in class Object
public void checkInsert()
insert()
void checkUpdate(Pointer pointer)
update(Pointer)
pointer
- the pointer to the record to be updatedpublic Pointer insert()
int update(Pointer p)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |