org.jaffa.persistence.engines.jdbcengine.querygenerator
Class QueryStatementHelper

java.lang.Object
  extended byorg.jaffa.persistence.engines.jdbcengine.querygenerator.QueryStatementHelper

public class QueryStatementHelper
extends Object

Use the helper method to generate SQL statements for quering the database.


Constructor Summary
QueryStatementHelper()
           
 
Method Summary
static String getStatement(Criteria criteria, String engineType)
          This parses a Criteria object for constructing relevant SQL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStatementHelper

public QueryStatementHelper()
Method Detail

getStatement

public static String getStatement(Criteria criteria,
                                  String engineType)
                           throws IOException
This parses a Criteria object for constructing relevant SQL.

Parameters:
criteria - the object containing query data.
engineType - The engine type as defined in init.xml
Returns:
a String representing SQL statement.
Throws:
IOException - if any error occurs while extracting the String from the criteria.


Copyright © 2002-2004 JAFFA Project.