001
014
015 package com.liferay.portal.kernel.dao.orm;
016
017 import java.io.Serializable;
018
019 import java.sql.Connection;
020
021
025 public interface Session {
026
027 public void clear() throws ORMException;
028
029 public Connection close() throws ORMException;
030
031 public boolean contains(Object object) throws ORMException;
032
033 public Query createQuery(String queryString) throws ORMException;
034
035 public Query createQuery(String queryString, boolean strictName)
036 throws ORMException;
037
038 public SQLQuery createSQLQuery(String queryString) throws ORMException;
039
040 public SQLQuery createSQLQuery(String queryString, boolean strictName)
041 throws ORMException;
042
043 public void delete(Object object) throws ORMException;
044
045 public void evict(Object object) throws ORMException;
046
047 public void flush() throws ORMException;
048
049 public Object get(Class<?> clazz, Serializable id) throws ORMException;
050
051 public Object get(Class<?> clazz, Serializable id, LockMode lockMode)
052 throws ORMException;
053
054 public Object getWrappedSession() throws ORMException;
055
056 public Object load(Class<?> clazz, Serializable id) throws ORMException;
057
058 public Object merge(Object object) throws ORMException;
059
060 public Serializable save(Object object) throws ORMException;
061
062 public void saveOrUpdate(Object object) throws ORMException;
063
064 }