1 23 package javax.persistence; 24 25 import java.util.Calendar ; 26 import java.util.Date ; 27 import java.util.List ; 28 29 34 public interface Query { 35 36 43 public List getResultList(); 44 45 53 public Object getSingleResult(); 54 55 63 public int executeUpdate(); 64 65 71 public Query setMaxResults(int maxResult); 72 73 79 public Query setFirstResult(int startPosition); 80 81 90 public Query setHint(String hintName, Object value); 91 92 101 public Query setParameter(String name, Object value); 102 103 112 public Query setParameter(String name, Date value, TemporalType temporalType); 113 114 123 public Query setParameter(String name, Calendar value, TemporalType temporalType); 124 125 134 public Query setParameter(int position, Object value); 135 136 145 public Query setParameter(int position, Date value, TemporalType temporalType); 146 147 156 public Query setParameter(int position, Calendar value, TemporalType temporalType); 157 158 164 public Query setFlushMode(FlushModeType flushMode); 165 } 166 | Popular Tags |