org.makumba.db.makumba
Class MakumbaCRUDOperationProvider
java.lang.Object
org.makumba.providers.CRUDOperationProvider
org.makumba.db.makumba.MakumbaCRUDOperationProvider
public class MakumbaCRUDOperationProvider
- extends CRUDOperationProvider
Makumba-specific implementation of the CRUDOperationProvider
- Version:
- $Id: MakumbaCRUDOperationProvider.java,v 1.1 02.11.2007 12:29:23 Manuel Exp $
- Author:
- Manuel Gay
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. |
Pointer |
insert(Transaction t,
String type,
Dictionary<String,Object> data)
Inserts data of a given type |
int |
update1(Transaction t,
Pointer p,
DataDefinition typeDef,
Dictionary<String,Object> dic)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MakumbaCRUDOperationProvider
public MakumbaCRUDOperationProvider()
insert
public Pointer insert(Transaction t,
String type,
Dictionary<String,Object> data)
- Description copied from class:
CRUDOperationProvider
- Inserts data of a given type
- Specified by:
insert
in class CRUDOperationProvider
- Parameters:
t
- the Transaction handling the insertiontype
- the type of the object to be inserteddata
- the data to be inserted
- Returns:
- a Pointer corresponding to the place where the record has been inserted
checkInsert
public void checkInsert(Transaction t,
String type,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore,
Dictionary<String,Object> allFields)
- Description copied from class:
CRUDOperationProvider
- Checks if a set of values can be updated in the database
- Specified by:
checkInsert
in class CRUDOperationProvider
- Parameters:
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 inserted
checkUpdate
public void checkUpdate(Transaction t,
String type,
Pointer pointer,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore,
Dictionary<String,Object> allFields)
- Description copied from class:
CRUDOperationProvider
- Checks if a set of values can be updated in the database.
- Specified by:
checkUpdate
in class CRUDOperationProvider
- Parameters:
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 inserted
update1
public int update1(Transaction t,
Pointer p,
DataDefinition typeDef,
Dictionary<String,Object> dic)
- Specified by:
update1
in class CRUDOperationProvider