Class DefaultBatchTranslator

    • Constructor Detail

    • Method Detail

      • ensureTranslated

        protected void ensureTranslated()
      • getSql

        public String getSql()
        Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.
        Specified by:
        getSql in interface BatchTranslator
      • updateBindings

        public DbAttributeBinding[] updateBindings​(BatchQueryRow row)
        Description copied from interface: BatchTranslator
        Updates internal bindings to be used with a given row, returning updated bindings array. This method guarantees that the returned array contains the same bindings in the same order as in the array returned from BatchTranslator.getBindings() (but in a state corresponding to the 'row' parameter). Usually the returned array is actually the same object reused for every iteration, only with changed object state.
        Specified by:
        updateBindings in interface BatchTranslator
      • createSql

        protected abstract String createSql()
      • appendDbAttribute

        protected void appendDbAttribute​(StringBuilder buf,
                                         DbAttribute dbAttribute)
        Appends the name of the column to the query buffer. Subclasses use this method to append column names in the WHERE clause, i.e. for the columns that are not being updated.