Package nl2sql.sqlGenerator

Examples of nl2sql.sqlGenerator.ToSql


        System.out.println("FinalLeft = " + NewLeft);
        System.out.println("FinalRight = " + NewRight);
       
        QuestionWordAction QWA = new QuestionWordAction(question, chunk, NewLeft, NewRight);
       
        ToSql to = new ToSql(QWA, p, At, CompareWords, CompareActions, Left, Tag);
        System.out.println(to.getSelect() + to.getFrom() + to.getWhere());
        //System.out.println("SELECT " + attribute + " WHERE " + c1 + " FROM " + relation);
        /*
        Writer outputFile = new BufferedWriter(new OutputStreamWriter
                (new FileOutputStream(Directory.LogFile), "UTF-8"));       
        outputFile.write(question + " ----- " + to.getSelect() + to.getFrom() + to.getWhere());
        outputFile.close();
        */
        String answer = to.getSelect() + to.getFrom() + to.getWhere();
        try{
            db.InsertLog(question, "answer");
        } catch(Exception E){}
        return (to.getSelect() + to.getFrom() + to.getWhere());
    }
View Full Code Here

TOP

Related Classes of nl2sql.sqlGenerator.ToSql

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.