KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: MapLazyInitializer.java,v 1.2 2005/02/12 07:19:45 steveebersole Exp $
2
package org.hibernate.proxy;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.Map JavaDoc;
6
7 import org.hibernate.engine.SessionImplementor;
8
9 /**
10  * Lazy initializer for "dynamic-map" entity representations.
11  *
12  * @author Gavin King
13  */

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