com.zphinx.spine.data.impl
Class AbstractHibernateDAO

java.lang.Object
  extended by com.zphinx.spine.data.DataAbstract
      extended by com.zphinx.spine.data.impl.AbstractHibernateDAO
All Implemented Interfaces:
DataAccessObject

public class AbstractHibernateDAO
extends DataAbstract

AbstractHibernateDAO represents a stub for creating Data Access Objects which use hibernate to load and persist data

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Constructor Summary
AbstractHibernateDAO()
          Public Constructor
 
Method Summary
 boolean close()
          Call all the actions to be performed before closing the datastore
 Object fetchData(DataTransferObject obj)
          Open a connection to the data storage system and return a suitable object
 org.hibernate.Session getSession()
          Gets the session
 void setSession(org.hibernate.Session session)
          sets the session
 
Methods inherited from class com.zphinx.spine.data.DataAbstract
getErrors, getStoreType, setErrors, setStoreType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHibernateDAO

public AbstractHibernateDAO()
Public Constructor

Method Detail

close

public boolean close()
Description copied from interface: DataAccessObject
Call all the actions to be performed before closing the datastore

Specified by:
close in interface DataAccessObject
Specified by:
close in class DataAbstract
Returns:
True if the operation succeeds

fetchData

public Object fetchData(DataTransferObject obj)
Description copied from interface: DataAccessObject
Open a connection to the data storage system and return a suitable object

Specified by:
fetchData in interface DataAccessObject
Specified by:
fetchData in class DataAbstract
Parameters:
obj - A DataTransferObject to parse
Returns:
A value object containing data

setSession

public void setSession(org.hibernate.Session session)
sets the session

Parameters:
session -

getSession

public org.hibernate.Session getSession()
Gets the session

Returns:
the session