java.lang.Object
org.litebridge.orm.api.merge.MergeInsertStep
org.litebridge.orm.api.merge.DtoMergeInsertStep
DTO-mode merge step for setting up
WHEN NOT MATCHED INSERT clause.-
Constructor Summary
ConstructorsConstructorDescriptionDtoMergeInsertStep(String table, LitebridgeContext litebridgeContext) Creates a newDtoMergeInsertStepinstance. -
Method Summary
Modifier and TypeMethodDescriptionCreates aWHEN NOT MATCHED INSERTclause inserting values into the specified DTO/entity fields.Creates aWHEN NOT MATCHED INSERTclause inserting the specified DTO/entity.Creates aWHEN NOT MATCHED INSERTclause inserting values into the specified DTO/entity fields.Methods inherited from class org.litebridge.orm.api.merge.MergeInsertStep
insert
-
Constructor Details
-
DtoMergeInsertStep
Creates a newDtoMergeInsertStepinstance.- Parameters:
table- name of the table to insert data intolitebridgeContext- the Litebridge context
-
-
Method Details
-
insert
Creates aWHEN NOT MATCHED INSERTclause inserting the specified DTO/entity.- Parameters:
dto- the DTO/entity to insert- Returns:
- the insert clause terminal
-
insert
Creates aWHEN NOT MATCHED INSERTclause inserting values into the specified DTO/entity fields.- Overrides:
insertin classMergeInsertStep- Parameters:
fields- the DTO/entity fields to insert- Returns:
- step to specify the values to insert
-
insert
Creates aWHEN NOT MATCHED INSERTclause inserting values into the specified DTO/entity fields.- Overrides:
insertin classMergeInsertStep- Parameters:
fields- the DTO/entity fields to insert- Returns:
- step to specify the values to insert
-