|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mycompany.expense.ReportRegistry
This abstract class represents the report registry for the sample expense report application. Concrete subclasses can use any type of permanent storage.
Constructor Summary | |
ReportRegistry()
|
Method Summary | |
abstract void |
addReport(Report report)
Adds a copy of the report to the registry. |
abstract Report |
getReport(int id)
Returns a copy of the report with the specified ID, or null if there's no matching report in the registry. |
abstract java.util.List |
getReports(java.lang.String owner,
java.util.Date from,
java.util.Date to,
int[] status)
Returns a List with copies of all reports matching the search criteria. |
abstract void |
removeReport(Report report)
Removes an existing report in the registry with ID of the provided report. |
abstract void |
updateReport(Report report)
Replaces an existing report in the registry with a copy of the provided report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReportRegistry()
Method Detail |
public abstract void addReport(Report report) throws RegistryException
RegistryException
public abstract void updateReport(Report report) throws RegistryException
RegistryException
public abstract void removeReport(Report report) throws RegistryException
RegistryException
public abstract Report getReport(int id) throws RegistryException
RegistryException
public abstract java.util.List getReports(java.lang.String owner, java.util.Date from, java.util.Date to, int[] status) throws RegistryException
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |