Package org.teiid.translator.jdbc
Class TranslatedCommand
- java.lang.Object
-
- org.teiid.translator.jdbc.TranslatedCommand
-
public class TranslatedCommand extends Object
This is a utility class used to translate an ICommand using a SQLConversionVisitor. The SQLConversionVisitor should not be invoked directly; this object will use it to translate the ICommand.
-
-
Constructor Summary
Constructors Constructor Description TranslatedCommand(ExecutionContext context, JDBCExecutionFactory executionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetPreparedValues()Return List of values to set on a prepared statement, if necessary.StringgetSql()Get String SQL of translated command.booleanisPrepared()Returns whether the statement is prepared.StringtoString()voidtranslateCommand(Command command)The method to cause this object to do it's thing.
-
-
-
Constructor Detail
-
TranslatedCommand
public TranslatedCommand(ExecutionContext context, JDBCExecutionFactory executionFactory)
-
-
Method Detail
-
translateCommand
public void translateCommand(Command command) throws TranslatorException
The method to cause this object to do it's thing. This method should be called right after the constructor; afterward, all of the getter methods can be called to retrieve results.- Parameters:
command- ICommand to be translated- Throws:
TranslatorException
-
getPreparedValues
public List getPreparedValues()
Return List of values to set on a prepared statement, if necessary.- Returns:
- List of values to be set on a prepared statement
-
getSql
public String getSql()
Get String SQL of translated command.- Returns:
- SQL of translated command
-
isPrepared
public boolean isPrepared()
Returns whether the statement is prepared.- Returns:
- true if the statement is prepared
-
-