1 29 30 package com.caucho.amber.type; 31 32 import com.caucho.amber.entity.Entity; 33 import com.caucho.amber.manager.AmberPersistenceUnit; 34 import com.caucho.amber.table.Table; 35 import com.caucho.util.L10N; 36 37 import java.util.logging.Logger ; 38 39 42 public class EntityType extends RelatedType { 43 private static final Logger log = Logger.getLogger(EntityType.class.getName()); 44 private static final L10N L = new L10N(EntityType.class); 45 46 public EntityType(AmberPersistenceUnit amberPersistenceUnit) 47 { 48 super(amberPersistenceUnit); 49 } 50 51 54 public Class getInstanceClass() 55 { 56 return getInstanceClass(Entity.class); 57 } 58 59 62 public void setTable(Table table) 63 { 64 super.setTable(table); 65 66 table.setType(this); 67 } 68 69 72 public String toString() 73 { 74 return "EntityType[" + _beanClass.getName() + "]"; 75 } 76 } 77 | Popular Tags |