|
Oracle Reports Java API Reference 10g (9.0.4) B12019-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.reports.plugin.datasource.PluginDataSourceTemplate
Template Plugin Data Source class. Provides sample code for a Plugin Data Source. Application developers are encouraged to extend or copy/modify the Template Plugin Data Source to create their own Plugin Data Source.
| Field Summary | |
protected static java.lang.String |
DEFINITION |
protected DataSource |
mDataSource |
protected PluginFactory |
mFactory |
protected PluginResultSetMetaData |
mMetaData |
protected Parameter |
mSignOnParameter |
| Fields inherited from interface oracle.reports.plugin.datasource.PluginDataSource |
ALL_ROWS |
| Constructor Summary | |
PluginDataSourceTemplate() | |
| Method Summary | |
boolean |
applyXML(java.lang.String xml)The Template Data Source has only static definition for sample code purposes. |
PluginResultSetMetaData |
describe()Returns static meta-data of the Template Plugin Data Source. |
void |
dispose()Removes the plugin and cleans up related resources. |
java.sql.ResultSet |
execute(java.lang.Object[] refedColVals, PluginCondition[] conds, int maxrows)Returns static result set of the Template Plugin Data Source. |
DataSource |
getDataSource()Returns the hosting Reports data source object of the plugin. |
PluginFactory |
getFactory()Returns the factory passed to setFactory. |
java.lang.String |
getQueryDescription()Returns the highlight data source description to be displayed in the Reports Wizard Data page. |
java.lang.String[] |
getReferencedColumns()The Template Plugin Data Source does not reference Reports columns. |
Report |
getReport()Returns the hosting report of the plugin. |
ReportContext |
getReportContext()Returns the report context, which provides environment information. |
Parameter |
getSignOnParameter()Returns the Sign-on Parameter of this Plugin Data Source. |
java.lang.String |
saveToXML()Returns the static definition to be saved with report. |
void |
setDataSource(DataSource datasource)Sets the Reports hosting data source object of the plugin. |
void |
setFactory(PluginFactory fac)Sets the factory that creates the plugin. |
void |
setSignOnParameter(Parameter signOnParam)Sets the Sign-on Parameter of this Plugin Data Source whenever it is set or changed in the Reports Property Inspector. |
void |
startRuntime()The Template Plugin Data Source does not need any initialization before runtime. |
boolean |
supportCondition()The Template Plugin Data Source does not support conditions, so returns false. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String DEFINITION
protected PluginFactory mFactory
protected DataSource mDataSource
protected Parameter mSignOnParameter
protected PluginResultSetMetaData mMetaData
| Constructor Detail |
public PluginDataSourceTemplate()
| Method Detail |
public java.lang.String[] getReferencedColumns()
throws PluginException
getReferencedColumns in interface PluginDataSource
public void startRuntime()
throws PluginException
startRuntime in interface Plugin
public void setFactory(PluginFactory fac)
throws PluginException
setFactory in interface Plugin
public PluginFactory getFactory()
throws PluginException
getFactory in interface Plugin
public DataSource getDataSource()
throws PluginException
public Report getReport()
throws PluginException
public ReportContext getReportContext()
throws PluginException
public void setSignOnParameter(Parameter signOnParam)
throws PluginException
setSignOnParameter in interface PluginDataSourceoracle.reports.plugin.datasource.PluginDataSourcesignOnParam - The Sign-on Parameter of this Plugin Data Source.
public Parameter getSignOnParameter()
throws PluginException
public boolean applyXML(java.lang.String xml)
throws PluginException
applyXML in interface Pluginoracle.reports.plugin.Pluginxml - The xml to apply.
public void setDataSource(DataSource datasource)
throws PluginException
setDataSource in interface PluginDataSourceoracle.reports.plugin.datasource.PluginDataSourcedatasource - The hosting data source object.
public java.lang.String getQueryDescription()
throws PluginException
getQueryDescription in interface PluginDataSource
public PluginResultSetMetaData describe()
throws PluginException
describe in interface PluginDataSource
public java.sql.ResultSet execute(java.lang.Object[] refedColVals,
PluginCondition[] conds,
int maxrows)
throws PluginException
execute in interface PluginDataSourceoracle.reports.plugin.datasource.PluginDataSourcerefedColVals - values of the referenced Reports columns as given by getReferencedColumns method. See getReferencedColumns for details.conds - conditions imposed on the result set required by column links. See supportCondition method for details.maxrows - maximum number of rows the result set should return. ALL_ROWS means no limit.
public boolean supportCondition()
throws PluginException
supportCondition in interface PluginDataSourceoracle.reports.plugin.datasource.PluginDataSourcepublic void dispose()
dispose in interface Plugin
public java.lang.String saveToXML()
throws PluginException
saveToXML in interface Plugin
|
Oracle Reports Java API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||