1 package org.hibernate.tuple; 3 4 import java.io.Serializable ; 5 import java.util.Map ; 6 7 import org.hibernate.HibernateException; 8 import org.hibernate.engine.SessionImplementor; 9 10 19 public interface EntityTuplizer extends Tuplizer { 20 21 28 public Object instantiate(Serializable id) throws HibernateException; 29 30 38 public Serializable getIdentifier(Object entity) throws HibernateException; 39 40 49 public void setIdentifier(Object entity, Serializable id) throws HibernateException; 50 51 58 public void resetIdentifier(Object entity, Serializable currentId, Object currentVersion); 59 60 67 public Object getVersion(Object entity) throws HibernateException; 68 69 77 public void setPropertyValue(Object entity, int i, Object value) throws HibernateException; 78 79 87 public void setPropertyValue(Object entity, String propertyName, Object value) throws HibernateException; 88 89 98 public Object [] getPropertyValuesToInsert(Object entity, Map mergeMap, SessionImplementor session) 99 throws HibernateException; 100 101 109 public Object getPropertyValue(Object entity, String propertyName) throws HibernateException; 110 111 118 public void afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session); 119 120 125 public boolean hasProxy(); 126 127 136 public Object createProxy(Serializable id, SessionImplementor session) throws HibernateException; 137 138 144 public boolean isLifecycleImplementor(); 145 146 152 public boolean isValidatableImplementor(); 153 154 162 public Class getConcreteProxyClass(); 163 164 170 public boolean hasUninitializedLazyProperties(Object entity); 171 172 175 public boolean isInstrumented(); 176 } 177 | Popular Tags |