Class Batch

java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.plugin.jdbc.AbstractJdbcBatch
io.kestra.plugin.jdbc.oracle.Batch
All Implemented Interfaces:
io.kestra.core.models.Plugin, io.kestra.core.models.tasks.RunnableTask<io.kestra.plugin.jdbc.AbstractJdbcBatch.Output>, io.kestra.core.models.tasks.TaskInterface, io.kestra.core.models.WorkerJobLifecycle, io.kestra.plugin.jdbc.JdbcConnectionInterface, io.kestra.plugin.jdbc.JdbcStatementInterface

@Example(title="Fetch rows from a table and bulk insert to another one",full=true,code="id: oracle_batch\nnamespace: company.team\n\ntasks:\n - id: query\n type: io.kestra.plugin.jdbc.oracle.Query\n url: jdbc:oracle:thin:@dev:49161:XE\n username: oracle\n password: oracle_password\n sql: |\n SELECT *\n FROM xref\n LIMIT 1500;\n fetchType: STORE\n\n - id: update\n type: io.kestra.plugin.jdbc.oracle.Batch\n from: \"{{ outputs.query.uri }}\"\n url: jdbc:oracle:thin:@prod:49161:XE\n username: oracle\n password: oracle_password\n sql: |\n insert into xref values( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\n") @Example(title="Fetch rows from a table and bulk insert to another one, without using sql query",full=true,code="id: oracle_batch\nnamespace: company.team\n\ntasks:\n - id: query\n type: io.kestra.plugin.jdbc.oracle.Query\n url: jdbc:oracle:thin:@dev:49161:XE\n username: oracle\n password: oracle_password\n sql: |\n SELECT *\n FROM xref\n LIMIT 1500;\n fetchType: STORE\n\n - id: update\n type: io.kestra.plugin.jdbc.oracle.Batch\n from: \"{{ outputs.query.uri }}\"\n url: jdbc:oracle:thin:@prod:49161:XE\n username: oracle\n password: oracle_password\n table: XREF\n") public class Batch extends io.kestra.plugin.jdbc.AbstractJdbcBatch implements io.kestra.core.models.tasks.RunnableTask<io.kestra.plugin.jdbc.AbstractJdbcBatch.Output>
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.kestra.plugin.jdbc.AbstractJdbcBatch

    io.kestra.plugin.jdbc.AbstractJdbcBatch.AbstractJdbcBatchBuilder<C extends io.kestra.plugin.jdbc.AbstractJdbcBatch,B extends io.kestra.plugin.jdbc.AbstractJdbcBatch.AbstractJdbcBatchBuilder<C,B>>, io.kestra.plugin.jdbc.AbstractJdbcBatch.Output, io.kestra.plugin.jdbc.AbstractJdbcBatch.ParameterType

    Nested classes/interfaces inherited from class io.kestra.core.models.tasks.Task

    io.kestra.core.models.tasks.Task.TaskBuilder<C extends io.kestra.core.models.tasks.Task,B extends io.kestra.core.models.tasks.Task.TaskBuilder<C,B>>
  • Field Summary

    Fields inherited from class io.kestra.core.models.tasks.Task

    disabled, id, retry, timeout, type
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.kestra.plugin.jdbc.AbstractCellConverter
     
    void
     

    Methods inherited from class io.kestra.plugin.jdbc.AbstractJdbcBatch

    canEqual, equals, getChunk, getColumns, getFrom, getPassword, getSql, getTable, getTimeZoneId, getUrl, getUsername, hashCode, run, toString

    Methods inherited from class io.kestra.core.models.tasks.Task

    findById, findById, getDescription, getDisabled, getId, getLogLevel, getRetry, getRunIf, getTimeout, getType, getWorkerGroup, isAllowFailure, isAllowWarning, isFlowable, isLogToFile, isSendToWorkerTask

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.kestra.plugin.jdbc.JdbcConnectionInterface

    connection, connectionProperties, connectionProperties

    Methods inherited from interface io.kestra.plugin.jdbc.JdbcStatementInterface

    zoneId

    Methods inherited from interface io.kestra.core.models.tasks.RunnableTask

    run

    Methods inherited from interface io.kestra.core.models.WorkerJobLifecycle

    kill, stop
  • Constructor Details

    • Batch

      public Batch()
  • Method Details

    • getCellConverter

      protected io.kestra.plugin.jdbc.AbstractCellConverter getCellConverter(ZoneId zoneId)
      Specified by:
      getCellConverter in class io.kestra.plugin.jdbc.AbstractJdbcBatch
    • registerDriver

      public void registerDriver() throws SQLException
      Specified by:
      registerDriver in interface io.kestra.plugin.jdbc.JdbcConnectionInterface
      Throws:
      SQLException