1 22 23 package org.xquark.bridge; 24 25 import java.sql.Connection ; 26 27 import org.xml.sax.ContentHandler ; 28 import org.xml.sax.ErrorHandler ; 29 import org.xquark.xml.xdbc.XMLDBCException; 30 import org.xquark.xml.xdbc.XMLErrorHandler; 31 32 51 public interface Mapper extends ContentHandler , ErrorHandler 52 { 53 public static final String RCSRevision = "$Revision: 1.4 $"; 54 public static final String RCSName = "$Name: $"; 55 56 60 public Mapping getMapping(); 61 62 66 public void close() throws XMLDBCException; 67 68 75 public void insertDocument(org.xml.sax.InputSource input) 76 throws XMLDBCException, org.xml.sax.SAXException ; 77 78 85 public void insertDocument(org.xml.sax.XMLReader parser, org.xml.sax.InputSource input) 86 throws XMLDBCException, org.xml.sax.SAXException ; 87 88 93 public void insertDocument(org.w3c.dom.Document doc) throws XMLDBCException; 94 95 101 public void insertDocument(String doc) throws XMLDBCException, org.xml.sax.SAXException ; 102 103 109 public Connection getConnection(); 110 111 118 public XMLErrorHandler getErrorHandler(); 119 120 137 public void setErrorHandler(XMLErrorHandler handler); 138 139 149 public void setDocumentBase(String URI); 150 151 157 public String getDocumentBase(); 158 159 173 public void setAutoFlush(boolean activated) throws XMLDBCException; 174 175 180 public boolean getAutoFlush(); 181 182 188 public void flushBuffer() throws XMLDBCException; 189 190 197 public void clearBuffer() throws XMLDBCException; 198 199 } 200 201 202 | Popular Tags |