com.ontotext.ordi.mapper.rdbms
Class SqlGenerator

java.lang.Object
  extended by com.ontotext.ordi.mapper.rdbms.SqlGenerator

public class SqlGenerator
extends Object


Constructor Summary
SqlGenerator(String sqlQuery)
           
 
Method Summary
protected  void generateAllVariations()
          This method generates all combinations between two independent args: argument 1: the existence of original where clause argument 2: the specification of subject or object clause
protected  org.eclipse.datatools.modelbase.sql.query.PredicateLike generatePredicateLikeWihVariable(org.eclipse.datatools.modelbase.sql.query.ResultColumn resultColumn)
           
 String generateSQL(boolean hasSubject, boolean hasObject)
           
 void validate()
          Checks whether the query is valid SQL select query with two columns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlGenerator

public SqlGenerator(String sqlQuery)
Method Detail

generateSQL

public String generateSQL(boolean hasSubject,
                          boolean hasObject)

validate

public void validate()
Checks whether the query is valid SQL select query with two columns.


generatePredicateLikeWihVariable

protected org.eclipse.datatools.modelbase.sql.query.PredicateLike generatePredicateLikeWihVariable(org.eclipse.datatools.modelbase.sql.query.ResultColumn resultColumn)

generateAllVariations

protected void generateAllVariations()
This method generates all combinations between two independent args: argument 1: the existence of original where clause argument 2: the specification of subject or object clause



Copyright © 2008. All Rights Reserved.