org.xmlecho.palomar.rdbms
Class RDBMSServiceHome

java.lang.Object
  extended byorg.xmlecho.palomar.rdbms.RDBMSServiceHome

public class RDBMSServiceHome
extends java.lang.Object

RDBMSService factory; responsible for handling requests for RDBMS Connector Service instances.

An RDBMSService is able to query RDBMS, returning the result as XML


Constructor Summary
RDBMSServiceHome()
           
 
Method Summary
static void genXmlFromSql(org.xml.sax.ContentHandler target, java.lang.String dbName, java.lang.String rdbRequestMethod, Query[] queries, java.lang.String outputMode, int skipRows, int countRows, int timeout)
          executes a single SQL query statement against a data source and returns an xml stream
static RDBMSService getRDBMSService()
          obtain the default, configured RDBMS service instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSServiceHome

public RDBMSServiceHome()
Method Detail

genXmlFromSql

public static final void genXmlFromSql(org.xml.sax.ContentHandler target,
                                       java.lang.String dbName,
                                       java.lang.String rdbRequestMethod,
                                       Query[] queries,
                                       java.lang.String outputMode,
                                       int skipRows,
                                       int countRows,
                                       int timeout)
                                throws RDBMSException
executes a single SQL query statement against a data source and returns an xml stream

Parameters:
target - a SAX event sink, to which the XML stream is sent
dbName - name of the data source (see connection pool)
queries - the sql statements
rdbRequestMethod - "SELECT", "UPDATE", "STOR_PROC", "MULTIPLE" or "SHOWTABLES"
outputMode - "MODE_ATTRIBUTE", "MODE_ELEMENT", "MODE_COLNAME" for different output formats
Returns:
the xml stream
Throws:
RDBMSException

getRDBMSService

public static final RDBMSService getRDBMSService()
obtain the default, configured RDBMS service instance

Returns:
a default RDBMS service instance