net.sf.mud4j.dao
Interface CharacterDao

All Known Implementing Classes:
CharacterDaoHibernate

public interface CharacterDao

Character dao interface.

Author:
Matthew Purland

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.
 

Method Detail

getCharacter

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

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

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

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

saveCharacter

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

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

removeCharacter

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

Parameters:
character - Character to remove.
Throws:
org.springframework.dao.DataAccessException - in case of data I/O problems


Copyright © 2006-2007 mud4j. All Rights Reserved.