net.sf.mud4j.dao.hibernate
Class CharacterDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by net.sf.mud4j.dao.hibernate.CharacterDaoHibernate
All Implemented Interfaces:
CharacterDao, org.springframework.beans.factory.InitializingBean

public class CharacterDaoHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements CharacterDao

Character dao for hibernate support.

Author:
Matthew Purland

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CharacterDaoHibernate()
           
 
Method Summary
 java.lang.Character getCharacter(java.lang.String characterId)
          Get a character that matches the characterId.
 java.util.List getCharacters()
          Get list of characters.
 void removeCharacter(java.lang.String characterId)
          Remove a character.
 void saveCharacter(java.lang.Character character)
          Save and persist a character.
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterDaoHibernate

public CharacterDaoHibernate()
Method Detail

getCharacter

public java.lang.Character getCharacter(java.lang.String characterId)
                                 throws org.springframework.dao.DataAccessException
Get a character that matches the characterId.

Specified by:
getCharacter in interface CharacterDao
Parameters:
characterId - Character id to find character.
Returns:
Returns character from characterId
Throws:
org.springframework.dao.DataAccessException - in case of data I/O problems

getCharacters

public java.util.List getCharacters()
                             throws org.springframework.dao.DataAccessException
Get list of characters.

Specified by:
getCharacters in interface CharacterDao
Returns:
Returns a list of characters.
Throws:
org.springframework.dao.DataAccessException - in case of data I/O problems

removeCharacter

public void removeCharacter(java.lang.String characterId)
                     throws org.springframework.dao.DataAccessException
Remove a character.

Specified by:
removeCharacter in interface CharacterDao
Throws:
org.springframework.dao.DataAccessException - in case of data I/O problems

saveCharacter

public void saveCharacter(java.lang.Character character)
                   throws org.springframework.dao.DataAccessException
Save and persist a character.

Specified by:
saveCharacter in interface CharacterDao
Parameters:
character - Character instance to save.
Throws:
org.springframework.dao.DataAccessException - in case of data I/O problems


Copyright © 2006-2007 mud4j. All Rights Reserved.