|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--by.belsoft.report.tools.actions.ContextData
|
+--by.belsoft.report.tools.reportdb.XmlUtilities
The class to work with xml database
| Constructor Summary | |
XmlUtilities()
The base constructor |
|
| Method Summary | |
void |
addDataSource(DataSource ds)
addDataSource adds new datasource |
void |
addDriver(java.lang.String name)
addDriver adds driver |
void |
addReport(Report project)
addReport add new report |
void |
addReportContent(Query query)
addReportContent adds report content |
void |
addView(BaseTakenUp table,
java.lang.String report)
addView adds view |
DataSource |
getDataSource(java.lang.String name)
getDataSource gets datasource |
java.util.ArrayList |
getDataSourceObjects()
getDataSourceObjects gets datasource objects |
java.util.ArrayList |
getDataSources()
getDataSources gets list with datasources |
java.util.ArrayList |
getDrivers()
getDrivers gets drivers |
Field |
getField(java.lang.String fieldid)
getField gets field by id |
java.util.ArrayList |
getParentFields(java.lang.String reportname,
java.lang.String queryname)
getParentFields gets parent fields |
java.util.ArrayList |
getPropertyTables()
getPropertyTables gets list of property tables |
java.util.ArrayList |
getQueriesList()
getQueriesList gets list of queries |
Query |
getQuery(java.lang.String reportname,
java.lang.String queryname)
getQuery gets query by given data |
java.lang.String |
getReportContent(java.lang.String name)
getReportContent gets report contant |
java.util.ArrayList |
getReports()
getReports gets report list |
BaseTakenUp |
getSavedContainer()
getSavedContainer gets saved view container |
BaseTakenUp |
getSavedTable(java.lang.String id)
getSavedTable gets saved table |
BaseTakenUp |
getStructureContainer()
getStructureContainer gets structure container |
java.util.ArrayList |
getStructureTables()
getStructureTables gets structure tables |
java.util.ArrayList |
getTables()
getTables gets view tables |
java.lang.String |
getXMLSource(Query query)
getXMLSource gets xml source from query |
void |
makeDefaultDataDocument(org.w3c.dom.Document defaultDocument,
org.w3c.dom.Element currentDataElement,
org.w3c.dom.Element currentQueryElement)
makeDefaultDataDocument makes default data document |
void |
makeDefaultDataXMLFile(java.lang.String dataXMLFilePath,
java.lang.String queryXMLFilePath)
makeDefaultDataXMLFile makes default data xml file |
org.w3c.dom.Document |
makeDocument(java.io.File file)
makeDocument makes document from file |
org.w3c.dom.Document |
makeDocument(org.xmldb.api.modules.XMLResource document)
makeDocument makes document from xml resource |
void |
makeViewXMLFragment(BaseTakenUp baseTakenUp,
java.lang.String viewXMLFilePath,
java.lang.String reportDIR)
makeViewXMLFragment makes view xml fragment |
org.xmldb.api.base.Collection |
prepareCollection(java.lang.String name)
prepareCollection prepares collection to extract data |
void |
removeDataSource(java.lang.String name)
removeDataSource removes datasource |
void |
removeDataSources(java.lang.String[] names)
removeDataSources removes datasources |
void |
removeDriver(java.lang.String name)
removeDriver removes driver |
java.lang.String |
removeFromReportContent(java.lang.String cont)
removeFromReportContent removes unnecessary data from report content |
void |
removeQuery(java.lang.String name)
removeQuery removes query from report |
void |
removeReport(java.lang.String name)
removeReport removes report |
void |
removeReports(java.lang.String[] names)
removeReports removes report group |
void |
removeUnusedRows()
removeUnusedRows removes unnecessary rows from content |
void |
saveAllDataToFiles(java.lang.String name,
java.lang.String directory)
saveAllDataToFiles saves all report data to files |
void |
saveDocumentToFile(org.w3c.dom.Document document,
java.lang.String path,
java.lang.String dtdPath)
saveDocumentToFile saves document to file |
java.lang.String |
saveDriver(java.lang.String name,
java.io.InputStream is)
saveDriver saves driver into driver folder |
java.lang.String |
saveFile(java.lang.String path,
java.io.File ftmp,
java.io.InputStream is)
saveFile saves file |
java.lang.String |
saveFile(java.lang.String name,
java.io.InputStream is)
saveFile saves file to report folder |
void |
saveQueryFile(java.lang.String name,
java.lang.String directory)
saveQueryFile saves query file |
void |
saveViewFile(java.lang.String name,
java.lang.String directory)
saveViewFile saves view file |
void |
updateDataSource(DataSource ds)
updateDataSource updates datasource |
BaseTakenUp |
updateGeneralViewContainer(BaseTakenUp container)
updateGeneralViewContainer updates general view container |
void |
updateQuery(Query query)
updateQuery updates query |
void |
updateReport()
updateReport updates report data |
BaseTakenUp |
updateView(BaseTakenUp table)
updateView updates report view |
void |
write(org.w3c.dom.Node node,
java.lang.String indent)
write method that writes xml source |
| Methods inherited from class by.belsoft.report.tools.actions.ContextData |
getContext, getReportName, getRequest, getSession, setRefreshData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlUtilities()
| Method Detail |
public java.util.ArrayList getReports()
public void updateReport()
public void removeReport(java.lang.String name)
name - String the report namepublic void removeReports(java.lang.String[] names)
names - String[] the report namespublic void addReport(Report project)
project - Report the report to addpublic void addReportContent(Query query)
query - Query the general container to addpublic java.util.ArrayList getDataSources()
public java.util.ArrayList getDataSourceObjects()
public DataSource getDataSource(java.lang.String name)
name - String the datasource name
public void addDataSource(DataSource ds)
ds - DataSource the datasource to addpublic void updateDataSource(DataSource ds)
ds - DataSource the datasource to be updatedpublic void removeDataSource(java.lang.String name)
name - String the name of datasourcepublic void removeDataSources(java.lang.String[] names)
names - String[] the datasource namespublic java.util.ArrayList getDrivers()
public void addDriver(java.lang.String name)
name - String the driver namepublic void removeDriver(java.lang.String name)
name - String the driver namepublic void updateQuery(Query query)
query - Query the query to be updated
public void addView(BaseTakenUp table,
java.lang.String report)
table - BaseTakenUp adds report containerreport - String the report namepublic BaseTakenUp getSavedTable(java.lang.String id)
id - String the tabe id
public BaseTakenUp updateView(BaseTakenUp table)
table - BaseTakenUp the view container
public BaseTakenUp updateGeneralViewContainer(BaseTakenUp container)
container - BaseTakenUp the view container
public java.util.ArrayList getQueriesList()
public Query getQuery(java.lang.String reportname,
java.lang.String queryname)
reportname - String the report namequeryname - String the query name
public java.lang.String getReportContent(java.lang.String name)
name - String the report name
public java.lang.String removeFromReportContent(java.lang.String cont)
cont - String the content to remove
public void removeUnusedRows()
public void removeQuery(java.lang.String name)
name - String the query name
public java.util.ArrayList getParentFields(java.lang.String reportname,
java.lang.String queryname)
reportname - String the report namequeryname - String the query name
public java.util.ArrayList getTables()
public java.util.ArrayList getPropertyTables()
public java.util.ArrayList getStructureTables()
public BaseTakenUp getSavedContainer()
public BaseTakenUp getStructureContainer()
public Field getField(java.lang.String fieldid)
fieldid - String the field id
public java.lang.String getXMLSource(Query query)
query - Query the query to parse
public void saveAllDataToFiles(java.lang.String name,
java.lang.String directory)
name - String the report namedirectory - String the directory to save
public void saveQueryFile(java.lang.String name,
java.lang.String directory)
name - String the report namedirectory - String the directory to save
public void saveViewFile(java.lang.String name,
java.lang.String directory)
name - String the report namedirectory - String the directory to save
public java.lang.String saveFile(java.lang.String name,
java.io.InputStream is)
name - String the file nameis - InputStream the file input stream
public java.lang.String saveDriver(java.lang.String name,
java.io.InputStream is)
name - String the file nameis - InputStream the file input stream
public java.lang.String saveFile(java.lang.String path,
java.io.File ftmp,
java.io.InputStream is)
path - String the file pathftmp - File the file objectis - InputStream the file input stream
public void saveDocumentToFile(org.w3c.dom.Document document,
java.lang.String path,
java.lang.String dtdPath)
document - Document the document elementpath - String the path for savingdtdPath - String the dtd path
public void makeDefaultDataDocument(org.w3c.dom.Document defaultDocument,
org.w3c.dom.Element currentDataElement,
org.w3c.dom.Element currentQueryElement)
defaultDocument - Document the default documentcurrentDataElement - Element the current data elementcurrentQueryElement - Element the current query element
public void makeViewXMLFragment(BaseTakenUp baseTakenUp,
java.lang.String viewXMLFilePath,
java.lang.String reportDIR)
baseTakenUp - BaseTakenUp the container to make fragmentviewXMLFilePath - String the path to view xml filereportDIR - String the report directory
public void makeDefaultDataXMLFile(java.lang.String dataXMLFilePath,
java.lang.String queryXMLFilePath)
dataXMLFilePath - String the path to query xml filequeryXMLFilePath - String the path to view xml filepublic org.w3c.dom.Document makeDocument(java.io.File file)
file - File the file to make document
public org.w3c.dom.Document makeDocument(org.xmldb.api.modules.XMLResource document)
document - XMLResource the xml resource to make document
public org.xmldb.api.base.Collection prepareCollection(java.lang.String name)
name - String the report name
public void write(org.w3c.dom.Node node,
java.lang.String indent)
node - Node the node to be writtenindent - String the output indent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||