public class EntityManagerMock extends Object implements javax.persistence.EntityManager
EntityManager
.Constructor and Description |
---|
EntityManagerMock()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
contains(Object entity) |
<T> javax.persistence.EntityGraph<T> |
createEntityGraph(Class<T> rootType) |
javax.persistence.EntityGraph<?> |
createEntityGraph(String graphName) |
javax.persistence.Query |
createNamedQuery(String name) |
<T> javax.persistence.TypedQuery<T> |
createNamedQuery(String arg0,
Class<T> arg1) |
javax.persistence.StoredProcedureQuery |
createNamedStoredProcedureQuery(String name) |
javax.persistence.Query |
createNativeQuery(String sqlString) |
javax.persistence.Query |
createNativeQuery(String sqlString,
Class resultClass) |
javax.persistence.Query |
createNativeQuery(String sqlString,
String resultSetMapping) |
javax.persistence.Query |
createQuery(javax.persistence.criteria.CriteriaDelete deleteQuery) |
<T> javax.persistence.TypedQuery<T> |
createQuery(javax.persistence.criteria.CriteriaQuery<T> arg0) |
javax.persistence.Query |
createQuery(javax.persistence.criteria.CriteriaUpdate updateQuery) |
javax.persistence.Query |
createQuery(String qlString) |
<T> javax.persistence.TypedQuery<T> |
createQuery(String query,
Class<T> resultType) |
javax.persistence.StoredProcedureQuery |
createStoredProcedureQuery(String procedureName) |
javax.persistence.StoredProcedureQuery |
createStoredProcedureQuery(String procedureName,
Class... resultClasses) |
javax.persistence.StoredProcedureQuery |
createStoredProcedureQuery(String procedureName,
String... resultSetMappings) |
void |
detach(Object arg0) |
<T> T |
find(Class<T> entityClass,
Object primaryKey) |
<T> T |
find(Class<T> arg0,
Object arg1,
javax.persistence.LockModeType arg2) |
<T> T |
find(Class<T> arg0,
Object arg1,
javax.persistence.LockModeType arg2,
Map<String,Object> arg3) |
<T> T |
find(Class<T> arg0,
Object arg1,
Map<String,Object> arg2) |
void |
flush() |
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder() |
Object |
getDelegate() |
javax.persistence.EntityGraph<?> |
getEntityGraph(String graphName) |
<T> List<javax.persistence.EntityGraph<? super T>> |
getEntityGraphs(Class<T> entityClass) |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
javax.persistence.FlushModeType |
getFlushMode() |
javax.persistence.LockModeType |
getLockMode(Object arg0) |
javax.persistence.metamodel.Metamodel |
getMetamodel() |
Map<String,Object> |
getProperties() |
<T> T |
getReference(Class<T> entityClass,
Object primaryKey) |
javax.persistence.EntityTransaction |
getTransaction() |
boolean |
isJoinedToTransaction() |
boolean |
isOpen() |
void |
joinTransaction() |
void |
lock(Object entity,
javax.persistence.LockModeType lockMode) |
void |
lock(Object arg0,
javax.persistence.LockModeType arg1,
Map<String,Object> arg2) |
<T> T |
merge(T entity) |
void |
persist(Object entity) |
void |
refresh(Object entity) |
void |
refresh(Object arg0,
javax.persistence.LockModeType arg1) |
void |
refresh(Object arg0,
javax.persistence.LockModeType arg1,
Map<String,Object> arg2) |
void |
refresh(Object arg0,
Map<String,Object> arg1) |
void |
remove(Object entity) |
void |
setFlushMode(javax.persistence.FlushModeType flushMode) |
void |
setProperty(String arg0,
Object arg1) |
<T> T |
unwrap(Class<T> arg0) |
public javax.persistence.Query createQuery(javax.persistence.criteria.CriteriaUpdate updateQuery)
public javax.persistence.Query createQuery(javax.persistence.criteria.CriteriaDelete deleteQuery)
public javax.persistence.StoredProcedureQuery createNamedStoredProcedureQuery(String name)
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName)
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class... resultClasses)
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, String... resultSetMappings)
public boolean isJoinedToTransaction()
public <T> javax.persistence.EntityGraph<T> createEntityGraph(Class<T> rootType)
public javax.persistence.EntityGraph<?> createEntityGraph(String graphName)
public javax.persistence.EntityGraph<?> getEntityGraph(String graphName)
public <T> List<javax.persistence.EntityGraph<? super T>> getEntityGraphs(Class<T> entityClass)
public void flush()
flush
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, Class resultClass)
createNativeQuery
in interface javax.persistence.EntityManager
public void close()
close
in interface javax.persistence.EntityManager
public <T> javax.persistence.TypedQuery<T> createNamedQuery(String arg0, Class<T> arg1)
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, String resultSetMapping)
createNativeQuery
in interface javax.persistence.EntityManager
public <T> javax.persistence.TypedQuery<T> createQuery(javax.persistence.criteria.CriteriaQuery<T> arg0)
createQuery
in interface javax.persistence.EntityManager
public <T> javax.persistence.TypedQuery<T> createQuery(String query, Class<T> resultType)
createQuery
in interface javax.persistence.EntityManager
public void detach(Object arg0)
detach
in interface javax.persistence.EntityManager
public <T> T find(Class<T> entityClass, Object primaryKey)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> arg0, Object arg1, Map<String,Object> arg2)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> arg0, Object arg1, javax.persistence.LockModeType arg2)
find
in interface javax.persistence.EntityManager
public <T> T find(Class<T> arg0, Object arg1, javax.persistence.LockModeType arg2, Map<String,Object> arg3)
find
in interface javax.persistence.EntityManager
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface javax.persistence.EntityManager
public Object getDelegate()
getDelegate
in interface javax.persistence.EntityManager
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
getEntityManagerFactory
in interface javax.persistence.EntityManager
public javax.persistence.FlushModeType getFlushMode()
getFlushMode
in interface javax.persistence.EntityManager
public javax.persistence.LockModeType getLockMode(Object arg0)
getLockMode
in interface javax.persistence.EntityManager
public javax.persistence.metamodel.Metamodel getMetamodel()
getMetamodel
in interface javax.persistence.EntityManager
public Map<String,Object> getProperties()
getProperties
in interface javax.persistence.EntityManager
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 getReference(Class<T> entityClass, Object primaryKey)
getReference
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 joinTransaction()
joinTransaction
in interface javax.persistence.EntityManager
public boolean isOpen()
isOpen
in interface javax.persistence.EntityManager
public javax.persistence.EntityTransaction getTransaction()
getTransaction
in interface javax.persistence.EntityManager
public void lock(Object arg0, javax.persistence.LockModeType arg1, Map<String,Object> arg2)
lock
in interface javax.persistence.EntityManager
public void refresh(Object arg0, Map<String,Object> arg1)
refresh
in interface javax.persistence.EntityManager
public void refresh(Object arg0, javax.persistence.LockModeType arg1)
refresh
in interface javax.persistence.EntityManager
public void refresh(Object arg0, javax.persistence.LockModeType arg1, Map<String,Object> arg2)
refresh
in interface javax.persistence.EntityManager
public void setProperty(String arg0, Object arg1)
setProperty
in interface javax.persistence.EntityManager
public <T> T unwrap(Class<T> arg0)
unwrap
in interface javax.persistence.EntityManager
Copyright © 2001–2016 mmm-Team. All rights reserved.