/** * Save the GameCharacter into the database. * * @param character The game character that should be saved. * @exception LabySQLException thrown in case of database problems. */ public static void save(GameCharacter character) throws LabySQLException { // Save user state into database. try { Log.info("CharacterState", "save", "Save state in DB..."); JdbcUtil.saveCharacter(character); } catch (NoRecordUpdatedException e) { throw new LabySQLException("User data not stored: " + character); } }