|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.xreporter.reportstore.ReportStoreImpl
Default implementation of the ReportStore interface. It stores the reports to database tables. See the documentation for more information on the structure of these tables.
| Field Summary | |
protected java.util.Properties |
connectionProperties
|
protected ConnectionProvider |
connectionProvider
|
protected ConnectionProviderManager |
connectionProviderManager
|
protected static java.lang.String |
DATASOURCE_NAME_EL
|
protected java.lang.String |
dropReportDetailStatement
|
protected java.lang.String |
dropReportStatement
|
protected IdGenerator |
idGenerator
|
protected static java.lang.String |
INFO_EL
|
protected java.lang.String |
insertReportDetailStatement
|
protected java.lang.String |
insertReportStatement
|
protected java.lang.String |
nameExistsStatement
|
protected ReportManager |
reportManager
|
protected java.lang.String |
selectAllReportsForUserStatement
|
protected java.lang.String |
selectReportDetailStatement
|
protected java.lang.String |
selectReportStatement
|
protected static java.lang.String |
TIME_EL
|
| Fields inherited from interface org.outerj.xreporter.reportstore.ReportStore |
ROLE |
| Constructor Summary | |
ReportStoreImpl()
|
|
| Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager componentManager)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
delete(java.lang.String name,
User user)
Deletes a stored report. |
void |
generateStoredReportList(User user,
org.xml.sax.ContentHandler contentHandler,
ResourceHandle resourceHandle)
Generates a list of all stored reports for a user to a SAX ContentHandler. |
void |
initialize()
|
Report |
makeInstance(java.lang.String name,
User user,
ResourceHandle resourceHandle)
Makes an instance of the report stored under the given name. |
void |
store(java.lang.String name,
Report report,
User user,
boolean overwrite)
Stores a report. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Properties connectionProperties
protected ConnectionProviderManager connectionProviderManager
protected ConnectionProvider connectionProvider
protected IdGenerator idGenerator
protected ReportManager reportManager
protected java.lang.String insertReportStatement
protected java.lang.String insertReportDetailStatement
protected java.lang.String nameExistsStatement
protected java.lang.String dropReportStatement
protected java.lang.String dropReportDetailStatement
protected java.lang.String selectReportStatement
protected java.lang.String selectReportDetailStatement
protected java.lang.String selectAllReportsForUserStatement
protected static final java.lang.String TIME_EL
protected static final java.lang.String DATASOURCE_NAME_EL
protected static final java.lang.String INFO_EL
| Constructor Detail |
public ReportStoreImpl()
| Method Detail |
public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
throws org.apache.avalon.framework.component.ComponentException
compose in interface org.apache.avalon.framework.component.Composableorg.apache.avalon.framework.component.ComponentException
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.Exception
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationException
public void store(java.lang.String name,
Report report,
User user,
boolean overwrite)
throws ReportNameExistsException,
ReportStoreException
ReportStore
store in interface ReportStoreoverwrite - if true and there exists already a report with the given name (for the given user),
then it will be overwitten. Otherwise a ReportNameExistsException will be thrown.
ReportNameExistsException
ReportStoreException
public Report makeInstance(java.lang.String name,
User user,
ResourceHandle resourceHandle)
throws NonExistingStoredReport,
ReportStoreException
ReportStoreThe returned report will be locked, so it must be released by the caller when no longer needed.
makeInstance in interface ReportStoreNonExistingStoredReport
ReportStoreException
public void generateStoredReportList(User user,
org.xml.sax.ContentHandler contentHandler,
ResourceHandle resourceHandle)
throws org.xml.sax.SAXException,
ReportStoreException
ReportStore
generateStoredReportList in interface ReportStoreorg.xml.sax.SAXException
ReportStoreException
public void delete(java.lang.String name,
User user)
throws ReportStoreException
ReportStore
delete in interface ReportStoreReportStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||