1 package org.hibernate; 3 4 import java.io.Serializable ; 5 import java.sql.Connection ; 6 7 25 public interface StatelessSession extends Serializable { 26 29 public void close(); 30 34 public Serializable insert(Object entity); 35 39 public void update(Object entity); 40 44 public void delete(Object entity); 45 50 public Serializable insert(String entityName, Object entity); 51 55 public void update(String entityName, Object entity); 56 60 public void delete(String entityName, Object entity); 61 65 public Object get(String entityName, Serializable id); 66 70 public Object get(Class entityClass, Serializable id); 71 75 public Object get(String entityName, Serializable id, LockMode lockMode); 76 80 public Object get(Class entityClass, Serializable id, LockMode lockMode); 81 85 public Query createQuery(String queryString); 86 90 public Query getNamedQuery(String queryName); 91 99 public Criteria createCriteria(Class persistentClass); 100 108 public Criteria createCriteria(Class persistentClass, String alias); 109 116 public Criteria createCriteria(String entityName); 117 124 public Criteria createCriteria(String entityName, String alias); 125 133 public SQLQuery createSQLQuery(String queryString) throws HibernateException; 134 137 public Transaction beginTransaction(); 138 142 public Connection connection(); 143 } 144 | Popular Tags |