Class SQLQueryExecutor

java.lang.Object
org.sgrewritten.stargate.database.SQLQueryExecutor

public class SQLQueryExecutor extends Object
An executor for executing common queries
  • Constructor Details

    • SQLQueryExecutor

      public SQLQueryExecutor(Connection connection, SQLQueryGenerator queryGenerator)
      Instantiates an SQL query executor
      Parameters:
      connection -

      The database connection to use

      queryGenerator -

      The generator to use

  • Method Details

    • executeAddFlagRelation

      public void executeAddFlagRelation(StorageType type, GlobalPortalId globalPortalId, Set<StargateFlag> flags) throws SQLException
      Executes the query for adding a new flag to a portal
      Parameters:
      type -

      The type of portal to add the flag to

      globalPortalId -

      The identifier for the portal to update

      flags -

      The flags to add

      Throws:
      SQLException -

      If unable to execute the query