|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.makumba.providers.CRUDOperationProvider
public abstract class CRUDOperationProvider
This interface describes the operations that a simple CRUD provider has to implement.
| Field Summary | |
|---|---|
protected DataDefinitionProvider |
ddp
|
| Constructor Summary | |
|---|---|
CRUDOperationProvider()
|
|
| Method Summary | |
|---|---|
abstract 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 |
protected DataDefinition |
checkUpdate(String type,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore)
|
abstract void |
checkUpdate(Transaction t,
String type,
Pointer pointer,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> others,
Dictionary<String,Object> allFields)
Checks if a set of values can be updated in the database. |
void |
delete(Transaction t,
Pointer ptr)
Deletes a record |
void |
deleteSet(Transaction t,
Pointer base,
FieldDefinition fi)
Deletes a set |
abstract Pointer |
insert(Transaction t,
String type,
Dictionary<String,Object> data)
Inserts data of a given type |
Dictionary<String,Object> |
read(Transaction t,
Pointer ptr,
Object fields)
Reads a record |
void |
update(Transaction t,
Pointer ptr,
Dictionary<String,Object> data)
Updates a record with the given data |
abstract int |
update1(Transaction t,
Pointer p,
DataDefinition typeDef,
Dictionary<String,Object> dic)
|
void |
updateSet(Transaction t,
Pointer base,
FieldDefinition fi,
Object val)
Updates a set of values |
void |
updateSet1(Transaction t,
Pointer base,
FieldDefinition fi,
Object val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataDefinitionProvider ddp
| Constructor Detail |
|---|
public CRUDOperationProvider()
| Method Detail |
|---|
public abstract Pointer insert(Transaction t,
String type,
Dictionary<String,Object> data)
t - the Transaction handling the insertiontype - the type of the object to be inserteddata - the data to be inserted
public Dictionary<String,Object> read(Transaction t,
Pointer ptr,
Object fields)
t - the Transaction used to read the recordptr - the Pointer corresponding to the place at which we should readfields - the fields to read
public void update(Transaction t,
Pointer ptr,
Dictionary<String,Object> data)
t - the Transaction handling the updateptr - the Pointer corresponding to the place at which we should updatedata - a Dictionary holding the the fields to be updated
public void delete(Transaction t,
Pointer ptr)
t - the Transaction handling the deletionptr - the Pointer to the record to be deleted
public void updateSet(Transaction t,
Pointer base,
FieldDefinition fi,
Object val)
t - the Transaction handling the updatebase - the Pointer to the base object which has the setfi - the FieldDefinition corresponding to the setval - the data to be updated, hold in a Vector
public void updateSet1(Transaction t,
Pointer base,
FieldDefinition fi,
Object val)
public void deleteSet(Transaction t,
Pointer base,
FieldDefinition fi)
t - the Transaction handling the deletionbase - the base pointer to the object to be deletedfi - the FieldDefinition of the field containing the set
public abstract void checkInsert(Transaction t,
String type,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore,
Dictionary<String,Object> allFields)
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
public abstract void checkUpdate(Transaction t,
String type,
Pointer pointer,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> others,
Dictionary<String,Object> allFields)
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 checkedothers - the values of toCheck not to be checkedallFields - the entire data to be inserted
protected DataDefinition checkUpdate(String type,
Dictionary<String,Object> fieldsToCheck,
Dictionary<String,DataHolder> fieldsToIgnore)
public abstract int update1(Transaction t,
Pointer p,
DataDefinition typeDef,
Dictionary<String,Object> dic)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||