Class ConnectionWrapper

java.lang.Object
wbs.utils.util.database.ConnectionWrapper

public class ConnectionWrapper extends Object
Wraps a connection to an SQL database.
  • Constructor Details

    • ConnectionWrapper

      public ConnectionWrapper(WbsPlugin plugin, WbsDatabase database)
      Creates a connection wrapper related to the given Wbs wrappers.
      Parameters:
      plugin - The related WbsPlugin to use for threading and logging.
      database - The database wrapper.
  • Method Details

    • getConnection

      @Nullable public @Nullable Connection getConnection()
      Returns:
      An open connection from the related database, or null if an exception occurs.