mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
CE-882 Add withPrimaryKey method
This commit is contained in:
@ -23,6 +23,7 @@ package com.kingsrook.qqq.backend.core.model.actions.tables.delete;
|
|||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.kingsrook.qqq.backend.core.actions.QBackendTransaction;
|
import com.kingsrook.qqq.backend.core.actions.QBackendTransaction;
|
||||||
import com.kingsrook.qqq.backend.core.model.actions.AbstractTableActionInput;
|
import com.kingsrook.qqq.backend.core.model.actions.AbstractTableActionInput;
|
||||||
@ -139,6 +140,24 @@ public class DeleteInput extends AbstractTableActionInput
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Fluently add 1 primary key to the delete input
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public DeleteInput withPrimaryKey(Serializable primaryKey)
|
||||||
|
{
|
||||||
|
if(primaryKeys == null)
|
||||||
|
{
|
||||||
|
primaryKeys = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
primaryKeys.add(primaryKey);
|
||||||
|
|
||||||
|
return (this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Setter for ids
|
** Setter for ids
|
||||||
**
|
**
|
||||||
|
Reference in New Issue
Block a user