Module litebridge.db.spi.impl
Package org.litebridge.db.spi.impl
Record Class DatabaseProviderContext
java.lang.Object
java.lang.Record
org.litebridge.db.spi.impl.DatabaseProviderContext
public record DatabaseProviderContext(SqlGenerator sqlGenerator, LabelGenerator labelGenerator, MetaDataEngine metaDataEngine, ExecutionEngine executionEngine, SqlFunctionRegistry sqlFunctionRegistry, Function<String,SequenceColumnValueGenerator> sequenceColumnValueGeneratorCreator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseProviderContext(SqlGenerator sqlGenerator, LabelGenerator labelGenerator, MetaDataEngine metaDataEngine, ExecutionEngine executionEngine, SqlFunctionRegistry sqlFunctionRegistry, Function<String, SequenceColumnValueGenerator> sequenceColumnValueGeneratorCreator) Creates an instance of aDatabaseProviderContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionEnginerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelabelGeneratorrecord component.Returns the value of themetaDataEnginerecord component.Returns the value of thesequenceColumnValueGeneratorCreatorrecord component.Returns the value of thesqlFunctionRegistryrecord component.Returns the value of thesqlGeneratorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabaseProviderContext
public DatabaseProviderContext(SqlGenerator sqlGenerator, LabelGenerator labelGenerator, MetaDataEngine metaDataEngine, ExecutionEngine executionEngine, SqlFunctionRegistry sqlFunctionRegistry, Function<String, SequenceColumnValueGenerator> sequenceColumnValueGeneratorCreator) Creates an instance of aDatabaseProviderContextrecord class.- Parameters:
sqlGenerator- the value for thesqlGeneratorrecord componentlabelGenerator- the value for thelabelGeneratorrecord componentmetaDataEngine- the value for themetaDataEnginerecord componentexecutionEngine- the value for theexecutionEnginerecord componentsqlFunctionRegistry- the value for thesqlFunctionRegistryrecord componentsequenceColumnValueGeneratorCreator- the value for thesequenceColumnValueGeneratorCreatorrecord 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). -
sqlGenerator
Returns the value of thesqlGeneratorrecord component.- Returns:
- the value of the
sqlGeneratorrecord component
-
labelGenerator
Returns the value of thelabelGeneratorrecord component.- Returns:
- the value of the
labelGeneratorrecord component
-
metaDataEngine
Returns the value of themetaDataEnginerecord component.- Returns:
- the value of the
metaDataEnginerecord component
-
executionEngine
Returns the value of theexecutionEnginerecord component.- Returns:
- the value of the
executionEnginerecord component
-
sqlFunctionRegistry
Returns the value of thesqlFunctionRegistryrecord component.- Returns:
- the value of the
sqlFunctionRegistryrecord component
-
sequenceColumnValueGeneratorCreator
Returns the value of thesequenceColumnValueGeneratorCreatorrecord component.- Returns:
- the value of the
sequenceColumnValueGeneratorCreatorrecord component
-