Package l2p.database

Examples of l2p.database.FiltredStatement.executeBatch()


            {
              fs.addBatch(sb.append("REPLACE DELAYED INTO `killcount` SET `npc_id`=").append(tmp.getKey()).append(", `count`=").append(tmp.getValue()).append(", `char_id`=").append(_objectId).toString());
              sb.clear();
            }
            TextBuilder.recycle(sb);
            fs.executeBatch();
            DatabaseUtils.closeStatement(fs);
          }
          if(!fast && Config.CRAFT_COUNTER && _StatCraft != null)
          {
            TextBuilder sb = TextBuilder.newInstance();
View Full Code Here


            {
              fs.addBatch(sb.append("REPLACE DELAYED INTO `craftcount` SET `item_id`=").append(tmp.getKey()).append(", `count`=").append(tmp.getValue()).append(", `char_id`=").append(_objectId).toString());
              sb.clear();
            }
            TextBuilder.recycle(sb);
            fs.executeBatch();
            DatabaseUtils.closeStatement(fs);
          }
          if(!fast && Config.DROP_COUNTER && _StatDrop != null)
          {
            TextBuilder sb = TextBuilder.newInstance();
View Full Code Here

            {
              fs.addBatch(sb.append("REPLACE DELAYED INTO `craftcount` SET `item_id`=").append(tmp.getKey()).append(", `count`=").append(tmp.getValue()).append(", `char_id`=").append(_objectId).toString());
              sb.clear();
            }
            TextBuilder.recycle(sb);
            fs.executeBatch();
            DatabaseUtils.closeStatement(fs);
          }
        }
        catch(ConcurrentModificationException e)
        {
View Full Code Here

          fs.addBatch(sb.append("REPLACE INTO `killcount` SET `npc_id`=").append(t.npcId).append(", `count`=").append(t.killscount).append(", `char_id`=-1").toString());
          sb.clear();
        }
      }
      TextBuilder.recycle(sb);
      fs.executeBatch();
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
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.