Package mc.core.domain.system.dobj
Class ReportingDO
java.lang.Object
mc.core.system.base.BaseBean
-
Nested Class Summary
Nested classes/interfaces inherited from class mc.core.domain.base.dobj.AbstractBaseDO
AbstractBaseDO.Initializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!mc.core.service.reporting.ReportingResultgetLastResult(Reporting reporting) List<mc.core.system.util.misc.Property<? extends Serializable>>getProperties(Reporting entity) List<mc.core.service.reporting.ReportingResult>getResults(Reporting reporting) Returns list of all ReportingResults for given reporting, ordered with latest results first.List<mc.core.service.reporting.ReportingResult>getResults(Reporting reporting, int fromIndex, int endIndex) Returns page of ReportingResults for given reporting, ordered with latest results first.voidremoveProperty(Reporting entity, String key) remove property from reportingvoidremoveResult(Reporting reporting, mc.core.service.reporting.ReportingResult result) voidsetProperties(Reporting entity, DataMap dataMap) set (add/update) entity<V extends Serializable>
ReportingPropertysetProperty(Reporting entity, String key, V value) <V extends Serializable>
ReportingPropertysetProperty(Reporting entity, mc.core.system.util.misc.Property<V> p) store result for reportingMethods inherited from class mc.core.domain.base.dobj.AbstractSimpleEntityDO
changeOrder, getAllActive, getUserRole, toggleActivationMethods inherited from class mc.core.domain.base.dobj.AbstractEntityBaseDO
addDefaultSearchCriteria, copyToCollection, getFromInternalDescription, prepareSearchFilter, save, sendEvent, sendEventMethods inherited from class mc.core.domain.base.dobj.AbstractBaseDO
delete, getAll, getEntityDisplay, getFromId, getFromKey, getOne, map, map, validator
-
Constructor Details
-
ReportingDO
public ReportingDO()
-
-
Method Details
-
save
- Overrides:
savein classAbstractBaseDO<Reporting>- Throws:
ApplicationException
-
delete
Description copied from class:AbstractBaseDONOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!- Overrides:
deletein classAbstractBaseDO<Reporting>- Parameters:
entity- mandatoryforce- if true delete without usage check, which can result in db constraints error unless references are taken care of- Throws:
ApplicationException
-
copy
- Overrides:
copyin classAbstractEntityBaseDO<Reporting>- Throws:
ApplicationException
-
setProperty
public <V extends Serializable> ReportingProperty setProperty(Reporting entity, mc.core.system.util.misc.Property<V> p) -
setProperty
public <V extends Serializable> ReportingProperty setProperty(Reporting entity, String key, V value) -
setProperties
set (add/update) entity- Parameters:
entity- mandatorydataMap- mandatory, values must implement Serializable
-
removeProperty
remove property from reporting- Parameters:
entity- reportkey- property key
-
getProperties
public List<mc.core.system.util.misc.Property<? extends Serializable>> getProperties(Reporting entity) -
setResult
public Report setResult(Reporting reporting, mc.core.service.reporting.ReportingResult result) throws ApplicationException store result for reporting- Throws:
ApplicationException
-
getLastResult
- Parameters:
reporting- mandatory- Returns:
- the last result of given reporting if exists, otherwise null
-
removeResult
public void removeResult(Reporting reporting, mc.core.service.reporting.ReportingResult result) throws ApplicationException - Throws:
ApplicationException
-
getResults
Returns list of all ReportingResults for given reporting, ordered with latest results first.- Parameters:
reporting- mandatory- Returns:
- Throws:
ApplicationException
-
getResults
public List<mc.core.service.reporting.ReportingResult> getResults(Reporting reporting, int fromIndex, int endIndex) Returns page of ReportingResults for given reporting, ordered with latest results first.- Parameters:
reporting- mandatoryfromIndex- ignored if endIndex < 0endIndex- if < 0 returns all results
-