Package de.xima.fc.dao.interfaces
Interface IProjektZaehlerDatenDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<ProjektZaehlerDaten,Long,IEntityContext>,IGenericDao<ProjektZaehlerDaten>
- All Known Implementing Classes:
ProjektZaehlerDatenDao
public interface IProjektZaehlerDatenDao extends IGenericDao<ProjektZaehlerDaten>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProjektZaehlerDatencreate(IEntityContext ec, long projektId, Date date)ProjektZaehlerDatencreate(IEntityContext ec, Projekt projekt, Date date)intdeleteByProject(IEntityContext ec, Date start, Date end, Long projectId)Deletes the statistics of the project with the provided ID, optionally filtered by the provided date range.org.apache.commons.lang3.tuple.Pair<Date,Date>findActivityDateRange(IEntityContext ec, String toOneAttribute, Long toOneId)Does a look-up for the date of the first and the date of the last 'ProjektZaehlerDaten' record, optionally filtered by Mandant or project.List<ProjektZaehlerDaten>getAllByDateInterval(IEntityContext ec, Date start, Date end)Loads project statistics for the system scope (all Mandants) for a certain date interval.List<ProjektZaehlerDaten>getAllByMandant(IEntityContext ec, Date startDate, Date endDate, Mandant mandant)Loads project statistics for the projects of a certain Mandant for a certain date interval.List<ProjektZaehlerDaten>getAllByMandant(IEntityContext ec, Date startDate, Date endDate, Long mandantId)Loads project statistics for the projects of a certain Mandant for a certain date interval.List<ProjektZaehlerDaten>getAllByProjekt(IEntityContext ec, Date startDate, Date endDate, Projekt projekt)Loads project statistics for a certain project and a certain date interval.List<ProjektZaehlerDaten>getAllByProjekt(IEntityContext ec, Date startDate, Date endDate, Long projektId)Loads project statistics for a certain project and a certain date interval.ProjektZaehlerDatengetByDate(IEntityContext ec, long projektId, Date date)ProjektZaehlerDatengetByDate(IEntityContext ec, Projekt projekt, Date date)-
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
-
create
ProjektZaehlerDaten create(IEntityContext ec, Projekt projekt, Date date)
-
create
ProjektZaehlerDaten create(IEntityContext ec, long projektId, Date date)
-
getByDate
ProjektZaehlerDaten getByDate(IEntityContext ec, Projekt projekt, Date date)
-
getByDate
ProjektZaehlerDaten getByDate(IEntityContext ec, long projektId, Date date)
-
getAllByDateInterval
List<ProjektZaehlerDaten> getAllByDateInterval(IEntityContext ec, Date start, Date end)
Loads project statistics for the system scope (all Mandants) for a certain date interval.- Parameters:
ec- the entity context to usestart- start date of the desired interval (inclusive), must not be nullend- end date of the desired interval (also inclusive), must not be null- Returns:
- the queried project statistics
- Since:
- 8.5.5
-
getAllByMandant
List<ProjektZaehlerDaten> getAllByMandant(IEntityContext ec, Date startDate, Date endDate, Mandant mandant)
Loads project statistics for the projects of a certain Mandant for a certain date interval.- Parameters:
ec- the entity context to usestartDate- start date of the desired interval (inclusive), must not be nullendDate- end date of the desired interval (also inclusive), must not be nullmandant- the Mandant to get the statistics for- Returns:
- the queried project statistics
-
getAllByMandant
List<ProjektZaehlerDaten> getAllByMandant(IEntityContext ec, Date startDate, Date endDate, Long mandantId)
Loads project statistics for the projects of a certain Mandant for a certain date interval.- Parameters:
ec- the entity context to usestartDate- start date of the desired interval (inclusive), must not be nullendDate- end date of the desired interval (also inclusive), must not be nullmandantId- ID of the Mandant to get the statistics for- Returns:
- the queried project statistics
- Since:
- 8.5.5
-
getAllByProjekt
List<ProjektZaehlerDaten> getAllByProjekt(IEntityContext ec, Date startDate, Date endDate, Projekt projekt)
Loads project statistics for a certain project and a certain date interval.- Parameters:
ec- the entity context to usestartDate- start date of the desired interval (inclusive), must not be nullendDate- end date of the desired interval (also inclusive), must not be nullprojekt- the project to get the statistics for- Returns:
- the queried project statistics
- Since:
- 8.5.5
-
getAllByProjekt
List<ProjektZaehlerDaten> getAllByProjekt(IEntityContext ec, Date startDate, Date endDate, Long projektId)
Loads project statistics for a certain project and a certain date interval.- Parameters:
ec- the entity context to usestartDate- start date of the desired interval (inclusive), must not be nullendDate- end date of the desired interval (also inclusive), must not be nullprojektId- ID of the project to get the statistics for- Returns:
- the queried project statistics
- Since:
- 8.5.5
-
findActivityDateRange
org.apache.commons.lang3.tuple.Pair<Date,Date> findActivityDateRange(IEntityContext ec, String toOneAttribute, Long toOneId)
Does a look-up for the date of the first and the date of the last 'ProjektZaehlerDaten' record, optionally filtered by Mandant or project. If the 'toOneAttribute' parameter is null, no filtering will be applied.- Parameters:
ec- the entity context to usetoOneAttribute- the name of the attribute to filter by (e.g.IProjektDependent.ATTR_PROJEKT)toOneId- the ID belonging to the related 'toOneAttribute' parameter (e.g. the project's ID)- Returns:
- the requested date pair or null, if there're no related records
- Since:
- 8.5.5
-
deleteByProject
int deleteByProject(IEntityContext ec, Date start, Date end, Long projectId)
Deletes the statistics of the project with the provided ID, optionally filtered by the provided date range.- Parameters:
ec- the entity context to usestart- start date of the desired interval (inclusive), may be nullend- end date of the desired interval (also inclusive), may be nullprojectId- ID of the project whose statistics are to be deleted, must not be null- Returns:
- the number of deleted statistics records
- Since:
- 8.5.5
-
-