Package com.sap.cds.services.impl.cds
Class ReadOnlyHandler
java.lang.Object
com.sap.cds.services.impl.cds.ReadOnlyHandler
- All Implemented Interfaces:
EventHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanReadOnlyFields(EventContext context) booleanisReadOnly(com.sap.cds.reflect.CdsElement element, String event, Map<String, Object> map) Returns true, if aCdsElementis read only
-
Constructor Details
-
ReadOnlyHandler
public ReadOnlyHandler()
-
-
Method Details
-
cleanReadOnlyFields
-
isReadOnly
public boolean isReadOnly(com.sap.cds.reflect.CdsElement element, String event, Map<String, Object> map) Returns true, if aCdsElementis read only- Parameters:
element- theCdsElementevent- the event currently being processedmap- the data map- Returns:
- true, if a
CdsElementis read only
-