Package com.baremaps.iploc.database
Interface Dao<T>
- Type Parameters:
T- the type of entity
- All Known Subinterfaces:
InetnumLocationDao
- All Known Implementing Classes:
InetnumLocationDaoSqliteImpl
public interface Dao<T>
A basic DAO interface to implement the data access object pattern
-
Method Summary
-
Method Details
-
findOne
Find the element with the given id- Parameters:
id- the id of the element to find- Returns:
- the optional element
-
findAll
Find all the elements- Returns:
- the list of all the elements
-
save
Save the given element- Parameters:
t- the element to save
-
update
Update the given element- Parameters:
t- the element to updateparams- the list of fields to update
-
delete
Delete the given element- Parameters:
t- the element to delete
-