/home/mario/oci/jnb/dataaccess/source/src/java/com/ociweb/service/Query.java
|
1 /**
2 * This software program, Simple Data Access Layer (SDAL), is copyrighted by Object
3 * Computing inc of St. Louis MO USA. It is provided under the open-source model
4 * and is free of license fees. You are free to modify this code for your own use
5 * but you may not claim copyright.
6 *
7 * Since SDAL is open source and free of licensing fees, you are free to use,
8 * modify, and distribute the source code, as long as you include this copyright
9 * statement.
10 *
11 * In particular, you can use SDAL to build proprietary software and are under no
12 * obligation to redistribute any of your source code that is built using SDAL.
13 * Note, however, that you may not do anything to the SDAL code, such as
14 * copyrighting it yourself or claiming authorship of the SDAL code, that will
15 * prevent SDAL from being distributed freely using an open source development
16 * model.
17 *
18 * Warranty
19 * LICENSED PRODUCT, SDAL, IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
20 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE,
21 * NONINFRINGEMENT, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
22 *
23 * Support
24 * LICENSED PRODUCT, SDAL, IS PROVIDED WITH NO SUPPORT AND WITHOUT ANY OBLIGATION ON THE
25 * PART OF OCI OR ANY OF ITS SUBSIDIARIES OR AFFILIATES TO ASSIST IN ITS USE,
26 * CORRECTION, MODIFICATION OR ENHANCEMENT.
27 *
28 * Support may be available from OCI to users who have agreed to a support
29 * contract.
30 *
31 * Liability
32 * OCI OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH
33 * RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY
34 * LICENSED PRODUCT OR ANY PART THEREOF.
35 *
36 * IN NO EVENT WILL OCI OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR ANY
37 * LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL DAMAGES,
38 * EVEN IF OCI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
39 *
40 * Copyright OCI. St. Louis MO USA, 2004
41 *
42 */
43 package com.ociweb.service;
44
45 import com.ociweb.service.LookupException;
46
47 import java.util.Collection;
48 import java.util.Locale;
49 import java.util.Date;
50 import java.util.Calendar;
51 import java.io.Serializable;
52 import java.math.BigDecimal;
53
54 public interface Query extends CommonQuery {
55
56 Query setParameter(int i, Object o) throws LookupException;
57
58 Query setParameter(String s, Object o) throws LookupException;
59
60 Query setParameterList(String s, Collection collection) throws LookupException;
61
62 Query setParameterList(String s, Object[] objects) throws LookupException;
63
64 Query setProperties(Object o) throws LookupException;
65
66 Query setString(int i, String s);
67
68 Query setCharacter(int i, char c);
69
70 Query setBoolean(int i, boolean b);
71
72 Query setByte(int i, byte b);
73
74 Query setShort(int i, short i1);
75
76 Query setInteger(int i, int i1);
77
78 Query setLong(int i, long l);
79
80 Query setFloat(int i, float v);
81
82 Query setDouble(int i, double v);
83
84 Query setBinary(int i, byte[] bytes);
85
86 Query setSerializable(int i, Serializable serializable);
87
88 Query setLocale(int i, Locale locale);
89
90 Query setBigDecimal(int i, BigDecimal bigDecimal);
91
92 Query setDate(int i, Date date);
93
94 Query setTime(int i, Date date);
95
96 Query setTimestamp(int i, Date date);
97
98 Query setCalendar(int i, Calendar calendar);
99
100 Query setCalendarDate(int i, Calendar calendar);
101
102 Query setString(String s, String s1);
103
104 Query setCharacter(String s, char c);
105
106 Query setBoolean(String s, boolean b);
107
108 Query setByte(String s, byte b);
109
110 Query setShort(String s, short i);
111
112 Query setInteger(String s, int i);
113
114 Query setLong(String s, long l);
115
116 Query setFloat(String s, float v);
117
118 Query setDouble(String s, double v);
119
120 Query setBinary(String s, byte[] bytes);
121
122 Query setSerializable(String s, Serializable serializable);
123
124 Query setLocale(String s, Locale locale);
125
126 Query setBigDecimal(String s, BigDecimal bigDecimal);
127
128 Query setDate(String s, Date date);
129
130 Query setTime(String s, Date date);
131
132 Query setTimestamp(String s, Date date);
133
134 Query setCalendar(String s, Calendar calendar);
135
136 Query setCalendarDate(String s, Calendar calendar);
137
138 Query setEntity(int i, Object o);
139
140 Query setEntity(String s, Object o);
141 }
142