
com.greenpepper.server.database.SessionService Maven / Gradle / Ivy
package com.greenpepper.server.database;
import org.hibernate.Session;
/**
*
* Copyright (c) 2005 Pyxis technologies inc. All Rights Reserved.
*
* @author gcarey
* @version $Id: $Id
*/
public interface SessionService
{
/**
* Starts the database session
*/
void startSession();
/**
* Retrieves the database session
*
* @return the database session
*/
Session getSession();
/**
* Ends the database session
*/
void closeSession();
/**
* Starts a transaction
*/
void beginTransaction();
/**
* Commits the transaction.
*/
void commitTransaction();
/**
* Rollbacks the transaction.
*/
void rollbackTransaction();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy