KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > proxy > Dom4jLazyInitializer


1 // $Id: Dom4jLazyInitializer.java,v 1.2 2005/02/12 07:19:45 steveebersole Exp $
2
package org.hibernate.proxy;
3
4 import org.hibernate.engine.SessionImplementor;
5 import org.dom4j.Element;
6
7 import java.io.Serializable JavaDoc;
8
9 /**
10  * Lazy initializer for "dom4j" entity representations.
11  *
12  * @author Steve Ebersole
13  */

14 public class Dom4jLazyInitializer extends AbstractLazyInitializer implements Serializable JavaDoc {
15
16     Dom4jLazyInitializer(String JavaDoc entityName, Serializable JavaDoc id, SessionImplementor session) {
17         super(entityName, id, session);
18     }
19
20     public Element getElement() {
21         return (Element) getImplementation();
22     }
23
24     public Class JavaDoc getPersistentClass() {
25         throw new UnsupportedOperationException JavaDoc("dom4j entity representation");
26     }
27
28 }
29
Popular Tags