java.lang.Object
org.litebridge.orm.persistence.StatementChain
Manages dependencies and dependents between piped database statements for related entities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependant(Object dto, PipedStatement dependant) Adds a dependent statement for the specified DTO instance.voidaddDependency(Object dto, PipedStatement dependency) Adds a statement dependency for the specified DTO instance.Returns the map of dependents keyed by DTO instance.Returns the map of dependencies keyed by DTO instance.@Nullable PipedStatementgetDependency(Object dto) Retrieves the piped statement dependency for the specified DTO, ornullif none.
-
Constructor Details
-
StatementChain
public StatementChain()
-
-
Method Details
-
getDependencies
Returns the map of dependencies keyed by DTO instance.- Returns:
- the map of dependencies
-
getDependants
Returns the map of dependents keyed by DTO instance.- Returns:
- the map of dependents
-
getDependency
Retrieves the piped statement dependency for the specified DTO, ornullif none.- Parameters:
dto- the DTO instance- Returns:
- the corresponding
PipedStatement, ornullif not found
-
addDependency
Adds a statement dependency for the specified DTO instance.- Parameters:
dto- the DTO instancedependency- the piped statement dependency
-
addDependant
Adds a dependent statement for the specified DTO instance.- Parameters:
dto- the DTO instancedependant- the dependent piped statement
-