Record Class DatabaseManager.DatabaseContext
java.lang.Object
java.lang.Record
com.soulfiremc.server.database.DatabaseManager.DatabaseContext
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
DatabaseManager
public static record DatabaseManager.DatabaseContext(org.jooq.DSLContext dsl, com.zaxxer.hikari.HikariDataSource dataSource)
extends Record
implements AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseContext(org.jooq.DSLContext dsl, com.zaxxer.hikari.HikariDataSource dataSource) Creates an instance of aDatabaseContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.zaxxer.hikari.HikariDataSourceReturns the value of thedataSourcerecord component.org.jooq.DSLContextdsl()Returns the value of thedslrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabaseContext
public DatabaseContext(org.jooq.DSLContext dsl, com.zaxxer.hikari.HikariDataSource dataSource) Creates an instance of aDatabaseContextrecord class.- Parameters:
dsl- the value for thedslrecord componentdataSource- the value for thedataSourcerecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
dsl
public org.jooq.DSLContext dsl()Returns the value of thedslrecord component.- Returns:
- the value of the
dslrecord component
-
dataSource
public com.zaxxer.hikari.HikariDataSource dataSource()Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-