Module litebridge.orm
Package org.litebridge.orm.persistence
Class AbstractConditionalStatementBuilder
java.lang.Object
org.litebridge.orm.persistence.AbstractStatementBuilder
org.litebridge.orm.persistence.AbstractConditionalStatementBuilder
- All Implemented Interfaces:
StatementBuilder
- Direct Known Subclasses:
DeleteBuilder
public abstract sealed class AbstractConditionalStatementBuilder
extends AbstractStatementBuilder
permits DeleteBuilder (not exhaustive)
Abstract base class for building SQL statements.
-
Field Summary
Fields inherited from class org.litebridge.orm.persistence.AbstractStatementBuilder
contextDtoClass, dto, litebridgeContext, node, nodeHash, ormTable -
Constructor Summary
ConstructorsConstructorDescriptionAbstractConditionalStatementBuilder(Object dto, OrmTable ormTable, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Creates a newAbstractConditionalStatementBuilderinstance. -
Method Summary
Modifier and TypeMethodDescriptionAdds a WHERE condition to the statement.Methods inherited from class org.litebridge.orm.persistence.AbstractStatementBuilder
build, createUpdateMetaData, dto, node, nodeHash, statementChainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.orm.persistence.StatementBuilder
combinable, combineWith, resultType, setField
-
Constructor Details
-
AbstractConditionalStatementBuilder
public AbstractConditionalStatementBuilder(Object dto, OrmTable ormTable, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Creates a newAbstractConditionalStatementBuilderinstance.- Parameters:
dto- The DTO associated with the statement.ormTable- The ORM table for the target DTO.contextDtoClass- The parent/context DTO class.litebridgeContext- Litebridge context.
-
-
Method Details
-
where
Adds a WHERE condition to the statement.- Parameters:
conditionNode- the condition node to add- Returns:
- this builder instance
-