Package com.sap.cds.services.utils.model
Enum Class CdsAnnotations
- All Implemented Interfaces:
Serializable,Comparable<CdsAnnotations>,Constable
Supported CDS annotations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescription<T> List<T>getListOrDefault(com.sap.cds.reflect.CdsAnnotatable cdsModelElement) <T> List<T>getListOrValue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement, T value) <T> TgetOrDefault(com.sap.cds.reflect.CdsAnnotatable cdsModelElement) <T> TgetOrValue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement, T value) booleanisTrue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement) static CdsAnnotationsReturns the enum constant of this class with the specified name.static CdsAnnotations[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESTRICT
-
REQUIRES
-
READONLY
-
INSERTONLY
-
INSERTABLE
-
UPDATABLE
-
DELETABLE
-
READABLE
-
UPDATABLE_DELTA
-
AUTOEXPOSED
-
AUTOEXPOSE
-
ON_INSERT
-
ON_UPDATE
-
MANDATORY
-
FIELD_CONTROL_READONLY
-
COMMON_FIELDCONTROL
-
ASSERT_RANGE
-
ASSERT_FORMAT
-
ASSERT_NOTNULL
-
ASSERT_TARGET
-
QUERY_LIMIT_DEFAULT
-
QUERY_LIMIT_MAX
-
DEFAULT_ORDER
-
CORE_COMPUTED
-
CORE_IMMUTABLE
-
CORE_MEDIA_TYPE
-
CORE_CONTENT_DISPOSITION_FILENAME
-
SINGLETON
-
DRAFT_ANNOTATION
-
DRAFT_PREPARE_ANNOTATION
-
DRAFT_PERSISTENCE_ANNOTATION
-
ODATA_FOREIGN_KEY_FOR
-
ODATA_APPLY_TRANSFORMATIONS
-
PATH
-
PROTOCOLS
-
ENDPOINTS
-
IGNORE
-
SERVE_IGNORE
-
TOPIC
-
KAFKA_TOPIC
-
ETAG
-
AGGREGATION_DEFAULT
-
SEMANTICS_CURRENCY_CODE
-
SEMANTICS_UNIT_OF_MEASURE
-
PERSONALDATA_ENTITYSEMANTICS
-
PERSONALDATA_DATASUBJECTROLE
-
PERSONALDATA_FIELDSEMANTICS
-
PERSONALDATA_POTENTIALLYPERSONAL
-
PERSONALDATA_POTENTIALLYSENSITIVE
-
CASCADE_DELETE
-
INTERNAL_OPERATION_TYPE
-
COMMON_LABEL
-
TITLE
-
CHANGELOG
-
CHANGELOG_INTERNAL_STORAGE
-
CHANGELOG_INTERNAL_SEMANTICS
-
CHANGELOG_INTERNAL_ENRICH
-
COMMON_TEXT
-
HTTP_CACHE_CONTROL_MAX_AGE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getOrDefault
public <T> T getOrDefault(com.sap.cds.reflect.CdsAnnotatable cdsModelElement) -
isTrue
public boolean isTrue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement) -
getListOrDefault
-
getListOrValue
-
getOrValue
public <T> T getOrValue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement, T value)
-