org.hibernate.procedure.ProcedureCallMemento Maven / Gradle / Ivy
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.procedure;
import java.util.Map;
import org.hibernate.Session;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
/**
* Represents a "memento" (disconnected, externalizable form) of a ProcedureCall
*
* @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.
*
* @param session The session to connect the procedure call to
*
* @return The executable call
*/
ProcedureCall makeProcedureCall(SharedSessionContractImplementor session);
/**
* Access to any hints associated with the memento.
*
* IMPL NOTE : exposed separately because only HEM needs access to this.
*
* @return The hints.
*/
Map getHintsMap();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy