All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.jdbc.statements.BatchInsertStatementDefault.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






BatchInsertStatementDefault (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.jdbc.statements

Class BatchInsertStatementDefault

    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
    • Constructor Detail

      • BatchInsertStatementDefault

        public BatchInsertStatementDefault(Connection connection)
    • Method Detail

      • addBatchParams

        protected void addBatchParams(Map<String,Object> params)
      • getBatchInsertSize

        protected int getBatchInsertSize()
      • batchInsert

        public int[] batchInsert()
        Description copied from interface: BatchInsertStatement
        Run the batch insert query. Returns the same informations as the native JDBC specs:
        Specified by:
        batchInsert in interface BatchInsertStatement
        See Also:
        https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#executeBatch()
      • batchInsert

        public List<Long> batchInsert(String primaryKeyName)
        Description copied from interface: BatchInsertStatement
        Run the batch insert query and return the generated ids, if the current driver supports it.

        Note that some drivers don't support the return of generated keys when using batch inserts. An exception will be throwed if the generated keys cant be retrieved.

        Specified by:
        batchInsert in interface BatchInsertStatement

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy