com.ontotext.ordi.mapper.rdbms
Class SqlGenerator
java.lang.Object
com.ontotext.ordi.mapper.rdbms.SqlGenerator
public class SqlGenerator
- extends Object
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 |
SqlGenerator
public SqlGenerator(String sqlQuery)
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.