Class NameOnlyCdsEntity

java.lang.Object
com.sap.cds.services.impl.utils.NameOnlyCdsEntity
All Implemented Interfaces:
com.sap.cds.reflect.CdsAnnotatable, com.sap.cds.reflect.CdsDefinition, com.sap.cds.reflect.CdsEntity, com.sap.cds.reflect.CdsNamed, com.sap.cds.reflect.CdsStructuredType, com.sap.cds.reflect.CdsType

public class NameOnlyCdsEntity extends Object implements com.sap.cds.reflect.CdsEntity
  • Constructor Details

    • NameOnlyCdsEntity

      public NameOnlyCdsEntity(String entityName)
  • Method Details

    • getElement

      public com.sap.cds.reflect.CdsElement getElement(String name)
      Specified by:
      getElement in interface com.sap.cds.reflect.CdsStructuredType
    • findElement

      public Optional<com.sap.cds.reflect.CdsElement> findElement(String name)
      Specified by:
      findElement in interface com.sap.cds.reflect.CdsStructuredType
    • getAssociation

      public com.sap.cds.reflect.CdsElement getAssociation(String name)
      Specified by:
      getAssociation in interface com.sap.cds.reflect.CdsStructuredType
    • findAssociation

      public Optional<com.sap.cds.reflect.CdsElement> findAssociation(String name)
      Specified by:
      findAssociation in interface com.sap.cds.reflect.CdsStructuredType
    • elements

      public Stream<com.sap.cds.reflect.CdsElement> elements()
      Specified by:
      elements in interface com.sap.cds.reflect.CdsStructuredType
    • getQualifiedName

      public String getQualifiedName()
      Specified by:
      getQualifiedName in interface com.sap.cds.reflect.CdsDefinition
    • annotations

      public Stream<com.sap.cds.reflect.CdsAnnotation<?>> annotations()
      Specified by:
      annotations in interface com.sap.cds.reflect.CdsAnnotatable
    • isAbstract

      public boolean isAbstract()
      Specified by:
      isAbstract in interface com.sap.cds.reflect.CdsEntity
    • isView

      public boolean isView()
      Specified by:
      isView in interface com.sap.cds.reflect.CdsEntity
    • isProjection

      public boolean isProjection()
      Specified by:
      isProjection in interface com.sap.cds.reflect.CdsEntity
    • query

      public Optional<com.sap.cds.ql.cqn.CqnSelect> query()
      Specified by:
      query in interface com.sap.cds.reflect.CdsEntity
    • params

      public Stream<com.sap.cds.reflect.CdsParameter> params()
      Specified by:
      params in interface com.sap.cds.reflect.CdsEntity
    • actions

      public Stream<com.sap.cds.reflect.CdsAction> actions()
      Specified by:
      actions in interface com.sap.cds.reflect.CdsEntity
    • getAction

      public com.sap.cds.reflect.CdsAction getAction(String name)
      Specified by:
      getAction in interface com.sap.cds.reflect.CdsEntity
    • findAction

      public Optional<com.sap.cds.reflect.CdsAction> findAction(String name)
      Specified by:
      findAction in interface com.sap.cds.reflect.CdsEntity
    • functions

      public Stream<com.sap.cds.reflect.CdsFunction> functions()
      Specified by:
      functions in interface com.sap.cds.reflect.CdsEntity
    • getFunction

      public com.sap.cds.reflect.CdsFunction getFunction(String name)
      Specified by:
      getFunction in interface com.sap.cds.reflect.CdsEntity
    • findFunction

      public Optional<com.sap.cds.reflect.CdsFunction> findFunction(String name)
      Specified by:
      findFunction in interface com.sap.cds.reflect.CdsEntity
    • findAnnotation

      public <T> Optional<com.sap.cds.reflect.CdsAnnotation<T>> findAnnotation(String name)
      Specified by:
      findAnnotation in interface com.sap.cds.reflect.CdsAnnotatable
    • getName

      public String getName()
      Specified by:
      getName in interface com.sap.cds.reflect.CdsDefinition
    • getQualifier

      public String getQualifier()
      Specified by:
      getQualifier in interface com.sap.cds.reflect.CdsDefinition
    • getTargetOf

      public <S extends com.sap.cds.reflect.CdsStructuredType> S getTargetOf(String path)
      Specified by:
      getTargetOf in interface com.sap.cds.reflect.CdsStructuredType