Liferay 6.0.5

com.liferay.portal.dao.orm.jpa
Class SessionImpl

java.lang.Object
  extended by com.liferay.portal.dao.orm.jpa.SessionImpl
All Implemented Interfaces:
Session
Direct Known Subclasses:
NewSessionImpl

public class SessionImpl
extends Object
implements Session


Field Summary
protected  javax.persistence.EntityManager _entityManager
           
 
Constructor Summary
SessionImpl()
           
 
Method Summary
 void clear()
           
 Connection close()
           
 boolean contains(Object object)
           
 Query createQuery(String queryString)
           
 SQLQuery createSQLQuery(String queryString)
           
 void delete(Object object)
           
 void evict(Object object)
           
protected  int executeUpdate(String queryString, Map<Integer,Object> parameterMap, int firstResult, int maxResults, javax.persistence.FlushModeType flushMode, boolean sqlQuery, Class<?> entityClass)
           
 void flush()
           
 Object get(Class<?> clazz, Serializable id)
           
 Object get(Class<?> clazz, Serializable id, LockMode lockMode)
           
 Object getWrappedSession()
           
protected  List<?> list(String queryString, Map<Integer,Object> parameterMap, int firstResult, int maxResults, javax.persistence.FlushModeType flushMode, boolean sqlQuery, Class<?> entityClass)
           
 Object load(Class<?> clazz, Serializable id)
           
 Object merge(Object object)
           
 Serializable save(Object object)
           
 void saveOrUpdate(Object object)
           
protected  Object uniqueResult(String queryString, Map<Integer,Object> parameterMap, int firstResult, int maxResults, javax.persistence.FlushModeType flushMode, boolean sqlQuery, Class<?> entityClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_entityManager

protected javax.persistence.EntityManager _entityManager
Constructor Detail

SessionImpl

public SessionImpl()
Method Detail

clear

public void clear()
           throws ORMException
Specified by:
clear in interface Session
Throws:
ORMException

close

public Connection close()
                 throws ORMException
Specified by:
close in interface Session
Throws:
ORMException

contains

public boolean contains(Object object)
                 throws ORMException
Specified by:
contains in interface Session
Throws:
ORMException

createQuery

public Query createQuery(String queryString)
                  throws ORMException
Specified by:
createQuery in interface Session
Throws:
ORMException

createSQLQuery

public SQLQuery createSQLQuery(String queryString)
                        throws ORMException
Specified by:
createSQLQuery in interface Session
Throws:
ORMException

delete

public void delete(Object object)
            throws ORMException
Specified by:
delete in interface Session
Throws:
ORMException

evict

public void evict(Object object)
           throws ORMException
Specified by:
evict in interface Session
Throws:
ORMException

flush

public void flush()
           throws ORMException
Specified by:
flush in interface Session
Throws:
ORMException

get

public Object get(Class<?> clazz,
                  Serializable id)
           throws ORMException
Specified by:
get in interface Session
Throws:
ORMException

get

public Object get(Class<?> clazz,
                  Serializable id,
                  LockMode lockMode)
           throws ORMException
Specified by:
get in interface Session
Throws:
ORMException

getWrappedSession

public Object getWrappedSession()
                         throws ORMException
Specified by:
getWrappedSession in interface Session
Throws:
ORMException

load

public Object load(Class<?> clazz,
                   Serializable id)
            throws ORMException
Specified by:
load in interface Session
Throws:
ORMException

merge

public Object merge(Object object)
             throws ORMException
Specified by:
merge in interface Session
Throws:
ORMException

save

public Serializable save(Object object)
                  throws ORMException
Specified by:
save in interface Session
Throws:
ORMException

saveOrUpdate

public void saveOrUpdate(Object object)
                  throws ORMException
Specified by:
saveOrUpdate in interface Session
Throws:
ORMException

executeUpdate

protected int executeUpdate(String queryString,
                            Map<Integer,Object> parameterMap,
                            int firstResult,
                            int maxResults,
                            javax.persistence.FlushModeType flushMode,
                            boolean sqlQuery,
                            Class<?> entityClass)

list

protected List<?> list(String queryString,
                       Map<Integer,Object> parameterMap,
                       int firstResult,
                       int maxResults,
                       javax.persistence.FlushModeType flushMode,
                       boolean sqlQuery,
                       Class<?> entityClass)

uniqueResult

protected Object uniqueResult(String queryString,
                              Map<Integer,Object> parameterMap,
                              int firstResult,
                              int maxResults,
                              javax.persistence.FlushModeType flushMode,
                              boolean sqlQuery,
                              Class<?> entityClass)

Liferay 6.0.5