org.firebirdsql.gds.impl.DatabaseParameterBufferExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaybird Show documentation
Show all versions of jaybird Show documentation
JDBC Driver for the Firebird RDBMS
/*
* Public Firebird Java API.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. 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.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 THE AUTHOR 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.firebirdsql.gds.impl;
import org.firebirdsql.gds.DatabaseParameterBuffer;
/**
* Extension of the {@link org.firebirdsql.gds.DatabaseParameterBuffer}
* interface that allows GDS implementations remove the DPB extension parameters
* that driver implementation uses for client-side configuration.
*/
public interface DatabaseParameterBufferExtension extends DatabaseParameterBuffer {
/*
* Driver-specific DPB params that must be removed before sending them
* to the server. These params influence only the client side.
*/
int SOCKET_BUFFER_SIZE = 129; // ISCConstants.isc_dpb_socket_buffer_size;
int BLOB_BUFFER_SIZE = 130; // ISCConstants.isc_dpb_blob_buffer_size;
int USE_STREAM_BLOBS = 131; // ISCConstants.isc_dpb_use_stream_blobs;
int PARANOIA_MODE = 132; // ISCConstants.isc_dpb_paranoia_mode;
int TIMESTAMP_USES_LOCAL_TIMEZONE = 133; // ISCConstants.isc_dpb_timestamp_uses_local_timezone;
int USE_STANDARD_UDF = 134; // ISCConstants.isc_dpb_use_standard_udf;
int LOCAL_ENCODING = 135; // ISCConstants.isc_dpb_local_encoding;
int MAPPING_PATH = 136; // ISCConstants.isc_dpb_mapping_path;
int NO_RESULT_SET_TRACKING = 137; // ISCConstants.isc_dpb_no_result_set_tracking;
int RESULT_SET_HOLDABLE = 138; // ISCConstants.isc_dpb_result_set_holdable;
int FILENAME_CHARSET = 139; // ISCConstants.isc_dpb_filename_charset;
int OCTETS_AS_BYTES = 140; // ISCConstants.isc_dpb_octets_as_bytes;
/**
* List of the DPB extensions. This array is used to filter the parameters
* from the DPB before sending it to Firebird. Any new extension code MUST
* be listed here.
*/
public int[] EXTENSION_PARAMETERS = new int[] {
SOCKET_BUFFER_SIZE,
BLOB_BUFFER_SIZE,
USE_STREAM_BLOBS,
PARANOIA_MODE,
TIMESTAMP_USES_LOCAL_TIMEZONE,
USE_STANDARD_UDF,
LOCAL_ENCODING,
MAPPING_PATH,
NO_RESULT_SET_TRACKING,
RESULT_SET_HOLDABLE,
FILENAME_CHARSET,
OCTETS_AS_BYTES
};
/**
* Remove extension parameters in the newly created deep copy of this class.
*
* @return a deep copy of this class where all extension parameters are
* removed; needed to filter Jaybird extensions that are not understood by
* Firebird.
*/
DatabaseParameterBuffer removeExtensionParams();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy