KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > event > InitializeCollectionEvent


1 //$Id: InitializeCollectionEvent.java,v 1.6 2005/05/27 03:53:58 oneovthafew Exp $
2
package org.hibernate.event;
3
4 import org.hibernate.collection.PersistentCollection;
5
6 /**
7  * An event that occurs when a collection wants to be
8  * initialized
9  *
10  * @author Gavin King
11  */

12 public class InitializeCollectionEvent extends AbstractEvent {
13     
14     private final PersistentCollection collection;
15
16     public InitializeCollectionEvent(PersistentCollection collection, EventSource source) {
17         super(source);
18         this.collection = collection;
19     }
20     
21     public PersistentCollection getCollection() {
22         return collection;
23     }
24 }
25
Popular Tags