java.lang.Object
org.litebridge.orm.api.delete.impl.AbstractDeletor<DtoDeleteSpec>
org.litebridge.orm.api.dto.delete.DtoDeletor<DTO>
- Type Parameters:
DTO- the type of the DTO
- All Implemented Interfaces:
DeleteQuery,DeleteTerminal,DtoDeleteWhereClause<DTO>
public final class DtoDeletor<DTO>
extends org.litebridge.orm.api.delete.impl.AbstractDeletor<DtoDeleteSpec>
implements DtoDeleteWhereClause<DTO>
Executor for DTO delete operations.
-
Field Summary
Fields inherited from class org.litebridge.orm.api.delete.impl.AbstractDeletor
databaseProvider, deleteSpec -
Constructor Summary
ConstructorsConstructorDescriptionDtoDeletor(Class<DTO> dtoClass, OrmTable dtoTable, TransactionalDatabaseProvider databaseProvider, SelectExpressionMapper selectExpressionMapper, LitebridgeContext litebridgeContext) Creates a new DtoDeletor. -
Method Summary
Modifier and TypeMethodDescriptionCreates a condition based on a field name.where(ExpressionSpec expression) Creates a condition based on an expression.Methods inherited from class org.litebridge.orm.api.delete.impl.AbstractDeletor
deleteSpec, execute, execute
-
Constructor Details
-
DtoDeletor
public DtoDeletor(Class<DTO> dtoClass, OrmTable dtoTable, TransactionalDatabaseProvider databaseProvider, SelectExpressionMapper selectExpressionMapper, LitebridgeContext litebridgeContext) Creates a new DtoDeletor.- Parameters:
dtoClass- the DTO classdtoTable- the DTO tabledatabaseProvider- the database providerselectExpressionMapper- the select expression mapperlitebridgeContext- the Litebridge context
-
-
Method Details
-
where
Description copied from interface:DtoDeleteWhereClauseCreates a condition based on a field name.- Specified by:
wherein interfaceDtoDeleteWhereClause<DTO>- Parameters:
field- the field name- Returns:
- a condition clause
-
where
Description copied from interface:DtoDeleteWhereClauseCreates a condition based on an expression.- Specified by:
wherein interfaceDtoDeleteWhereClause<DTO>- Parameters:
expression- the expression- Returns:
- a condition clause
-