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

io.github.mmm.orm.spi.session.DbSession Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.orm.spi.session;

import io.github.mmm.entity.bean.EntityBean;
import io.github.mmm.orm.connection.DbConnectionData;

/**
 * Database session data for a single transaction.
 *
 * @since 1.0.0
 */
public interface DbSession {

  /**
   * @return the {@link DbConnectionData}.
   */
  DbConnectionData getConnectionData();

  /**
   * @param  type of the {@link EntityBean}.
   * @param entity the {@link EntityBean}.
   * @return the {@link DbEntitySession} responsible for the given {@link EntityBean} (by {@link EntityBean#getType()
   *         type}).
   */
   DbEntitySession get(E entity);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy