Package com.pugh.sockso.db

Examples of com.pugh.sockso.db.DBExporter


     *
     */
   
    protected void exportRequestLog( final File toFile ) throws IOException {
       
        final DBExporter exporter = new DBExporter( db );
        final DBExporter.Format format = (DBExporter.Format) formats.getSelectedItem();
        final String sql = " select * " +
                           " from request_log " +
                           " order by date_of_request desc ";

        final FileWriter writer = new FileWriter( toFile );
        final String data = exporter.export( sql, format );

        writer.write( data );
        writer.close();

        fireRequestLogChanged();
View Full Code Here


            // read in query, then output xml
            while ( (line = in.readLine()) != null )
                sql += line + "\n";
           
            final DBExporter exporter = new DBExporter( db );
            System.out.print(
                exporter.export( sql, DBExporter.Format.XML )
            );

        }
       
        catch ( final IOException e ) {
View Full Code Here

TOP

Related Classes of com.pugh.sockso.db.DBExporter

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.