java.lang.Object
org.litebridge.orm.engine.LitebridgeContext
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 Summary
ConstructorsConstructorDescriptionLitebridgeContext(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. -
Method Summary
Modifier and TypeMethodDescriptionconfig()voidsetRelatedDtoStrategy(RelatedDtoStrategy relatedDtoStrategy)
-
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 behaviourfromClauseEngine- 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
-
config
-
fromClauseEngine
-
sqlFunctionRegistry
-
queryPlanCache
-
aliasGenerator
-
tableMetaDataCache
-
typeConverter
-
selectExpressionMapper
-
getRelatedDtoStrategy
-
setRelatedDtoStrategy
-
createQueryCompiler
-