Package de.xima.fc.dao.impl
Class TenantMaintenanceDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<TenantMaintenance>
-
- de.xima.fc.dao.impl.TenantMaintenanceDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<TenantMaintenance,Long,IEntityContext>,IGenericDao<TenantMaintenance>,ITenantMaintenanceDao
public class TenantMaintenanceDao extends GenericDao<TenantMaintenance> implements ITenantMaintenanceDao
DAO implementation for tenant maintenance.- Author:
- Hannes John
-
-
Constructor Summary
Constructors Constructor Description TenantMaintenanceDao()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TenantMaintenance>findActiveTenantMaintenance(IEntityContext ec, Mandant tenant)Finds all active tenant maintenance items.List<TenantMaintenance>findByTenant(IEntityContext ec, Mandant tenant)Retrieves maintenance items by tenant.booleanisTenantMaintenanceActive(IEntityContext ec, Mandant tenant)Determines for a tenant, whether maintenance mode is active at current date.-
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
-
findByTenant
public List<TenantMaintenance> findByTenant(IEntityContext ec, Mandant tenant)
Description copied from interface:ITenantMaintenanceDaoRetrieves maintenance items by tenant.- Specified by:
findByTenantin interfaceITenantMaintenanceDao- Parameters:
ec- entity contexttenant- tenant- Returns:
- maintenance items
-
isTenantMaintenanceActive
public boolean isTenantMaintenanceActive(IEntityContext ec, Mandant tenant)
Description copied from interface:ITenantMaintenanceDaoDetermines for a tenant, whether maintenance mode is active at current date.- Specified by:
isTenantMaintenanceActivein interfaceITenantMaintenanceDao- Parameters:
ec- entity contexttenant- tenant- Returns:
- true, if active
-
findActiveTenantMaintenance
public List<TenantMaintenance> findActiveTenantMaintenance(IEntityContext ec, Mandant tenant)
Description copied from interface:ITenantMaintenanceDaoFinds all active tenant maintenance items.- Specified by:
findActiveTenantMaintenancein interfaceITenantMaintenanceDao- Parameters:
ec- entity contexttenant- tenant- Returns:
- all active tenant maintenance items
-
-