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 Details

    • DatabaseProviderContext

      public DatabaseProviderContext(SqlGenerator sqlGenerator, LabelGenerator labelGenerator, MetaDataEngine metaDataEngine, ExecutionEngine executionEngine, SqlFunctionRegistry sqlFunctionRegistry, Function<String,SequenceColumnValueGenerator> sequenceColumnValueGeneratorCreator)
      Creates an instance of a DatabaseProviderContext record class.
      Parameters:
      sqlGenerator - the value for the sqlGenerator record component
      labelGenerator - the value for the labelGenerator record component
      metaDataEngine - the value for the metaDataEngine record component
      executionEngine - the value for the executionEngine record component
      sqlFunctionRegistry - the value for the sqlFunctionRegistry record component
      sequenceColumnValueGeneratorCreator - the value for the sequenceColumnValueGeneratorCreator record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sqlGenerator

      public SqlGenerator sqlGenerator()
      Returns the value of the sqlGenerator record component.
      Returns:
      the value of the sqlGenerator record component
    • labelGenerator

      public LabelGenerator labelGenerator()
      Returns the value of the labelGenerator record component.
      Returns:
      the value of the labelGenerator record component
    • metaDataEngine

      public MetaDataEngine metaDataEngine()
      Returns the value of the metaDataEngine record component.
      Returns:
      the value of the metaDataEngine record component
    • executionEngine

      public ExecutionEngine executionEngine()
      Returns the value of the executionEngine record component.
      Returns:
      the value of the executionEngine record component
    • sqlFunctionRegistry

      public SqlFunctionRegistry sqlFunctionRegistry()
      Returns the value of the sqlFunctionRegistry record component.
      Returns:
      the value of the sqlFunctionRegistry record component
    • sequenceColumnValueGeneratorCreator

      public Function<String,SequenceColumnValueGenerator> sequenceColumnValueGeneratorCreator()
      Returns the value of the sequenceColumnValueGeneratorCreator record component.
      Returns:
      the value of the sequenceColumnValueGeneratorCreator record component