java.lang.Object
org.litebridge.orm.api.merge.MergeUpdateStep
org.litebridge.orm.api.merge.DtoMergeUpdateStep<DTO>
- Type Parameters:
DTO- the mapped DTO/entity type
DTO-mode step for specifying the action to take in a
WHEN MATCHED clause.-
Field Summary
Fields inherited from class org.litebridge.orm.api.merge.MergeUpdateStep
litebridgeContext, node -
Constructor Summary
ConstructorsConstructorDescriptionDtoMergeUpdateStep(Class<DTO> dtoClass, QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoMergeUpdateStepinstance. -
Method Summary
Modifier and TypeMethodDescriptiondelete()Specifies that the matched row should be deleted.delete(Function<DtoDeleteStart<DTO>, DeleteTerminal> delete) Specifies the delete action to take when rows match.update(Function<DtoUpdateStart<DTO>, UpdateQuery> update) Specifies the update action to take when rows match.
-
Constructor Details
-
DtoMergeUpdateStep
Creates a newDtoMergeUpdateStepinstance.- Parameters:
dtoClass- the mapped DTO/entity classnode- the current query nodelitebridgeContext- the Litebridge context
-
-
Method Details
-
update
Specifies the update action to take when rows match.- Parameters:
update- function specifying the update operation- Returns:
- the
WHEN MATCHEDclause terminal
-
delete
Specifies the delete action to take when rows match.- Parameters:
delete- function specifying the delete operation- Returns:
- the
WHEN MATCHEDclause terminal
-
delete
Specifies that the matched row should be deleted.- Specified by:
deletein classMergeUpdateStep- Returns:
- the
WHEN MATCHEDclause terminal
-