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

io.ebean.mocker.delegate.DelegateBulkUpdate Maven / Gradle / Ivy

package io.ebean.mocker.delegate;

import io.ebean.*;

public class DelegateBulkUpdate implements InterceptBulkUpdate {

  protected Database delegate;

  /**
   * Construct with a EbeanServer to delegate and using ImmediateBackgroundExecutor.
   * 

* This delegate will be used on all method calls that are not overwritten. */ public DelegateBulkUpdate(Database delegate) { this.delegate = delegate; } @Override public void externalModification(String tableName, boolean inserted, boolean updated, boolean deleted) { delegate.externalModification(tableName, inserted, updated, deleted); } @Override public int execute(SqlUpdate sqlUpdate) { return delegate.execute(sqlUpdate); } @Override public int execute(Update update) { return delegate.execute(update); } @Override public int execute(Update update, Transaction t) { return delegate.execute(update, t); } @Override public int execute(CallableSql callableSql) { return delegate.execute(callableSql); } @Override public int execute(SqlUpdate updSql, Transaction t) { return delegate.execute(updSql, t); } @Override public int execute(CallableSql callableSql, Transaction t) { return delegate.execute(callableSql, t); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy