java.lang.Object
java.lang.Record
org.litebridge.orm.LitebridgeBuilder.ConstructorArgs
- Enclosing class:
LitebridgeBuilder<LB extends LitebridgeCore>
public static record LitebridgeBuilder.ConstructorArgs(DatabaseProvider databaseProvider, TransactionManager transactionManager, LitebridgeConfig litebridgeConfig, MethodHandles.Lookup lookup)
extends Record
Constructor arguments for a custom database provider-provided Litebridge instance.
This allows the database provider to instantiate a custom Litebridge instance, allowing it to extend the core Litebridge API.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorArgs(DatabaseProvider databaseProvider, TransactionManager transactionManager, LitebridgeConfig litebridgeConfig, MethodHandles.Lookup lookup) Creates an instance of aConstructorArgsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabaseProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelitebridgeConfigrecord component.lookup()Returns the value of thelookuprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionManagerrecord component.
-
Constructor Details
-
ConstructorArgs
public ConstructorArgs(DatabaseProvider databaseProvider, TransactionManager transactionManager, LitebridgeConfig litebridgeConfig, MethodHandles.Lookup lookup) Creates an instance of aConstructorArgsrecord class.- Parameters:
databaseProvider- the value for thedatabaseProviderrecord componenttransactionManager- the value for thetransactionManagerrecord componentlitebridgeConfig- the value for thelitebridgeConfigrecord componentlookup- the value for thelookuprecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
databaseProvider
Returns the value of thedatabaseProviderrecord component.- Returns:
- the value of the
databaseProviderrecord component
-
transactionManager
Returns the value of thetransactionManagerrecord component.- Returns:
- the value of the
transactionManagerrecord component
-
litebridgeConfig
Returns the value of thelitebridgeConfigrecord component.- Returns:
- the value of the
litebridgeConfigrecord component
-
lookup
Returns the value of thelookuprecord component.- Returns:
- the value of the
lookuprecord component
-