Class JDBCBaseExecution

  • All Implemented Interfaces:
    org.teiid.translator.Execution
    Direct Known Subclasses:
    JDBCQueryExecution, JDBCUpdateExecution

    public abstract class JDBCBaseExecution
    extends Object
    implements org.teiid.translator.Execution
    • Field Detail

      • context

        protected org.teiid.translator.ExecutionContext context
      • command

        protected org.teiid.language.Command command
      • trimString

        protected boolean trimString
      • fetchSize

        protected int fetchSize
      • statement

        protected volatile Statement statement
    • Constructor Detail

      • JDBCBaseExecution

        protected JDBCBaseExecution​(org.teiid.language.Command command,
                                    Connection connection,
                                    org.teiid.translator.ExecutionContext context,
                                    JDBCExecutionFactory jef)
    • Method Detail

      • translateCommand

        protected TranslatedCommand translateCommand​(org.teiid.language.Command command)
                                              throws org.teiid.translator.TranslatorException
        Throws:
        org.teiid.translator.TranslatorException
      • close

        public void close()
        Specified by:
        close in interface org.teiid.translator.Execution
      • cancel

        public void cancel()
                    throws org.teiid.translator.TranslatorException
        Specified by:
        cancel in interface org.teiid.translator.Execution
        Throws:
        org.teiid.translator.TranslatorException
      • setSizeContraints

        protected void setSizeContraints​(Statement statement)
      • getConnection

        public Connection getConnection()
        Returns the JDBC connection used by the execution object.
        Returns:
        Returns the connection.
        Since:
        4.1.1