Package de.xima.fc.dao.interfaces
Interface IDatatableDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Datatable,Long,IEntityContext>,IGenericDao<Datatable>
- All Known Implementing Classes:
DatatableDao
public interface IDatatableDao extends IGenericDao<Datatable>
DAO for datatables.- Since:
- 8.6.0
- Author:
- Hannes John
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteByProject(IEntityContext ec, Projekt project)Deletes all datatables of a project.Optional<Datatable>findById(IEntityContext ec, Long id)Retrieves a datatable by ID.List<Datatable>findByProject(IEntityContext ec, Projekt project)Retrieves all datatables per project.List<Datatable>findByProjectAndExternalDatabase(IEntityContext ec, long projectId)Retrieves the datatables in an external database.List<Datatable>findByProjectAndExternalDatabase(IEntityContext ec, Projekt project)Retrieves the datatables in an external database.List<Datatable>findByProjectAndSystemDatabase(IEntityContext ec, long projectId)Retrieves the datatables in the system database.List<Datatable>findByProjectAndSystemDatabase(IEntityContext ec, Projekt project)Retrieves the datatables in the system database.static IDatatableDaogetInstance()Returns an instance.-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
getInstance
static IDatatableDao getInstance()
Returns an instance.- Returns:
- instance
-
findByProject
List<Datatable> findByProject(IEntityContext ec, Projekt project)
Retrieves all datatables per project.- Parameters:
ec- entity contextproject- project- Returns:
- datatables
-
findById
Optional<Datatable> findById(IEntityContext ec, Long id)
Retrieves a datatable by ID.- Parameters:
ec- entity contextid- ID- Returns:
- datatable
-
findByProjectAndSystemDatabase
List<Datatable> findByProjectAndSystemDatabase(IEntityContext ec, Projekt project)
Retrieves the datatables in the system database.- Parameters:
ec- entity contextproject- project- Returns:
- datatables in the system database
-
findByProjectAndSystemDatabase
List<Datatable> findByProjectAndSystemDatabase(IEntityContext ec, long projectId)
Retrieves the datatables in the system database.- Parameters:
ec- Entity context for accessing the database.projectId- Database ID of the project- Returns:
- datatables in the system database
-
findByProjectAndExternalDatabase
List<Datatable> findByProjectAndExternalDatabase(IEntityContext ec, Projekt project)
Retrieves the datatables in an external database.- Parameters:
ec- entity contextproject- project- Returns:
- datatables in external database
-
findByProjectAndExternalDatabase
List<Datatable> findByProjectAndExternalDatabase(IEntityContext ec, long projectId)
Retrieves the datatables in an external database.- Parameters:
ec- Entity context for accessing the database.projectId- Database ID of the project- Returns:
- datatables in external database
-
deleteByProject
void deleteByProject(IEntityContext ec, Projekt project)
Deletes all datatables of a project.- Parameters:
ec- entity contextproject- project
-
-