INRIA & FluxMedia

fr.fluxmedia.tmcontrib.external
Class SQLExternal

java.lang.Object
  extended by fr.fluxmedia.transmorpher.engine.TProcess_Impl
      extended by fr.fluxmedia.transmorpher.engine.TProcessBasic
          extended by fr.fluxmedia.tmcontrib.external.SQLExternal
All Implemented Interfaces:
TApplyExternal, TProcess, java.lang.Runnable, org.xml.sax.ContentHandler

public class SQLExternal
extends TProcessBasic
implements TApplyExternal, org.xml.sax.ContentHandler


Field Summary
private  java.lang.String baseName
           
private  java.lang.String baseURL
           
private  java.sql.Connection connection
           
private  java.lang.String driver
           
private static org.xml.sax.Attributes EMPTY_ATTR
           
private  boolean inQuery
           
private  org.xml.sax.ContentHandler outHandler
           
private  java.lang.String password
           
private  java.lang.String resultsetNode
           
private  java.lang.String rowNode
           
private  java.lang.String tmpQuery
           
private  java.lang.String user
           
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
finished, isThread, param, procThread, type
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
debug, id, iListIn, iListOut, iNbIn, iNbOut, nameFather, nameIn, nameOut
 
Constructor Summary
SQLExternal(java.lang.String[] pIn, java.lang.String[] pOut, Parameters pParam, StringParameters staticParam)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          the characters method of content handler interface
private static void close(java.sql.Statement stmt, java.sql.Connection connection)
           
 void endDocument()
          the endDocument method of content handler interface
 void endElement(java.lang.String ns, java.lang.String localName, java.lang.String name)
          the endElement method of content handler interface
 void endPrefixMapping(java.lang.String prefix)
          the endPrefixMapping method of content handler interface
 void generatePort()
           
private  void getConnection()
           
 void ignorableWhitespace(char[] ch, int start, int length)
          the ignorableWhitespace method of content handler interface
 void processingInstruction(java.lang.String target, java.lang.String data)
          the processingInstruction method of content handler interface
private  java.lang.String processQuery(java.lang.String query)
           
 void setContentHandler(org.xml.sax.ContentHandler handler)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
          the setDocumentLocator method of content handler interface
 void skippedEntity(java.lang.String name)
          the skippedEntity method of content handler interface
 void startDocument()
          the startDocument method of content handler interface
 void startElement(java.lang.String ns, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
          the start element method of content handler interface
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          the startPrefixMapping method of content handler interface
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
execProcess, getFinished, getType, initParameters, run, setFinished, setThread, setType
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
bindParameters, getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, reset, setDebug, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.fluxmedia.transmorpher.engine.TProcess
bindParameters, getFatherName, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameters, reset, setDebug, setFatherName, setIn, setName, setOut, setParameter, setParameters
 

Field Detail

inQuery

private boolean inQuery

outHandler

private org.xml.sax.ContentHandler outHandler

tmpQuery

private java.lang.String tmpQuery

driver

private java.lang.String driver

baseName

private java.lang.String baseName

baseURL

private java.lang.String baseURL

user

private java.lang.String user

password

private java.lang.String password

resultsetNode

private java.lang.String resultsetNode

rowNode

private java.lang.String rowNode

connection

private java.sql.Connection connection

EMPTY_ATTR

private static final org.xml.sax.Attributes EMPTY_ATTR
Constructor Detail

SQLExternal

public SQLExternal(java.lang.String[] pIn,
                   java.lang.String[] pOut,
                   Parameters pParam,
                   StringParameters staticParam)
Method Detail

generatePort

public void generatePort()
Specified by:
generatePort in interface TProcess
Specified by:
generatePort in class TProcess_Impl

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler handler)
Specified by:
setContentHandler in interface TApplyExternal

startElement

public final void startElement(java.lang.String ns,
                               java.lang.String localName,
                               java.lang.String name,
                               org.xml.sax.Attributes atts)
                        throws org.xml.sax.SAXException
the start element method of content handler interface

Specified by:
startElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endElement

public final void endElement(java.lang.String ns,
                             java.lang.String localName,
                             java.lang.String name)
                      throws org.xml.sax.SAXException
the endElement method of content handler interface

Specified by:
endElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

setDocumentLocator

public final void setDocumentLocator(org.xml.sax.Locator locator)
the setDocumentLocator method of content handler interface

Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler

startDocument

public final void startDocument()
                         throws org.xml.sax.SAXException
the startDocument method of content handler interface

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endDocument

public final void endDocument()
                       throws org.xml.sax.SAXException
the endDocument method of content handler interface

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

skippedEntity

public final void skippedEntity(java.lang.String name)
                         throws org.xml.sax.SAXException
the skippedEntity method of content handler interface

Specified by:
skippedEntity in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

processingInstruction

public final void processingInstruction(java.lang.String target,
                                        java.lang.String data)
                                 throws org.xml.sax.SAXException
the processingInstruction method of content handler interface

Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

ignorableWhitespace

public final void ignorableWhitespace(char[] ch,
                                      int start,
                                      int length)
                               throws org.xml.sax.SAXException
the ignorableWhitespace method of content handler interface

Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

characters

public final void characters(char[] ch,
                             int start,
                             int length)
                      throws org.xml.sax.SAXException
the characters method of content handler interface

Specified by:
characters in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

startPrefixMapping

public final void startPrefixMapping(java.lang.String prefix,
                                     java.lang.String uri)
                              throws org.xml.sax.SAXException
the startPrefixMapping method of content handler interface

Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endPrefixMapping

public final void endPrefixMapping(java.lang.String prefix)
                            throws org.xml.sax.SAXException
the endPrefixMapping method of content handler interface

Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

getConnection

private void getConnection()

close

private static void close(java.sql.Statement stmt,
                          java.sql.Connection connection)

processQuery

private java.lang.String processQuery(java.lang.String query)

INRIA & FluxMedia

..no bottom yet...