1
22
23 package com.liferay.portal.kernel.dao.orm;
24
25 import java.io.Serializable;
26
27 import java.sql.Connection;
28
29
34 public interface Session {
35
36 public void clear() throws ORMException;
37
38 public Connection close() throws ORMException;
39
40 public boolean contains(Object object) throws ORMException;
41
42 public Query createQuery(String queryString) throws ORMException;
43
44 public SQLQuery createSQLQuery(String queryString) throws ORMException;
45
46 public void delete(Object object) throws ORMException;
47
48 public void evict(Object object) throws ORMException;
49
50 public void flush() throws ORMException;
51
52 public Object get(Class<?> clazz, Serializable id) throws ORMException;
53
54 public Object get(Class<?> clazz, Serializable id, LockMode lockMode)
55 throws ORMException;
56
57 public Object getWrappedSession() throws ORMException;
58
59 public Object load(Class<?> clazz, Serializable id) throws ORMException;
60
61 public Object merge(Object object) throws ORMException;
62
63 public Serializable save(Object object) throws ORMException;
64
65 public void saveOrUpdate(Object object) throws ORMException;
66
67 }