Class LitebridgeContext

java.lang.Object
org.litebridge.orm.engine.LitebridgeContext

public final class LitebridgeContext extends Object
A context object that provides access to core Litebridge components and configuration.

This record provides the core configuration and utility components required for query generation, function resolution, and execution.

  • Constructor Details

    • LitebridgeContext

      public LitebridgeContext(LitebridgeConfig config, FromClauseEngine fromClauseEngine, SqlFunctionRegistry sqlFunctionRegistry, QueryPlanCache queryPlanCache, AliasGenerator aliasGenerator, TableMetaDataCache tableMetaDataCache, TypeConverter typeConverter, SelectExpressionMapper selectExpressionMapper)
      Create a new Litebridge context with the specified components.
      Parameters:
      config - Configuration for managing runtime behaviour
      fromClauseEngine - The engine responsible for managing table registries alias generation, and facilitating query specifications.
      sqlFunctionRegistry - A registry for resolving SQL functions used in expressions.
      queryPlanCache - A cache for storing execution plans based on query structure.
      aliasGenerator - An alias generator for creating unique table and column aliases.
      typeConverter - A converter for converting between Java types and database types.
      selectExpressionMapper - A mapper for resolving query expressions.
  • Method Details