public interface Dao<E>
Provides the most basic DAO operations to manipulate a data source.
| Modifier and Type | Method and Description |
|---|---|
E |
delete(E entity)
Deletes the entity instance from the datasource
|
E |
insert(E entity)
Inserts the entity instance in to the datasource
|
E |
update(E entity)
Updates the entity instance in the datasource
|
E insert(E entity)
entity - The entity object to insertUnsupportedOperationException - Indicates that this Dao doesn't support
the insert operation.E update(E entity)
entity - The entity object to updateUnsupportedOperationException - Indicates that this Dao doesn't support
the update operation.E delete(E entity)
entity - The entity object to deleteUnsupportedOperationException - Indicates that this Dao doesn't support
the delete operation.Copyright © 2020. All rights reserved.