1 23 package javax.persistence; 24 25 46 public interface EntityManager { 47 48 63 public void persist(Object entity); 64 65 78 public <T> T merge(T entity); 79 80 91 public void remove(Object entity); 92 93 105 public <T> T find(Class <T> entityClass, Object primaryKey); 106 107 128 public <T> T getReference(Class <T> entityClass, Object primaryKey); 129 130 138 public void flush(); 139 140 146 public void setFlushMode(FlushModeType flushMode); 147 148 154 public FlushModeType getFlushMode(); 155 156 169 public void lock(Object entity, LockModeType lockMode); 170 171 185 public void refresh(Object entity); 186 187 194 public void clear(); 195 196 205 public boolean contains(Object entity); 206 207 215 public Query createQuery(String qlString); 216 217 226 public Query createNamedQuery(String name); 227 228 235 public Query createNativeQuery(String sqlString); 236 237 245 public Query createNativeQuery(String sqlString, Class resultClass); 246 247 255 public Query createNativeQuery(String sqlString, String resultSetMapping); 256 257 267 public void joinTransaction(); 268 269 275 public Object getDelegate(); 276 277 289 public void close(); 290 291 295 public boolean isOpen(); 296 297 305 public EntityTransaction getTransaction(); 306 307 } 308 | Popular Tags |