1
22
23 package com.liferay.portal.kernel.dao.orm;
24
25 import java.io.Serializable;
26
27 import java.sql.Timestamp;
28
29 import java.util.Iterator;
30 import java.util.List;
31
32
38 public interface Query {
39
40 public int executeUpdate() throws ORMException;
41
42 public Iterator iterate() throws ORMException;
43
44 public Iterator iterate(boolean modifiable) throws ORMException;
45
46 public List list() throws ORMException;
47
48 public List list(boolean unmodifiable) throws ORMException;
49
50 public ScrollableResults scroll() throws ORMException;
51
52 public Query setBoolean(int pos, boolean value);
53
54 public Query setCacheable(boolean cacheable);
55
56 public Query setCacheMode(CacheMode cacheMode);
57
58 public Query setCacheRegion(String cacheRegion);
59
60 public Query setDouble(int pos, double value);
61
62 public Query setFirstResult(int firstResult);
63
64 public Query setFloat(int pos, float value);
65
66 public Query setInteger(int pos, int value);
67
68 public Query setLong(int pos, long value);
69
70 public Query setMaxResults(int maxResults);
71
72 public Query setShort(int pos, short value);
73
74 public Query setSerializable(int pos, Serializable value);
75
76 public Query setString(int pos, String value);
77
78 public Query setTimestamp(int pos, Timestamp value);
79
80 public Object uniqueResult() throws ORMException;
81
82 }