Class SQLTask

java.lang.Object
com.palmergames.bukkit.towny.db.SQLTask
All Implemented Interfaces:
Runnable

@Internal public class SQLTask extends Object implements Runnable
  • Field Details

    • update

      public final boolean update
    • tb_name

      public final String tb_name
    • args

      public final Map<String,?> args
    • keys

      public final List<String> keys
  • Constructor Details

    • SQLTask

      public SQLTask(TownySQLSource source, String tb_name, Map<String,?> args)
      Constructor for a Delete task
      Parameters:
      tb_name - - Table name.
      args - - Arguments.
    • SQLTask

      public SQLTask(TownySQLSource source, String tb_name, Map<String,?> args, List<String> keys)
      Constructor for an INSERT/UPDATE task.
      Parameters:
      tb_name - - Table Name.
      args - - Arguments.
      keys - - Keys to add to table.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable