📄 resultconstants.java
字号:
/* Copyright (c) 2001-2005, The HSQL Development Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of the HSQL Development Group nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */package org.hsqldb;// This can probably just be merged with Result./** * An enumeration of the request and response mode values used to communicate * between the client and the engine when sending Result objects back * and forth. * * @author boucherb@users * @since 1.7.2 * @version 1.7.2 */// fredt@users - the constants from the SQL standards are used freely where a// similar function is performed. The Result objects do not necessarily contain// the same information as stated in SQL standard for CLI.public interface ResultConstants { /** The offset at which HSQLDB API Result mode values start. */ int HSQL_API_BASE = 0; /** * Indicates that the Result object encapsulates multiple Result objects. */ int MULTI = HSQL_API_BASE + 0; /** * Indicates that the Result object encapsulates an update * count response. */ int UPDATECOUNT = HSQL_API_BASE + 1; /** * Indicates that the Result object encapsualtes an * error response. */ int ERROR = HSQL_API_BASE + 2; /** * Indicates that the Result object encapsulates a result * set response containing data. */ int DATA = HSQL_API_BASE + 3; /** * Indicates that the Result object encapsulates a response * that communicates the acknowlegement of newly allocated * CompiledStatement object in the form of its statementID. */ int PREPARE_ACK = HSQL_API_BASE + 4; /** * Indicates that the Result object encapsulates a result * set response containing parameter metadata. */ int PARAM_META_DATA = HSQL_API_BASE + 5; /** * Indicates that the Result object encapsulates a result * set for setting session attributes. */ int SETSESSIONATTR = HSQL_API_BASE + 6; /** * Indicates that the Result object encapsulates a request * to get session attributes. */ int GETSESSIONATTR = HSQL_API_BASE + 7; /** * Indicates that the Result object encapsulates a batch of statements */ int BATCHEXECDIRECT = HSQL_API_BASE + 8; /** * Indicates that the Result object encapsulates a batch of prepared * statement parameter values */ int BATCHEXECUTE = HSQL_API_BASE + 9; /** * Indicates that the Result object encapsulates a request to start a new * internal session for the connection */ int HSQLRESETSESSION = HSQL_API_BASE + 10; /** * Indicates that the Result object encapsulates a request to prepare * to commit as the first phase of a two-phase commit */ int HSQLPREPARECOMMIT = HSQL_API_BASE + 11; /** The offset at which the standard SQL API Result mode values start. */ int SQL_API_BASE = 0x00010000;// /**// * Indicates that Result encapsulates a request to allocate an// * SQL-connection and assign a handle to it.// */// int SQLALLOCCONNECT = SQL_API_BASE + 1;// /**// * Indicates that Result encapsulates a request to allocate an// * SQL-environment and assign a handle to it.// */// int SQLALLOCENV = SQL_API_BASE + 2;//// /**// * Indicates that Result encapsulates a request to allocate a resource// * and assign a handle to it.// */// int SQLALLOCHANDLE = SQL_API_BASE + 1001;//// /**// * Indicates that Result encapsulates a request to allocate an// * SQL-statement and assign a handle to it.// */// int SQLALLOCSTMT = SQL_API_BASE + 3;//// /**// * Indicates that Result encapsulates a request to describe a target// * specification or array of target specifications.// */// int SQLBINDCOL = SQL_API_BASE + 4;//// /**// * Indicates that Result encapsulates a request to describe a// * dynamic parameter specification and its value.// */// int SQLBINDPARAMETER = SQL_API_BASE + 72;//// /**// * Indicates that Result encapsulates a request to cancel execution of// * a CLI routine.// */// int SQLCANCEL = SQL_API_BASE + 5;//// /** Indicates that Result encapsulates a request to close a cursor. */// int SQLCLOSECURSOR = SQL_API_BASE + 1003;//// /**// * Indicates that Result encapsulates a request to get a// * column attribute.// */// int SQLCOLATTRIBUTE = SQL_API_BASE + 6;//// /**// * Indicates that Result encapsulates a request to return a result set that// * contains a list of the privileges held on the columns whose names adhere// * to the requested pattern or patterns within a single specified table// * stored in the Information Schema of the connected data source.// */// int SQLCOLUMNPRIVILEGES = SQL_API_BASE + 56;//// /**// * Indicates that Result encapsulates a request to, based on the specified// * selection criteria, return a result set that contains information about// * columns of tables stored in the information schemas of the connected// * data source.// */// int SQLCOLUMNS = SQL_API_BASE + 40;// /** * Indicates that Result encapsulates a request to establish a connection. */ int SQLCONNECT = SQL_API_BASE + 7;// /**// * Indicates that Result encapsulates a request to copy a CLI descriptor.// */// int SQLCOPYDESC = SQL_API_BASE + 1004;//// /**// * Indicates that Result encapsulates a request to get server name(s) that// * the application can connect to, along with description information,// * if available.// */// int SQLDATASOURCES = SQL_API_BASE + 57;//// /**// * Indicates that Result encapsulates a request to get column attributes.// */// int SQLDESCRIBECOL = SQL_API_BASE + 8;// /** * Indicates that Result encapsulates a request to terminate an * established connection. */ int SQLDISCONNECT = SQL_API_BASE + 9; /** * Indicates that Result encapsulates a request to terminate an * SQL-transaction. */ int SQLENDTRAN = SQL_API_BASE + 1005;// /**// * Indicates that Result encapsulates a request to return diagnostic// * information.// */// int SQLERROR = SQL_API_BASE + 10; /** * Indicates that Result encapsulates a request to execute a statement * directly. */ int SQLEXECDIRECT = SQL_API_BASE + 11; /** * Indicates that Result encapsulates a request to execute a prepared * statement. */ int SQLEXECUTE = SQL_API_BASE + 12; /** * Indicates that Result encapsulates a request to fetch the next row of * a cursor. */// int SQLFETCH = SQL_API_BASE + 13; /** * Indicates that Result encapsulates a request to position a cursor on * the specified row and retrieve values from that row. */// int SQLFETCHSCROLL = SQL_API_BASE + 1021;// /**// * Indicates that Result encapsulates a request to return a result set// * that contains information about foreign keys either in or referencing// * a single specified table stored in the Information Schema of the// * connected data source.// */// int SQLFOREIGNKEYS = SQL_API_BASE + 60;//// /**// * Indicates that Result encapsulates a request to deallocate an// * SQL-connection.// */// int SQLFREECONNECT = SQL_API_BASE + 14;//// /**// * Indicates that Result encapsulates a request to deallocate an// * SQL-environment.// */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -