GNDMS 0.6.0
RESTful verison of GNDMS
|
Public Member Functions | |
void | deleteByKey (K key) |
Deletes a model matching the given key. | |
void | delete (M model) |
Deletes model from the repo. | |
void | add (M model, K key) |
Addes a model to the dao. | |
Protected Member Functions | |
abstract M | newModel (K key) |
Delegated to Transient Dao;. | |
M | provideGet (K key) |
This should return new models or delegate calls to underlying daos. | |
void | setDao (Dao< K, M, D > dao) |
Private Attributes | |
Dao< K, M, D > | dao |
Date: 05.01.2011, Time: 15:35:13
void de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >.add | ( | M | model, |
K | key | ||
) |
Addes a model to the dao.
model | The model to add, with the key to use. |
Implements de.zib.gndms.model.common.repository.Dao< K, M, D >.
{ dao.add( model, key ); }
void de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >.delete | ( | M | model | ) |
Deletes model from the repo.
model | The model to delete. |
Implements de.zib.gndms.model.common.repository.Dao< K, M, D >.
{ dao.delete( model ); }
void de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >.deleteByKey | ( | K | key | ) |
Deletes a model matching the given key.
key | The key. |
NOTE: Stupid type erasure.
Implements de.zib.gndms.model.common.repository.Dao< K, M, D >.
{ dao.deleteByKey( key ); }
M de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >.provideGet | ( | K | key | ) | [protected, virtual] |
This should return new models or delegate calls to underlying daos.
key | Model key if required for construction. |
Note: when this method is called the model is allready inserted into the queue.
Implements de.zib.gndms.model.common.repository.QueuedDao< K, M, D >.
{
return dao.get( key );
}
Dao<K,M,D> de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >.dao [private] |