com.subshell.persistence.hibernate
Class HibernateDatabase

java.lang.Object
  extended by com.subshell.persistence.hibernate.HibernateDatabase
All Implemented Interfaces:
Database

public class HibernateDatabase
extends Object
implements Database

Database implementation using Hibernate.


Constructor Summary
HibernateDatabase()
           
 
Method Summary
 void close()
          Closes this Database.
 boolean isClosed()
          Returns whether this Database has been closed.
 Transaction openTransaction()
          Opens and returns a new Transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateDatabase

public HibernateDatabase()
Method Detail

close

public void close()
           throws PersistenceException
Description copied from interface: Database
Closes this Database. The Database cannot be reused once it has been closed.

Specified by:
close in interface Database
Throws:
PersistenceException - when the closing fails

openTransaction

public Transaction openTransaction()
Description copied from interface: Database
Opens and returns a new Transaction.

Specified by:
openTransaction in interface Database
Returns:
the new transaction

isClosed

public boolean isClosed()
Description copied from interface: Database
Returns whether this Database has been closed.

Specified by:
isClosed in interface Database
Returns:
true, when this database has been closed, else false


Copyright © 2004-2005 subshell GmbH. All Rights Reserved.