Class ExtentCollection

    • Field Detail

      • persistenceCapableClass

        protected Class persistenceCapableClass
        This extent collection reperesents the extent of persistenceCapableClass.
    • Constructor Detail

      • ExtentCollection

        public ExtentCollection​(PersistenceManager pm,
                                Class persistenceCapableClass,
                                boolean subclasses)
        Parameters:
        persistenceCapableClass - Class of instances
        subclasses - whether to include instances of subclasses
    • Method Detail

      • getPersistenceCapableClass

        public Class getPersistenceCapableClass()
      • size

        public int size()
        Specified by:
        size in interface Collection
      • add

        public boolean add​(Object o)
        Extent collection is unmodifiable => throw UnsupportedOperationException
        Specified by:
        add in interface Collection
      • remove

        public boolean remove​(Object o)
        Extent collection is unmodifiable => throw UnsupportedOperationException
        Specified by:
        remove in interface Collection
      • addAll

        public boolean addAll​(Collection c)
        Extent collection is unmodifiable => throw UnsupportedOperationException
        Specified by:
        addAll in interface Collection
      • removeAll

        public boolean removeAll​(Collection c)
        Extent collection is unmodifiable => throw UnsupportedOperationException
        Specified by:
        removeAll in interface Collection
      • retainAll

        public boolean retainAll​(Collection c)
        Extent collection is unmodifiable => throw UnsupportedOperationException
        Specified by:
        retainAll in interface Collection
      • clear

        public void clear()
        Extent collection is unmodifiable => throw UnsupportedOperationException
        Specified by:
        clear in interface Collection
      • equals

        public boolean equals​(Object o)
        Two extent collections are equal, iff the names of their persistence capable class are equal
        Specified by:
        equals in interface Collection
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        The hashCode is mapped to the hashCode of the name of the extent collection's persistence capable class
        Specified by:
        hashCode in interface Collection
        Overrides:
        hashCode in class Object