Package l2p.database

Examples of l2p.database.FiltredPreparedStatement.execute()


    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("DELETE FROM character_macroses WHERE char_obj_id=? AND id=?");
      statement.setInt(1, player.getObjectId());
      statement.setInt(2, macro.id);
      statement.execute();
    }
    catch(Exception e)
    {
      _log.log(Level.WARNING, "could not delete macro:", e);
    }
View Full Code Here


      {
        con = L2DatabaseFactory.getInstance().getConnection();
        statement = con.prepareStatement("UPDATE characters SET title=? WHERE obj_Id=?");
        statement.setString(1, title);
        statement.setInt(2, getObjectId());
        statement.execute();
      }
      catch(Exception e)
      {
      }
      finally
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("UPDATE characters SET pledge_type=? WHERE obj_Id=?");
      statement.setInt(1, _pledgeType);
      statement.setInt(2, getObjectId());
      statement.execute();
    }
    catch(Exception e)
    {
    }
    finally
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("UPDATE characters SET pledge_rank=? WHERE obj_Id=?");
      statement.setInt(1, _powerGrade);
      statement.setInt(2, getObjectId());
      statement.execute();
    }
    catch(Exception e)
    {
    }
    finally
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("UPDATE characters SET apprentice=? WHERE obj_Id=?");
      statement.setInt(1, _apprentice);
      statement.setInt(2, getObjectId());
      statement.execute();
    }
    catch(Exception e)
    {
    }
    finally
View Full Code Here

        statement.setString(2, bidder.getClan().getLeaderName());
        statement.setLong(3, bid);
        statement.setLong(4, Calendar.getInstance().getTimeInMillis());
        statement.setInt(5, _auction.getId());
        statement.setInt(6, bidder.getClanId());
        statement.execute();
      }
      else
      {
        statement = con.prepareStatement("INSERT INTO auction_bid (id, auctionId, bidderId, bidderName, maxBid, clan_name, time_bid) VALUES (?, ?, ?, ?, ?, ?, ?)");
        statement.setInt(1, IdFactory.getInstance().getNextId());
View Full Code Here

        statement.setInt(3, bidder.getClanId());
        statement.setString(4, bidder.getName());
        statement.setLong(5, bid);
        statement.setString(6, bidder.getClan().getName());
        statement.setLong(7, Calendar.getInstance().getTimeInMillis());
        statement.execute();
      }
    }
    catch(Exception e)
    {
      _log.log(Level.SEVERE, "Exception: Auction.updateInDB(L2Player bidder, int bid): " + e.getMessage());
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("DELETE FROM auction_bid WHERE auctionId=? AND bidderId=?");
      statement.setInt(1, _auction.getId());
      statement.setInt(2, bidder);
      statement.execute();
    }
    catch(Exception e)
    {
      _log.log(Level.SEVERE, "Exception: Auction.cancelBid(String bidder): " + e.getMessage(), e);
    }
View Full Code Here

    try
    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("DELETE FROM auction_bid WHERE auctionId=?");
      statement.setInt(1, _auction.getId());
      statement.execute();
    }
    catch(Exception e)
    {
      _log.log(Level.SEVERE, "Exception: Auction.deleteFromDB(): " + e.getMessage(), e);
    }
View Full Code Here

    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("UPDATE clan_data SET auction_bid_at=? WHERE clan_id=?");
      statement.setInt(1, bid_at);
      statement.setInt(2, clanId);
      statement.execute();
    }
    catch(Exception e)
    {
      _log.warning("Could not store auction for clan: " + 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.