public class PersistenceTransaction extends Object implements DataStoreTransaction
| Constructor and Description |
|---|
PersistenceTransaction(javax.persistence.EntityManager entityManager) |
| Modifier and Type | Method and Description |
|---|---|
User |
accessUser(Object opaqueUser) |
void |
close() |
void |
commit() |
<T> T |
createObject(Class<T> entityClass) |
void |
delete(Object entity) |
void |
flush() |
<T> T |
loadObject(Class<T> entityClass,
Serializable id) |
<T> Iterable<T> |
loadObjects(Class<T> entityClass) |
void |
save(Object entity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterCollection, loadObjectspublic PersistenceTransaction(javax.persistence.EntityManager entityManager)
public void save(Object entity)
save in interface DataStoreTransactionpublic void delete(Object entity)
delete in interface DataStoreTransactionpublic void flush()
flush in interface DataStoreTransactionpublic void commit()
commit in interface DataStoreTransactionpublic <T> T createObject(Class<T> entityClass)
createObject in interface DataStoreTransactionpublic <T> T loadObject(Class<T> entityClass, Serializable id)
loadObject in interface DataStoreTransactionpublic <T> Iterable<T> loadObjects(Class<T> entityClass)
loadObjects in interface DataStoreTransactionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic User accessUser(Object opaqueUser)
accessUser in interface DataStoreTransactionCopyright © 2015–2016. All rights reserved.