Package wbs.utils.util.database
Class ConnectionWrapper
java.lang.Object
wbs.utils.util.database.ConnectionWrapper
Wraps a connection to an SQL database.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionWrapper(WbsPlugin plugin, WbsDatabase database) Creates a connection wrapper related to the given Wbs wrappers. -
Method Summary
-
Constructor Details
-
ConnectionWrapper
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
- Returns:
- An open connection from the related database, or null if an exception occurs.
-