public interface DraftService extends CdsService
CdsService
that handles draft enabled entities.Modifier and Type | Field and Description |
---|---|
static String |
EVENT_DRAFT_ACTIVATE |
static String |
EVENT_DRAFT_EDIT |
static String |
EVENT_DRAFT_PREPARE |
EVENT_CREATE, EVENT_DELETE, EVENT_READ, EVENT_UPDATE, EVENT_UPSERT
Modifier and Type | Method and Description |
---|---|
com.sap.cds.Result |
activateDraft(com.sap.cds.ql.cqn.CqnSelect select)
Saves a draft.
|
com.sap.cds.Result |
editDraft(com.sap.cds.ql.cqn.CqnSelect select,
boolean preserveChanges)
Creates a new draft entity from an active entity.
|
com.sap.cds.Result |
prepareDraft(com.sap.cds.ql.cqn.CqnSelect select,
String sideEffectsQualifier)
Executes checks to validate the current draft entity.
|
static final String EVENT_DRAFT_EDIT
static final String EVENT_DRAFT_PREPARE
static final String EVENT_DRAFT_ACTIVATE
com.sap.cds.Result activateDraft(com.sap.cds.ql.cqn.CqnSelect select)
select
- the select statement specifying the entity to savecom.sap.cds.Result prepareDraft(com.sap.cds.ql.cqn.CqnSelect select, String sideEffectsQualifier)
select
- the statement specifying the draft to preparesideEffectsQualifier
- the side effects qualifiercom.sap.cds.Result editDraft(com.sap.cds.ql.cqn.CqnSelect select, boolean preserveChanges)
select
- the statement specifying the active entity to editpreserveChanges
- if true
changes will be preservedCopyright © 2019. All rights reserved.