org.clazzes.jdbc2xml.sax
Class InsertContentHandler

java.lang.Object
  extended by org.clazzes.util.xml.SimpleContentHandler
      extended by org.clazzes.jdbc2xml.sax.InsertContentHandler
All Implemented Interfaces:
ContentHandler

public class InsertContentHandler
extends org.clazzes.util.xml.SimpleContentHandler

Author:
wglas

Constructor Summary
InsertContentHandler(Connection connection, TimeZone timeZone)
          Create an insert handler for the given connection and use a schema engine created by SchemaEngine.newInstance().
InsertContentHandler(ISchemaEngine schemaEngine)
          Create an insert handler for the given connection and use the supplied schema engine.
 
Method Summary
 ProcessRestrictionFilter getProcessRestrictionFilter()
           
protected  org.clazzes.util.xml.SAXTagHandler getRootHandler(String uri, String localName, String name, Attributes atts)
           
 void setProcessRestrictionFilter(ProcessRestrictionFilter processFilter)
           
 
Methods inherited from class org.clazzes.util.xml.SimpleContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertContentHandler

public InsertContentHandler(Connection connection,
                            TimeZone timeZone)
                     throws SQLException
Create an insert handler for the given connection and use a schema engine created by SchemaEngine.newInstance().

Parameters:
connection - The database connection on which to insert data.
timeZone - The default time zone to use for date values.
Throws:
SQLException

InsertContentHandler

public InsertContentHandler(ISchemaEngine schemaEngine)
                     throws SQLException
Create an insert handler for the given connection and use the supplied schema engine.

Parameters:
schemaEngine - The schema engine carrying the DB connection to insert to and the default time zone.
Throws:
SQLException
Method Detail

getProcessRestrictionFilter

public ProcessRestrictionFilter getProcessRestrictionFilter()
Returns:
the processRestrictionFilter

setProcessRestrictionFilter

public void setProcessRestrictionFilter(ProcessRestrictionFilter processFilter)
Parameters:
processFilter - The processRestrictionFilter to set.

getRootHandler

protected org.clazzes.util.xml.SAXTagHandler getRootHandler(String uri,
                                                            String localName,
                                                            String name,
                                                            Attributes atts)
                                                     throws SAXException
Specified by:
getRootHandler in class org.clazzes.util.xml.SimpleContentHandler
Throws:
SAXException


Copyright © 2012. All Rights Reserved.