Package io.nevernull.mobileui.ormlite
Interface DaoFactory
-
public interface DaoFactory
Inject → OrmLite factory for data access objects (DAOs).- Since:
- 0.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this factory and the underlying database<T,ID>
com.j256.ormlite.dao.Dao<T,ID>getDao(Class<T> entityClass)
Returns the DAO for the given entity classvoid
open()
Opens this factory and the underlying database
-
-
-
Method Detail
-
getDao
@Nonnull <T,ID> com.j256.ormlite.dao.Dao<T,ID> getDao(@Nonnull Class<T> entityClass) throws SQLException
Returns the DAO for the given entity class- Type Parameters:
T
- the type of entityID
- the ID type- Parameters:
entityClass
- the entity class to return the DAO for- Returns:
- the DAO
- Throws:
SQLException
- if there is an error creating the DAO
-
open
void open()
Opens this factory and the underlying database
-
close
void close()
Closes this factory and the underlying database
-
-