Class ListType

    • Constructor Detail

      • ListType

        public ListType​(String role,
                        String propertyRef)
    • Method Detail

      • getReturnedClass

        public Class<?> getReturnedClass()
        Description copied from interface: Type
        The class handled by this type.
        The Java class handled by this type.
      • wrap

        public PersistentCollection<?> wrap​(SharedSessionContractImplementor session,
                                            Object collection)
        Description copied from class: CollectionType
        Wrap the naked collection instance in a wrapper, or instantiate a holder. Callers MUST add the holder to the persistence context!
        Specified by:
        wrap in class CollectionType
        session - The session from which the request is originating.
        collection - The bare collection to be wrapped.
        The wrapped collection.
      • instantiate

        public Object instantiate​(int anticipatedSize)
        Description copied from class: CollectionType
        Instantiate an empty instance of the "underlying" collection (not a wrapper), but with the given anticipated size (i.e. accounting for initial capacity and perhaps load factor).
        Specified by:
        instantiate in class CollectionType
        anticipatedSize - The anticipated size of the instantiated collection after we are done populating it.
        A newly instantiated collection to be wrapped.