|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.makumba.providers.CRUDOperationProvider org.makumba.db.hibernate.HibernateCRUDOperationProvider
public class HibernateCRUDOperationProvider
Hibernate-specific implementation of a CRUDOperationProvider
FIXME there are probably more bugs with the
collections of non-generated mappings
Field Summary |
---|
Fields inherited from class org.makumba.providers.CRUDOperationProvider |
---|
ddp |
Constructor Summary | |
---|---|
HibernateCRUDOperationProvider()
|
Method Summary | |
---|---|
void |
checkInsert(Transaction t,
String type,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore,
Dictionary<String,Object> allFields)
Checks if a set of values can be updated in the database |
void |
checkUpdate(Transaction t,
String type,
Pointer pointer,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore,
Dictionary<String,Object> allFields)
Checks if a set of values can be updated in the database. |
void |
deleteSet(Transaction t,
Pointer base,
FieldDefinition fi)
Deletes a set |
Pointer |
insert(Transaction t,
String type,
Dictionary<String,Object> data)
Inserts data of a given type |
static boolean |
isGenerated(Class<?> clazz)
Figures whether a class was generated by Makumba |
static boolean |
isInteger(String name)
|
static boolean |
isLong(String name)
|
int |
update1(Transaction t,
Pointer p,
DataDefinition dd,
Dictionary<String,Object> dic)
|
void |
updateSet1(Transaction t,
Pointer base,
FieldDefinition fi,
Object val)
|
Methods inherited from class org.makumba.providers.CRUDOperationProvider |
---|
checkUpdate, delete, read, update, updateSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateCRUDOperationProvider()
Method Detail |
---|
public void checkInsert(Transaction t, String type, Dictionary<String,Object> fieldsToCheck, Dictionary<String,DataHolder> fieldsToIgnore, Dictionary<String,Object> allFields)
CRUDOperationProvider
checkInsert
in class CRUDOperationProvider
t
- the Transaction to be usedtype
- the type of the base object to insert tofieldsToCheck
- the values to be checkedfieldsToIgnore
- the values of toCheck not to be checkedallFields
- the entire data to be insertedpublic void checkUpdate(Transaction t, String type, Pointer pointer, Dictionary<String,Object> fieldsToCheck, Dictionary<String,DataHolder> fieldsToIgnore, Dictionary<String,Object> allFields)
CRUDOperationProvider
checkUpdate
in class CRUDOperationProvider
t
- the Transaction to be usedtype
- the type of the base object to insert topointer
- the pointer to the record to be updatedfieldsToCheck
- the values to be checkedfieldsToIgnore
- the values of toCheck not to be checkedallFields
- the entire data to be insertedpublic Pointer insert(Transaction t, String type, Dictionary<String,Object> data)
CRUDOperationProvider
insert
in class CRUDOperationProvider
t
- the Transaction handling the insertiontype
- the type of the object to be inserteddata
- the data to be inserted
public void updateSet1(Transaction t, Pointer base, FieldDefinition fi, Object val)
updateSet1
in class CRUDOperationProvider
public void deleteSet(Transaction t, Pointer base, FieldDefinition fi)
CRUDOperationProvider
deleteSet
in class CRUDOperationProvider
t
- the Transaction handling the deletionbase
- the base pointer to the object to be deletedfi
- the FieldDefinition of the field containing the setpublic int update1(Transaction t, Pointer p, DataDefinition dd, Dictionary<String,Object> dic)
update1
in class CRUDOperationProvider
public static boolean isGenerated(Class<?> clazz)
clazz
- the class
true
if it was generated, false
otherwisepublic static boolean isInteger(String name)
public static boolean isLong(String name)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |