GNDMS 0.6.0
RESTful verison of GNDMS
|
Public Member Functions | |
K | create (D descriptor) |
Creates a fresh instance of M matching descriptor. | |
void | add (M model, K key) |
Addes a model to the dao. | |
M | get (K key) throws NoSuchElementException |
Used to retrive an model object form the dao. | |
void | deleteByKey (K key) |
Deletes a model matching the given key. | |
void | delete (M model) |
Deletes model from the repo. | |
Package Functions | |
K | create () |
Creates a fresh instance of M. |
Date: 23.12.2010, Time: 11:57:13
K - The key type for the model M - The model type. D - A possible descriptor to select a model.
The model key seperation is necessary to keep be able to use old model classes w/o key.
void de.zib.gndms.model.common.repository.Dao< K, M, D >.add | ( | M | model, |
K | key | ||
) |
Addes a model to the dao.
model | The model to add, with the key to use. |
Implemented in de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >, and de.zib.gndms.model.common.repository.TransientDao< K, M, D >.
K de.zib.gndms.model.common.repository.Dao< K, M, D >.create | ( | D | descriptor | ) |
Creates a fresh instance of M matching descriptor.
This can be used fine grained construction, i.e. if M is a base class.
descriptor | The descriptor of the object, i.e. class. |
Implemented in de.zib.gndms.model.common.repository.TransientDao< K, M, D >.
K de.zib.gndms.model.common.repository.Dao< K, M, D >.create | ( | ) | [package] |
Creates a fresh instance of M.
void de.zib.gndms.model.common.repository.Dao< K, M, D >.delete | ( | M | model | ) |
Deletes model from the repo.
model | The model to delete. |
Implemented in de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >, and de.zib.gndms.model.common.repository.TransientDao< K, M, D >.
void de.zib.gndms.model.common.repository.Dao< K, M, D >.deleteByKey | ( | K | key | ) |
Deletes a model matching the given key.
key | The key. |
NOTE: Stupid type erasure.
Implemented in de.zib.gndms.model.common.repository.QueuedTransientDao< K, M, D >, and de.zib.gndms.model.common.repository.TransientDao< K, M, D >.
M de.zib.gndms.model.common.repository.Dao< K, M, D >.get | ( | K | key | ) | throws NoSuchElementException |
Used to retrive an model object form the dao.
key | The key of the object. |
Implemented in de.zib.gndms.model.common.repository.QueuedDao< K, M, D >, and de.zib.gndms.model.common.repository.TransientDao< K, M, D >.