nl.pbemengine.engine.ng.base.entity.dao
Class DAO

java.lang.Object
  extended by nl.pbemengine.engine.ng.base.entity.dao.DAO
Direct Known Subclasses:
GameDAO, MailDAO, UserDAO

public class DAO
extends java.lang.Object

Base class for DAO objects, should be inherited from at all times

Author:
Jeroen Steenbeeke

Field Summary
protected  org.hibernate.Session session
           
 
Constructor Summary
DAO()
           
 
Method Summary
 org.hibernate.Session getSession()
          Returns the Hibernate session for this DAO object
 void setSession(org.hibernate.Session session)
          Sets the Hibernate session for this DAO object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected org.hibernate.Session session
Constructor Detail

DAO

public DAO()
Method Detail

setSession

public void setSession(org.hibernate.Session session)
Sets the Hibernate session for this DAO object

Parameters:
session - The session to set

getSession

public org.hibernate.Session getSession()
Returns the Hibernate session for this DAO object

Returns:
The session tied to this DAO


Copyright © 2008. All Rights Reserved.