1
//$Id: LazyPropertyInitializer.java 9210 2006-02-03 22:15:19Z steveebersole $
2
package org.hibernate.intercept;
4
import java.io.Serializable;
6
import org.hibernate.HibernateException;
7
import org.hibernate.engine.SessionImplementor;
10
* Contract for controlling how lazy properties get initialized.
14
public interface LazyPropertyInitializer {
17
* Marker value for uninitialized properties
19
public static final Serializable UNFETCHED_PROPERTY = new Serializable() {
20
public String toString() {
23
public Object readResolve() {
24
return UNFETCHED_PROPERTY;
29
* Initialize the property, and return its new value
31
public Object initializeLazyProperty(String fieldName, Object entity, SessionImplementor session)
32
throws HibernateException;