Package de.xima.fc.dao.impl
Class DatatableDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<Datatable>
-
- de.xima.fc.dao.impl.DatatableDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Datatable,Long,IEntityContext>,IDatatableDao,IGenericDao<Datatable>
public class DatatableDao extends GenericDao<Datatable> implements IDatatableDao
DAO for datatables.- Since:
- 8.6.0
- Author:
- Hannes John
-
-
Constructor Summary
Constructors Constructor Description DatatableDao()Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPostActionHook, getPreActionHook, read
-
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
findByProject
public List<Datatable> findByProject(IEntityContext ec, Projekt project)
Description copied from interface:IDatatableDaoRetrieves all datatables per project.- Specified by:
findByProjectin interfaceIDatatableDao- Parameters:
ec- entity contextproject- project- Returns:
- datatables
-
findById
public Optional<Datatable> findById(IEntityContext ec, Long id)
Description copied from interface:IDatatableDaoRetrieves a datatable by ID.- Specified by:
findByIdin interfaceIDatatableDao- Parameters:
ec- entity contextid- ID- Returns:
- datatable
-
findByProjectAndSystemDatabase
public List<Datatable> findByProjectAndSystemDatabase(IEntityContext ec, Projekt project)
Description copied from interface:IDatatableDaoRetrieves the datatables in the system database.- Specified by:
findByProjectAndSystemDatabasein interfaceIDatatableDao- Parameters:
ec- entity contextproject- project- Returns:
- datatables in the system database
-
findByProjectAndSystemDatabase
public List<Datatable> findByProjectAndSystemDatabase(IEntityContext ec, long projectId)
Description copied from interface:IDatatableDaoRetrieves the datatables in the system database.- Specified by:
findByProjectAndSystemDatabasein interfaceIDatatableDao- Parameters:
ec- Entity context for accessing the database.projectId- Database ID of the project- Returns:
- datatables in the system database
-
findByProjectAndExternalDatabase
public List<Datatable> findByProjectAndExternalDatabase(IEntityContext ec, Projekt project)
Description copied from interface:IDatatableDaoRetrieves the datatables in an external database.- Specified by:
findByProjectAndExternalDatabasein interfaceIDatatableDao- Parameters:
ec- entity contextproject- project- Returns:
- datatables in external database
-
findByProjectAndExternalDatabase
public List<Datatable> findByProjectAndExternalDatabase(IEntityContext ec, long projectId)
Description copied from interface:IDatatableDaoRetrieves the datatables in an external database.- Specified by:
findByProjectAndExternalDatabasein interfaceIDatatableDao- Parameters:
ec- Entity context for accessing the database.projectId- Database ID of the project- Returns:
- datatables in external database
-
deleteByProject
public void deleteByProject(IEntityContext ec, Projekt project)
Description copied from interface:IDatatableDaoDeletes all datatables of a project.- Specified by:
deleteByProjectin interfaceIDatatableDao- Parameters:
ec- entity contextproject- project
-
-