Package org.hibernate
Class Hibernate.CollectionInterface<C>
- java.lang.Object
-
- org.hibernate.Hibernate.CollectionInterface<C>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CcreateDetachedInstance()Obtain a detached, uninitialized persistent collection of the type represented by this object.CcreateNewInstance()Instantiate an empty collection of the type represented by this object.
-
-
-
Method Detail
-
createDetachedInstance
public C createDetachedInstance()
Obtain a detached, uninitialized persistent collection of the type represented by this object. The returned wrapper object is not associated with any session, and cannot be initialized by callingHibernate.initialize(Object). It can be used to represent an uninitialized collection when working with a detached object graph.- Returns:
- an uninitialized persistent collection
-
createNewInstance
public C createNewInstance()
Instantiate an empty collection of the type represented by this object.- Returns:
- a newly-instantiated empty collection
-
-