public interface MappingDao<E>
Provides the most basic DAO operations to manipulate a data source.
The difference to the Dao interface is that this
intefaces adds a extra id parameter to each method. This
id determines how the implementation should execute the
operation.
| Modifier and Type | Method and Description |
|---|---|
E |
delete(String id,
E entity)
Deletes the entity instance from the datasource
|
E |
insert(String id,
E entity)
Inserts the entity instance in to the datasource
|
E |
update(String id,
E entity)
Updates the entity instance in the datasource
|
E insert(String id, E entity)
id - The identity - The entity object to insertUnsupportedOperationException - Indicates that this Dao doesn't support
the insert operation.E update(String id, E entity)
id - The identity - The entity object to updateUnsupportedOperationException - Indicates that this Dao doesn't support
the update operation.E delete(String id, E entity)
id - The identity - The entity object to deleteUnsupportedOperationException - Indicates that this Dao doesn't support
the delete operation.Copyright © 2020. All rights reserved.