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

io.ebeaninternal.server.deploy.IntersectionTable Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.server.deploy;

import io.ebean.Database;
import io.ebean.SqlUpdate;

public final class IntersectionTable {

  private final String insertSql;
  private final String deleteSql;

  IntersectionTable(String insertSql, String deleteSql) {
    this.insertSql = insertSql;
    this.deleteSql = deleteSql;
  }

  /**
   * Return a SqlUpdate for inserting into the intersection table.
   */
  public SqlUpdate insert(Database server) {
    return server.sqlUpdate(insertSql);
  }

  /**
   * Return a SqlUpdate for deleting from the intersection table.
   */
  public SqlUpdate delete(Database server) {
    return server.sqlUpdate(deleteSql);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy