Skip to content

Commit

Permalink
HHH-12496 - ProcedureCallMemento (binary compatibility)
Browse files Browse the repository at this point in the history
(cherry picked from commit d9cdd58)
  • Loading branch information
sebersole committed Apr 17, 2018
1 parent 0756004 commit 2263b1b
Showing 1 changed file with 24 additions and 0 deletions.
Expand Up @@ -8,6 +8,8 @@

import java.util.Map;

import org.hibernate.Session;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.engine.spi.SharedSessionContractImplementor;

/**
Expand All @@ -16,6 +18,28 @@
* @author Steve Ebersole
*/
public interface ProcedureCallMemento {
/**
* Convert the memento back into an executable (connected) form.
*
* @param session The session to connect the procedure call to
*
* @return The executable call
*/
default ProcedureCall makeProcedureCall(Session session) {
return makeProcedureCall( (SharedSessionContractImplementor) session );
}

/**
* Convert the memento back into an executable (connected) form.
*
* @param session The session to connect the procedure call to
*
* @return The executable call
*/
default ProcedureCall makeProcedureCall(SessionImplementor session) {
return makeProcedureCall( (SharedSessionContractImplementor) session );
}

/**
* Convert the memento back into an executable (connected) form.
*
Expand Down

0 comments on commit 2263b1b

Please sign in to comment.