Class StendhalCharacterDAO
java.lang.Object
marauroa.server.game.db.CharacterDAO
games.stendhal.server.core.engine.db.StendhalCharacterDAO
Stendhal specific extensions to the normal CharacterDAO which will update
the redundant tables for the web application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)
creates a new charactervoid
storeCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp)
This method stores a character's avatar in the database and updates the link with the Character table.Methods inherited from class marauroa.server.game.db.CharacterDAO
addCharacter, addCharacter, getAccountName, getAccountName, getCanonicalName, getCanonicalName, getCharacters, getCharacters, getCreationDate, getCreationDate, hasActiveCharacter, hasActiveCharacter, hasCharacter, hasCharacter, hasCharacter, hasCharacter, isCharacterCreationLimitReached, isCharacterCreationLimitReached, loadAllActiveCharacters, loadAllActiveCharacters, loadAllCharacters, loadAllCharacters, loadCharacter, loadCharacter, removeCharacter, removeCharacter, setCharacterStatus, setCharacterStatus, storeCharacter, storeCharacter
-
Constructor Details
-
StendhalCharacterDAO
public StendhalCharacterDAO()
-
-
Method Details
-
addCharacter
public void addCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp) throws SQLException, IOExceptionDescription copied from class:CharacterDAO
creates a new character- Overrides:
addCharacter
in classCharacterDAO
- Parameters:
transaction
- DBTransactionusername
- usernamecharacter
- name of characterplayer
- RPObject of the playertimestamp
- timestamp- Throws:
SQLException
- in case of an database errorIOException
- in case of an input/output error
-
storeCharacter
public void storeCharacter(DBTransaction transaction, String username, String character, RPObject player, Timestamp timestamp) throws SQLException, IOExceptionDescription copied from class:CharacterDAO
This method stores a character's avatar in the database and updates the link with the Character table.- Overrides:
storeCharacter
in classCharacterDAO
- Parameters:
transaction
- the database transactionusername
- the player's usernamecharacter
- the player's character nameplayer
- the RPObject itself.timestamp
- timestamp- Throws:
SQLException
- if there is any problem at database.IOException
-