1 /*
2    Copyright (c) 2011, 2021, Oracle and/or its affiliates.
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License, version 2.0,
6    as published by the Free Software Foundation.
7 
8    This program is also distributed with certain software (including
9    but not limited to OpenSSL) that is licensed under separate terms,
10    as designated in a particular file or component or in included license
11    documentation.  The authors of MySQL hereby grant you an additional
12    permission to link the program and your derivative works with the
13    separately licensed software that they have included with MySQL.
14 
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License, version 2.0, for more details.
19 
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
23 */
24 
25 package com.mysql.clusterj.core.spi;
26 
27 import java.math.BigDecimal;
28 import java.math.BigInteger;
29 import java.util.Map;
30 
31 import com.mysql.clusterj.core.store.ScanFilter;
32 
33 public interface QueryExecutionContext {
34 
getByte(String index)35     Object getByte(String index);
36 
getBoolean(String index)37     Boolean getBoolean(String index);
38 
getBytes(String index)39     byte[] getBytes(String index);
40 
getString(String index)41     String getString(String index);
42 
getBigDecimal(String index)43     BigDecimal getBigDecimal(String index);
44 
getBigInteger(String index)45     BigInteger getBigInteger(String index);
46 
getDouble(String index)47     Double getDouble(String index);
48 
getFloat(String index)49     Float getFloat(String index);
50 
getInt(String index)51     Integer getInt(String index);
52 
getJavaSqlDate(String index)53     java.sql.Date getJavaSqlDate(String index);
54 
getJavaSqlTime(String index)55     java.sql.Time getJavaSqlTime(String index);
56 
getJavaSqlTimestamp(String index)57     java.sql.Timestamp getJavaSqlTimestamp(String index);
58 
getJavaUtilDate(String index)59     java.util.Date getJavaUtilDate(String index);
60 
getLong(String index)61     Long getLong(String index);
62 
getShort(String index)63     Short getShort(String index);
64 
getObject(String index)65     Object getObject(String index);
66 
getSession()67     SessionSPI getSession();
68 
setExplain(Map<String, Object> explain)69     void setExplain(Map<String, Object> explain);
70 
getParameterValue(String parameterName)71     Object getParameterValue(String parameterName);
72 
isBound(String parameterName)73     boolean isBound(String parameterName);
74 
addFilter(ScanFilter scanFilter)75     void addFilter(ScanFilter scanFilter);
76 
deleteFilters()77     void deleteFilters();
78 
hasNoNullParameters()79     boolean hasNoNullParameters();
80 
81 }
82