ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/datasources/PooledConnectionManager.java

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

      
    
Rootfs path

      
    
Size
2332 (2.3 KB)
MD5
82b6cf412db28bd3791ad002f4238072
SHA1
185df7d1b471ddebabbb50ec18453c4e9ede2aff
SHA256
1380a00ca1de519de5e2ca51fd81848c35062dbb3a30e6955a89f67529dc7767
SHA512

      
    
SHA1_git
7faa895732c769898cddddc747a076bd31f6bb18
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
PooledConnectionManager.java | 2.3 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.datasources; import java.sql.SQLException; import javax.sql.PooledConnection; /** * Methods to manage PoolableConnections and the connection pools that source them. * * @since 2.0 */ interface PooledConnectionManager { /** * Closes the connection pool associated with the given user. * * @param userName * user name. * @throws SQLException * if an error occurs closing idle connections in the pool. */ void closePool(String userName) throws SQLException; /** * Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters. * * @param pc * PooledConnection to be invalidated. * @throws SQLException * if an SQL error occurs closing the connection. */ void invalidate(PooledConnection pc) throws SQLException; /** * Sets the database password used when creating connections. * * @param password password used when authenticating to the database. * @since 2.14.0 */ default void setPassword(final char[] password) { setPassword(String.copyValueOf(password)); } /** * Sets the database password used when creating connections. * * @param password * password used when authenticating to the database. */ void setPassword(String password); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
43.75
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