public Host getHostById(long id) {
   return (Host) _pm.get(Host.class, id);
 }
 public void setHostCapability(long hid, int engineNum, double capability) {
   Host host = (Host) _pm.get(Host.class, hid);
   host.setCapability(engineNum, capability);
   _pm.exec(host, HibernateEngine.DB_UPDATE);
 }
 public TestPlanEntity getTestPlanByID(long id) {
   return (TestPlanEntity) _pm.get(TestPlanEntity.class, id);
 }