Class StatementChain

java.lang.Object
org.litebridge.orm.persistence.StatementChain

public class StatementChain extends Object
Manages dependencies and dependents between piped database statements for related entities.
  • Constructor Details

    • StatementChain

      public StatementChain()
  • Method Details

    • getDependencies

      public LinkedHashMap<Object,PipedStatement> getDependencies()
      Returns the map of dependencies keyed by DTO instance.
      Returns:
      the map of dependencies
    • getDependants

      public LinkedHashMap<Object,PipedStatement> getDependants()
      Returns the map of dependents keyed by DTO instance.
      Returns:
      the map of dependents
    • getDependency

      public @Nullable PipedStatement getDependency(Object dto)
      Retrieves the piped statement dependency for the specified DTO, or null if none.
      Parameters:
      dto - the DTO instance
      Returns:
      the corresponding PipedStatement, or null if not found
    • addDependency

      public void addDependency(Object dto, PipedStatement dependency)
      Adds a statement dependency for the specified DTO instance.
      Parameters:
      dto - the DTO instance
      dependency - the piped statement dependency
    • addDependant

      public void addDependant(Object dto, PipedStatement dependant)
      Adds a dependent statement for the specified DTO instance.
      Parameters:
      dto - the DTO instance
      dependant - the dependent piped statement