1 29 30 package com.caucho.amber.manager; 31 32 import com.caucho.util.L10N; 33 34 import javax.persistence.EntityManager; 35 import java.util.logging.Logger ; 36 37 40 public class AmberEntityManager extends AmberConnection 41 implements EntityManager { 42 private static final L10N L = new L10N(AmberEntityManager.class); 43 private static final Logger log 44 = Logger.getLogger(AmberEntityManager.class.getName()); 45 46 49 AmberEntityManager(AmberPersistenceUnit persistenceUnit) 50 { 51 super(persistenceUnit); 52 53 register(); } 55 56 public String toString() 57 { 58 AmberPersistenceUnit persistenceUnit = getPersistenceUnit(); 59 60 if (persistenceUnit != null) 61 return "AmberEntityManager[" + persistenceUnit.getName() + "]"; 62 else 63 return "AmberEntityManager[closed]"; 64 } 65 } 66 | Popular Tags |