public class DraftUtils extends Object
| Constructor and Description |
|---|
DraftUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
gcDraftsOfAllServices(CdsRuntime runtime) |
static void |
gcDraftsOfAllServicesAndTenants(CdsRuntime runtime) |
static boolean |
isDraftEnabled(com.sap.cds.reflect.CdsEntity entity)
Checks if the entity is draft enabled.
|
static boolean |
isDraftEnabled(String serviceName,
com.sap.cds.reflect.CdsModel model)
Checks if the service has a draft enabled entity.
|
static boolean |
isDraftEnabledNoChild(com.sap.cds.reflect.CdsEntity entity) |
public static boolean isDraftEnabled(String serviceName, com.sap.cds.reflect.CdsModel model)
serviceName - the service namemodel - the modeltrue if the model has a draft enabled entitypublic static boolean isDraftEnabled(com.sap.cds.reflect.CdsEntity entity)
entity - the entitytrue if the entity is draft enabledpublic static boolean isDraftEnabledNoChild(com.sap.cds.reflect.CdsEntity entity)
public static void gcDraftsOfAllServices(CdsRuntime runtime)
public static void gcDraftsOfAllServicesAndTenants(CdsRuntime runtime)
Copyright © 2021. All rights reserved.