Class LitebridgeConfig

java.lang.Object
org.litebridgedb.orm.config.LitebridgeConfig

public class LitebridgeConfig extends Object
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 Details

    • LitebridgeConfig

      public LitebridgeConfig()
      Constructs a new LitebridgeConfig with default settings.

      Defaults:

    • LitebridgeConfig

      public LitebridgeConfig(LitebridgeConfig other)
      Copy constructor.
      Parameters:
      other - config to copy
  • Method Details

    • getRelatedDtoStrategy

      public RelatedDtoStrategy 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

      public void setRelatedDtoStrategy(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.
      Parameters:
      relatedDtoStrategy - the new strategy to use for handling related DTOs