java.lang.Object
org.litebridgedb.orm.config.LitebridgeConfig
Runtime configuration class for managing the behaviour of Litebridge, particularly
the handling strategy for related DTO (Data Transfer Object) fields
in queries.
This class provides the ability to specify or modify the strategy used when related DTOs are not explicitly included in JOIN clauses of a query.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newLitebridgeConfigwith default settings.LitebridgeConfig(LitebridgeConfig other) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current strategy for handling related DTO (Data Transfer Object) fields when they are not explicitly included in the JOIN clauses of a query.voidsetRelatedDtoStrategy(RelatedDtoStrategy relatedDtoStrategy) Sets the current strategy for handling related DTO (Data Transfer Object) fields when they are not explicitly included in the JOIN clauses of a query.
-
Constructor Details
-
LitebridgeConfig
public LitebridgeConfig()Constructs a newLitebridgeConfigwith default settings.Defaults:
relatedDtoStrategyset toRelatedDtoStrategy.NULL_IF_NO_JOIN
-
LitebridgeConfig
Copy constructor.- Parameters:
other- config to copy
-
-
Method Details
-
getRelatedDtoStrategy
Retrieves the current strategy for handling related DTO (Data Transfer Object) fields when they are not explicitly included in the JOIN clauses of a query.- Returns:
- the configured
RelatedDtoStrategy, which determines how related DTOs are processed in the absence of corresponding JOIN clauses.
-
setRelatedDtoStrategy
Sets the current strategy for handling related DTO (Data Transfer Object) fields when they are not explicitly included in the JOIN clauses of a query.- Parameters:
relatedDtoStrategy- the new strategy to use for handling related DTOs
-