1 package org.hibernate.proxy; 3 4 import java.io.Serializable ; 5 6 import org.hibernate.HibernateException; 7 import org.hibernate.engine.SessionImplementor; 8 9 13 public interface LazyInitializer { 14 15 19 public abstract void initialize() throws HibernateException; 20 21 24 public abstract Serializable getIdentifier(); 25 26 29 public abstract void setIdentifier(Serializable id); 30 31 34 public abstract String getEntityName(); 35 36 40 public abstract Class getPersistentClass(); 41 42 45 public abstract boolean isUninitialized(); 46 47 50 public abstract void setImplementation(Object target); 51 52 55 public abstract SessionImplementor getSession(); 56 57 60 public abstract void setSession(SessionImplementor s) throws HibernateException; 61 62 65 public abstract Object getImplementation(); 66 67 70 public abstract Object getImplementation(SessionImplementor s) 71 throws HibernateException; 72 73 public void setUnwrap(boolean unwrap); 74 public boolean isUnwrap(); 75 } | Popular Tags |