Class SQLQueryExecutor
java.lang.Object
org.sgrewritten.stargate.database.SQLQueryExecutor
An executor for executing common queries
-
Constructor Summary
ConstructorDescriptionSQLQueryExecutor
(Connection connection, SQLQueryGenerator queryGenerator) Instantiates an SQL query executor -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeAddFlagRelation
(StorageType type, GlobalPortalId globalPortalId, Set<StargateFlag> flags) Executes the query for adding a new flag to a portal
-
Constructor Details
-
SQLQueryExecutor
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
-