KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > cfg > SecondPass


1 //$Id: SecondPass.java,v 1.5 2005/04/13 17:46:46 epbernard Exp $
2
package org.hibernate.cfg;
3
4 import org.apache.commons.logging.Log;
5 import org.apache.commons.logging.LogFactory;
6 import org.hibernate.mapping.Collection;
7 import org.hibernate.MappingException;
8
9 /**
10  * Abstract Second pass class for collection process. and render some properties
11  * public for a cross package usage
12  * FIXME: Have to extends HbmBinder.SecondPass to allow mapping.addSecondPass(SecondPass)
13  * This sucks a bit because we have linked Node and Mappings via SecondPass.
14  *
15  * @author Emmanuel Bernard
16  */

17 public abstract class SecondPass extends HbmBinder.SecondPass {
18     protected static Log log = LogFactory.getLog(SecondPass.class);
19
20     public SecondPass(
21         Mappings mappings,
22         Collection coll) {
23         super(null, mappings, coll);
24     }
25
26     public Collection getCollection() {
27         return collection;
28     }
29
30     public Mappings getMappings() {
31         return mappings;
32     }
33
34     //TODO move to Hibernate core
35
public abstract void secondPass(java.util.Map JavaDoc persistentClasses, java.util.Map JavaDoc inheritedMetas)
36                 throws MappingException;
37 }
38
Popular Tags