Class Details

    • Constructor Detail

      • Details

        public Details()
        default constructor. Leaves values null to save resources.
      • Details

        public Details​(java.lang.Object[] contexts)
      • Details

        public Details​(Details copy)
        copy-constructor
    • Method Detail

      • contextAt

        public java.lang.Object contextAt​(int i)
      • setContexts

        public void setContexts​(java.lang.Object[] contexts)
      • shallowCopy

        public Details shallowCopy()
      • copy

        public void copy​(Details copy)
        Method which takes all field values from the given Details instance and copies them into the current instance.
        Parameters:
        copy -
      • copyWhereUnset

        public void copyWhereUnset​(Details mask,
                                   Details copyFrom)
        For any field of this which is null (and is NOT null on mask -- assuming mask is not null), copy the same value from copyFrom into this object.
        Parameters:
        mask -
        copyFrom -
      • shallowCopy

        public void shallowCopy​(Details copy)
        Method which takes all the fields of the given Details instance and sets unloaded proxies of them into the current instance.
      • addFiltered

        public void addFiltered​(java.lang.String collectionName)
        consider the collection named by collectionName to be a "filtered" representation of the DB. This collection should not be saved, at most compared with the current DB to find added entities.
      • addFiltered

        public void addFiltered​(java.util.Collection<java.lang.String> collection)
        consider all the collections named by the elements of collection to be a "filtered" representation of the DB. This collection should not be saved, at most compared with the current DB to find added entities.
      • isFiltered

        public boolean isFiltered​(java.lang.String collectionName)
        Was this collection filtered during creation? If so, it should not be saved to the DB.
      • clearFiltered

        public void clearFiltered()
        all currently marked collections are released. The space taken up by the collection is also released.
      • filteredSize

        public int filteredSize()
        the count of collections which were filtered.
        Returns:
        number of String keys in the filtered set.
      • filteredSet

        public java.util.Set<java.lang.String> filteredSet()
        copy of the current collection of filtered names. Changes to this collection are not propagated.
        Returns:
        filtered set copy.
      • getContext

        public IObject getContext()
        reference to the entity which this Details is contained in. This value is not maintained by the backend but is an internal mechanism.
      • setContext

        public void setContext​(IObject myContext)
        set entity to which this Details belongs. This may cause erratic behavior if called improperly.
        Parameters:
        myContext - entity which this Details belongs to
      • newInstance

        public abstract Details newInstance()
      • toString

        public java.lang.String toString()
        simple view of the Details. Accesses only the ids of the contained entities
        Overrides:
        toString in class java.lang.Object
      • toString

        public void toString​(java.lang.StringBuilder sb)
      • getPermissions

        public Permissions getPermissions()
        Permissions is a component embedded into the Details component. Similar rules apply as to Details, but it is not suggested that users attempt to directly query Permissions object as its internal state is not public.
      • setPermissions

        public void setPermissions​(Permissions perms)
      • setExternalInfo

        public void setExternalInfo​(ExternalInfo info)
      • getCreationEvent

        public Event getCreationEvent()
      • setCreationEvent

        public void setCreationEvent​(Event e)
      • getUpdateEvent

        public Event getUpdateEvent()
      • setUpdateEvent

        public void setUpdateEvent​(Event e)
      • retrieve

        public java.lang.Object retrieve​(java.lang.String field)
      • putAt

        public void putAt​(java.lang.String field,
                          java.lang.Object value)