Package org.gdbms.engine.data.persistence

Examples of org.gdbms.engine.data.persistence.Memento


     *
     * @throws Throwable DOCUMENT ME!
     */
    public void testXMLMemento() throws Throwable {
        DataSource d = ds.executeSQL("select * from persona;");
        Memento m = d.getMemento();

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Handler h = new Handler();
        PrintWriter pw = new PrintWriter(out);
        h.setOut(pw);
        m.setContentHandler(h);
        m.getXML();
        pw.close();

        XMLReader reader = XMLReaderFactory.createXMLReader(
                "org.apache.crimson.parser.XMLReaderImpl");
        MementoContentHandler mch = new MementoContentHandler();
View Full Code Here


     *
     * @throws Throwable DOCUMENT ME!
     */
    public void testXMLMementoOfQueryDataSource() throws Throwable {
        DataSource d = ds.getDataSource("hsqldbapellido");
        Memento m = d.getMemento();

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Handler h = new Handler();
        PrintWriter pw = new PrintWriter(out);
        h.setOut(pw);
        m.setContentHandler(h);
        m.getXML();
        pw.close();

        XMLReader reader = XMLReaderFactory.createXMLReader(
                "org.apache.crimson.parser.XMLReaderImpl");
        MementoContentHandler mch = new MementoContentHandler();
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.persistence.Memento

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.