public class OJPAEntityManager extends Object implements javax.persistence.EntityManager
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
contains(Object entity) |
javax.persistence.Query |
createNamedQuery(String name) |
<T> javax.persistence.TypedQuery<T> |
createNamedQuery(String name,
Class<T> resultClass) |
javax.persistence.Query |
createNativeQuery(String sqlString) |
javax.persistence.Query |
createNativeQuery(String sqlString,
Class resultClass) |
javax.persistence.Query |
createNativeQuery(String sqlString,
String resultSetMapping) |
<T> javax.persistence.TypedQuery<T> |
createQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery) |
javax.persistence.Query |
createQuery(String qlString) |
<T> javax.persistence.TypedQuery<T> |
createQuery(String qlString,
Class<T> resultClass) |
void |
detach(Object entity) |
<T> T |
find(Class<T> entityClass,
Object primaryKey) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
javax.persistence.LockModeType lockMode) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
javax.persistence.LockModeType lockMode,
Map<String,Object> properties) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
Map<String,Object> properties) |
void |
flush() |
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder() |
Object |
getDelegate() |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
javax.persistence.FlushModeType |
getFlushMode() |
javax.persistence.LockModeType |
getLockMode(Object entity) |
javax.persistence.metamodel.Metamodel |
getMetamodel() |
Map<String,Object> |
getProperties() |
<T> T |
getReference(Class<T> entityClass,
Object primaryKey) |
javax.persistence.EntityTransaction |
getTransaction() |
boolean |
isOpen() |
void |
joinTransaction() |
void |
lock(Object entity,
javax.persistence.LockModeType lockMode) |
void |
lock(Object entity,
javax.persistence.LockModeType lockMode,
Map<String,Object> properties) |
<T> T |
merge(T entity) |
void |
persist(Object entity) |
void |
refresh(Object entity) |
void |
refresh(Object entity,
javax.persistence.LockModeType lockMode) |
void |
refresh(Object entity,
javax.persistence.LockModeType lockMode,
Map<String,Object> properties) |
void |
refresh(Object entity,
Map<String,Object> properties) |
void |
remove(Object entity) |
void |
setFlushMode(javax.persistence.FlushModeType flushMode) |
void |
setProperty(String propertyName,
Object value) |
String |
toString() |
<T> T |
unwrap(Class<T> cls) |
public void persist(Object entity)
persist
in interface javax.persistence.EntityManager
public <T> T merge(T entity)
merge
in interface javax.persistence.EntityManager
public void remove(Object entity)
remove
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey)
find
in interface javax.persistence.EntityManager
public <T> T getReference(Class<T> entityClass, Object primaryKey)
getReference
in interface javax.persistence.EntityManager
public void flush()
flush
in interface javax.persistence.EntityManager
public javax.persistence.FlushModeType getFlushMode()
getFlushMode
in interface javax.persistence.EntityManager
public void setFlushMode(javax.persistence.FlushModeType flushMode)
setFlushMode
in interface javax.persistence.EntityManager
public void lock(Object entity, javax.persistence.LockModeType lockMode)
lock
in interface javax.persistence.EntityManager
public void refresh(Object entity)
refresh
in interface javax.persistence.EntityManager
public void clear()
clear
in interface javax.persistence.EntityManager
public boolean contains(Object entity)
contains
in interface javax.persistence.EntityManager
public javax.persistence.Query createQuery(String qlString)
createQuery
in interface javax.persistence.EntityManager
public javax.persistence.Query createNamedQuery(String name)
createNamedQuery
in interface javax.persistence.EntityManager
public javax.persistence.Query createNativeQuery(String sqlString)
createNativeQuery
in interface javax.persistence.EntityManager
public javax.persistence.Query createNativeQuery(String sqlString, Class resultClass)
createNativeQuery
in interface javax.persistence.EntityManager
public javax.persistence.Query createNativeQuery(String sqlString, String resultSetMapping)
createNativeQuery
in interface javax.persistence.EntityManager
public void joinTransaction()
joinTransaction
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey, Map<String,Object> properties)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
find
in interface javax.persistence.EntityManager
public void lock(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
lock
in interface javax.persistence.EntityManager
public void refresh(Object entity, Map<String,Object> properties)
refresh
in interface javax.persistence.EntityManager
public void refresh(Object entity, javax.persistence.LockModeType lockMode)
refresh
in interface javax.persistence.EntityManager
public void refresh(Object entity, javax.persistence.LockModeType lockMode, Map<String,Object> properties)
refresh
in interface javax.persistence.EntityManager
public void detach(Object entity)
detach
in interface javax.persistence.EntityManager
public javax.persistence.LockModeType getLockMode(Object entity)
getLockMode
in interface javax.persistence.EntityManager
public void setProperty(String propertyName, Object value)
setProperty
in interface javax.persistence.EntityManager
public Map<String,Object> getProperties()
getProperties
in interface javax.persistence.EntityManager
public <T> javax.persistence.TypedQuery<T> createQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery)
createQuery
in interface javax.persistence.EntityManager
public <T> javax.persistence.TypedQuery<T> createQuery(String qlString, Class<T> resultClass)
createQuery
in interface javax.persistence.EntityManager
public <T> javax.persistence.TypedQuery<T> createNamedQuery(String name, Class<T> resultClass)
createNamedQuery
in interface javax.persistence.EntityManager
public <T> T unwrap(Class<T> cls)
unwrap
in interface javax.persistence.EntityManager
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
getEntityManagerFactory
in interface javax.persistence.EntityManager
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface javax.persistence.EntityManager
public javax.persistence.metamodel.Metamodel getMetamodel()
getMetamodel
in interface javax.persistence.EntityManager
public Object getDelegate()
getDelegate
in interface javax.persistence.EntityManager
public javax.persistence.EntityTransaction getTransaction()
getTransaction
in interface javax.persistence.EntityManager
public void close()
close
in interface javax.persistence.EntityManager
public boolean isOpen()
isOpen
in interface javax.persistence.EntityManager
Copyright © 2009–2020 OrientDB. All rights reserved.