ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/cpdsadapter/PStmtKeyCPDS.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/cpdsadapter/PStmtKeyCPDS.java
Status
scanned
Type
file
Name
PStmtKeyCPDS.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
4512 (4.4 KB)
MD5
05685046c63afa70c919ebe546b36c88
SHA1
6b6d60ca7cbc1fb5e1ed9315bd0afdae94de1e6e
SHA256
a659cb72bd6eab0e9cee63c260e224e4ae33c138506aad090fb954c87d84a09c
SHA512

      
    
SHA1_git
d2eee1bf7dc34efd4664c7f1dc2e52e7efdabf2a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
PStmtKeyCPDS.java | 4.4 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.dbcp.dbcp2.cpdsadapter; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import org.apache.tomcat.dbcp.dbcp2.PStmtKey; /** * A key uniquely identifying a {@link PreparedStatement}. * * @since 2.0 * @deprecated Use {@link PStmtKey}. */ @Deprecated public class PStmtKeyCPDS extends PStmtKey { /** * Constructs a key to uniquely identify a prepared statement. * * @param sql * The SQL statement. */ public PStmtKeyCPDS(final String sql) { super(sql); } /** * Constructs a key to uniquely identify a prepared statement. * * @param sql * The SQL statement. * @param autoGeneratedKeys * A flag indicating whether auto-generated keys should be returned; one of * {@link Statement#RETURN_GENERATED_KEYS} or {@link Statement#NO_GENERATED_KEYS}. */ public PStmtKeyCPDS(final String sql, final int autoGeneratedKeys) { super(sql, null, autoGeneratedKeys); } /** * Constructs a key to uniquely identify a prepared statement. * * @param sql * The SQL statement. * @param resultSetType * A result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY}, * {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or {@link ResultSet#TYPE_SCROLL_SENSITIVE}. * @param resultSetConcurrency * A concurrency type; one of {@link ResultSet#CONCUR_READ_ONLY} or * {@link ResultSet#CONCUR_UPDATABLE}. */ public PStmtKeyCPDS(final String sql, final int resultSetType, final int resultSetConcurrency) { super(sql, resultSetType, resultSetConcurrency); } /** * Constructs a key to uniquely identify a prepared statement. * * @param sql * The SQL statement. * @param resultSetType * a result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY}, * {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or {@link ResultSet#TYPE_SCROLL_SENSITIVE}. * @param resultSetConcurrency * A concurrency type; one of {@link ResultSet#CONCUR_READ_ONLY} or * {@link ResultSet#CONCUR_UPDATABLE} * @param resultSetHoldability * One of the following {@link ResultSet} constants: {@link ResultSet#HOLD_CURSORS_OVER_COMMIT} * or {@link ResultSet#CLOSE_CURSORS_AT_COMMIT}. */ public PStmtKeyCPDS(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability) { super(sql, null, resultSetType, resultSetConcurrency, resultSetHoldability); } /** * Constructs a key to uniquely identify a prepared statement. * * @param sql * The SQL statement. * @param columnIndexes * An array of column indexes indicating the columns that should be returned from the inserted row or * rows. */ public PStmtKeyCPDS(final String sql, final int[] columnIndexes) { super(sql, null, columnIndexes); } /** * Constructs a key to uniquely identify a prepared statement. * * @param sql * The SQL statement. * @param columnNames * An array of column names indicating the columns that should be returned from the inserted row or rows. */ public PStmtKeyCPDS(final String sql, final String[] columnNames) { super(sql, null, columnNames); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
25.05
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-eb6b5ae0-4f88-4e9b-d67c-c6c8e733b1cd apache-2.0 Apache-2.0
URL Start line End line
https://www.apache.org/licenses/LICENSE-2.0 9 9