EntityContainer

open class EntityContainer : ObjectBase

Represents an OData entity container.

  • Is this entity container a cache database?

    Declaration

    Swift

    final public var isCacheDatabase: Bool
  • The local name of this container within its owning DataSchema, e.g. “MyContainer”.

    Declaration

    Swift

    final public var localName: String
  • The name of this set qualified by its owning DataSchema name, e.g. “MySchema.MyContainer”.

    Declaration

    Swift

    final public var qualifiedName: String
  • Is this the default container within its defining schema?

    Declaration

    Swift

    final public var isDefault: Bool
  • Source line number for this schema element within its defining schema.

    Declaration

    Swift

    final public var sourceLine: Int
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Lookup an existing annotation by term name, or throw an exception if the annotation is not found.

    See also

    annotations and AnnotationMap.get, for looking up annotations that might not exist.

    Declaration

    Swift

    open func annotation(withName term: String) throws -> Annotation

    Parameters

    term

    The term name.

    Return Value

    The annotation.

  • Obsolete. Use annotations.

    Declaration

    Swift

    open var annotationList: AnnotationList { get }
  • Obsolete. Use annotations.

    Declaration

    Swift

    open var annotationMap: AnnotationMap { get }
  • Map of annotations for this model element. For annotations without qualifiers, the entry key is the annotation term name. For annotations with qualifiers, the entry key is the annotation term name, then “#”, then the annotation qualifier.

    Declaration

    Swift

    open var annotations: AnnotationMap { get }
  • The base container if this container extends another.

    Declaration

    Swift

    public final var baseContainer: EntityContainer { get set }
  • The data methods defined by this container.

    Declaration

    Swift

    @inline(__always)
    public final var dataMethods: DataMethodMap { get }
  • The entity sets defined by this container.

    Declaration

    Swift

    @inline(__always)
    public final var entitySets: EntitySetMap { get }
  • Synonym for localName.

    Declaration

    Swift

    open var name: String { get }
  • The singletons defined by this container.

    Declaration

    Swift

    @inline(__always)
    public final var singletons: EntitySetMap { get }
  • Set to true to enable change tracking for all entity sets in this container.

    Declaration

    Swift

    open var trackChanges: Bool { get set }
  • Set to true to enable download tracking for all entity sets in this container.

    Declaration

    Swift

    open var trackDownloads: Bool { get set }