1 28 29 package com.caucho.amber.entity; 30 31 import com.caucho.amber.manager.AmberConnection; 32 import com.caucho.util.L10N; 33 import com.caucho.util.Log; 34 35 import java.sql.SQLException ; 36 import java.util.Map ; 37 import java.util.logging.Logger ; 38 39 42 public class EntityFactory { 43 private static final L10N L = new L10N(EntityFactory.class); 44 private static final Logger log = Log.open(EntityFactory.class); 45 46 49 public Object getEntity(AmberConnection aConn, 50 EntityItem item) 51 { 52 return getEntity(aConn, item, null); 53 } 54 55 58 public Object getEntity(AmberConnection aConn, 59 EntityItem item, 60 Map preloadedProperties) 61 { 62 return aConn.getEntity(item, preloadedProperties); 63 } 64 65 68 public void delete(AmberConnection aConn, Object proxy) 69 throws SQLException 70 { 71 aConn.delete((Entity) proxy); 72 } 73 } 74 | Popular Tags |