Package l2p.database

Examples of l2p.database.FiltredPreparedStatement.execute()


      statement.setInt(1, clanId);
      statement.execute();
      DatabaseUtils.closeStatement(statement);
      statement = con.prepareStatement("DELETE FROM clan_privs WHERE clan_id=?");
      statement.setInt(1, clanId);
      statement.execute();
      DatabaseUtils.closeStatement(statement);
      statement = con.prepareStatement("DELETE FROM clan_skills WHERE clan_id=?");
      statement.setInt(1, clanId);
      statement.execute();
    }
View Full Code Here


      statement.setInt(1, clanId);
      statement.execute();
      DatabaseUtils.closeStatement(statement);
      statement = con.prepareStatement("DELETE FROM clan_skills WHERE clan_id=?");
      statement.setInt(1, clanId);
      statement.execute();
    }
    catch(Exception e)
    {
      _log.warning("could not dissolve clan:" + e);
    }
View Full Code Here

    try
    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("UPDATE clan_data SET ally_id=0 WHERE ally_id=?");
      statement.setInt(1, allyId);
      statement.execute();
      DatabaseUtils.closeStatement(statement);
      statement = con.prepareStatement("DELETE FROM ally_data WHERE ally_id=?");
      statement.setInt(1, allyId);
      statement.execute();
    }
View Full Code Here

      statement.setInt(1, allyId);
      statement.execute();
      DatabaseUtils.closeStatement(statement);
      statement = con.prepareStatement("DELETE FROM ally_data WHERE ally_id=?");
      statement.setInt(1, allyId);
      statement.execute();
    }
    catch(Exception e)
    {
      _log.warning("could not dissolve clan:" + e);
    }
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("REPLACE INTO clan_wars (clan1, clan2) VALUES(?,?)");
      statement.setInt(1, clan1.getClanId());
      statement.setInt(2, clan2.getClanId());
      statement.execute();
    }
    catch(Exception e)
    {
      _log.warning("could not store clan war data:" + e);
    }
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("DELETE FROM clan_wars WHERE clan1=? AND clan2=?");
      statement.setInt(1, clan1.getClanId());
      statement.setInt(2, clan2.getClanId());
      statement.execute();
    }
    catch(Exception e)
    {
      _log.warning("could not delete war data:" + e);
    }
View Full Code Here

      String value = getVars().getString(name, "");
      if(value.isEmpty())
      {
        statement = con.prepareStatement("DELETE FROM server_variables WHERE name = ?");
        statement.setString(1, name);
        statement.execute();
      }
      else
      {
        statement = con.prepareStatement("REPLACE INTO server_variables (name, value) VALUES (?,?)");
        statement.setString(1, name);
View Full Code Here

      else
      {
        statement = con.prepareStatement("REPLACE INTO server_variables (name, value) VALUES (?,?)");
        statement.setString(1, name);
        statement.setString(2, value);
        statement.execute();
      }
    }
    catch(Exception e)
    {
    }
View Full Code Here

      {
        statement = con.prepareStatement("DELETE FROM character_skills WHERE skill_id=? AND char_obj_id=? AND class_index=?");
        statement.setInt(1, oldSkill.getId());
        statement.setInt(2, getObjectId());
        statement.setInt(3, getActiveClassId());
        statement.execute();
      }
    }
    catch(final Exception e)
    {
      _log.log(Level.WARNING, "Error could not delete Skill:", e);
View Full Code Here

      statement.setInt(1, getObjectId());
      statement.setInt(2, newSkill.getId());
      statement.setInt(3, newSkill.getLevel());
      statement.setString(4, newSkill.getName());
      statement.setInt(5, getActiveClassId());
      statement.execute();
    }
    catch(final Exception e)
    {
      _log.log(Level.WARNING, "Error could not store Skills:", e);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.