資源簡介
java 連接 mysql 所需jar包和zip實現源碼。java必備jar包和源碼,收藏不迷路

代碼片段和文件信息
/*
??Copyright?(c)?2013?Oracle?and/or?its?affiliates.?All?rights?reserved.
??The?MySQL?Connector/J?is?licensed?under?the?terms?of?the?GPLv2
???like?most?MySQL?Connectors.
??There?are?special?exceptions?to?the?terms?and?conditions?of?the?GPLv2?as?it?is?applied?to
??this?software?see?the?FLOSS?License?Exception
??.
??This?program?is?free?software;?you?can?redistribute?it?and/or?modify?it?under?the?terms
??of?the?GNU?General?Public?License?as?published?by?the?Free?Software?Foundation;?version?2
??of?the?License.
??This?program?is?distributed?in?the?hope?that?it?will?be?useful?but?WITHOUT?ANY?WARRANTY;
??without?even?the?implied?warranty?of?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.
??See?the?GNU?General?Public?License?for?more?details.
??You?should?have?received?a?copy?of?the?GNU?General?Public?License?along?with?this
??program;?if?not?write?to?the?Free?Software?Foundation?Inc.?51?Franklin?St?Fifth
??Floor?Boston?MA?02110-1301??USA
?*/
package?com.mysql.jdbc;
import?java.lang.ref.Reference;
import?com.mysql.jdbc.NonRegisteringDriver.ConnectionPhantomReference;
public?class?AbandonedConnectionCleanupThread?extends?Thread?{
private?static?boolean?running?=?true;
private?static?Thread?threadRef?=?null;
public?AbandonedConnectionCleanupThread()?{
super(“Abandoned?connection?cleanup?thread“);
}
public?void?run()?{
threadRef?=?this;
threadRef.setContextClassLoader(null);
while?(running)?{
try?{
Reference?extends?ConnectionImpl>?ref?=?NonRegisteringDriver.refQueue.remove(100);
if?(ref?!=?null)?{
try?{
((ConnectionPhantomReference)?ref).cleanup();
}?finally?{
NonRegisteringDriver.connectionPhantomRefs.remove(ref);
}
}
}?catch?(Exception?ex)?{
//?no?where?to?really?log?this?if?we‘re?static
}
}
}
public?static?void?shutdown()?throws?InterruptedException?{
running?=?false;
if?(threadRef?!=?null)?{
threadRef.interrupt();
threadRef.join();
threadRef?=?null;
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2118??2013-03-11?07:20??src\com\mysql\jdbc\AbandonedConnectionCleanupThread.java
?????文件???????2359??2013-03-11?07:20??src\com\mysql\jdbc\AssertionFailedException.java
?????文件???????2401??2013-03-11?07:20??src\com\mysql\jdbc\authentication\MysqlClearPasswordPlugin.java
?????文件???????3219??2013-03-11?07:20??src\com\mysql\jdbc\authentication\MysqlNativePasswordPlugin.java
?????文件???????2703??2013-03-11?07:20??src\com\mysql\jdbc\authentication\MysqlOldPasswordPlugin.java
?????文件???????2392??2013-03-11?07:20??src\com\mysql\jdbc\authentication\Sha256PasswordPlugin.java
?????文件???????4713??2013-03-11?07:20??src\com\mysql\jdbc\AuthenticationPlugin.java
?????文件???????3580??2013-03-11?07:20??src\com\mysql\jdbc\BalanceStrategy.java
?????文件???????3466??2013-03-11?07:20??src\com\mysql\jdbc\BestResponseTimeBalanceStrategy.java
?????文件??????12870??2013-03-11?07:20??src\com\mysql\jdbc\Blob.java
?????文件??????18731??2013-03-11?07:20??src\com\mysql\jdbc\BlobFromLocator.java
?????文件??????17755??2013-03-11?07:20??src\com\mysql\jdbc\Buffer.java
?????文件??????20866??2013-03-11?07:20??src\com\mysql\jdbc\BufferRow.java
?????文件???????8491??2013-03-11?07:20??src\com\mysql\jdbc\ByteArrayRow.java
?????文件???????1314??2013-03-11?07:20??src\com\mysql\jdbc\CacheAdapter.java
?????文件???????1400??2013-03-11?07:20??src\com\mysql\jdbc\CacheAdapterFactory.java
?????文件???????1923??2013-03-11?07:20??src\com\mysql\jdbc\CachedResultSetme
?????文件??????78086??2013-03-11?07:20??src\com\mysql\jdbc\CallableStatement.java
?????文件??????51750??2013-03-11?07:20??src\com\mysql\jdbc\CharsetMapping.java
?????文件???????2477??2013-03-11?07:20??src\com\mysql\jdbc\Charsets.properties
?????文件???????8542??2013-03-11?07:20??src\com\mysql\jdbc\Clob.java
?????文件???????3369??2013-03-11?07:20??src\com\mysql\jdbc\CommunicationsException.java
?????文件???????8201??2013-03-11?07:20??src\com\mysql\jdbc\CompressedInputStream.java
?????文件????????504??2013-03-11?07:20??src\com\mysql\jdbc\configs\3-0-Compat.properties
?????文件????????114??2013-03-11?07:20??src\com\mysql\jdbc\configs\5-0-Compat.properties
?????文件????????100??2013-03-11?07:20??src\com\mysql\jdbc\configs\clusterba
?????文件????????478??2013-03-11?07:20??src\com\mysql\jdbc\configs\coldFusion.properties
?????文件????????146??2013-03-11?07:20??src\com\mysql\jdbc\configs\fullDebug.properties
?????文件????????864??2013-03-11?07:20??src\com\mysql\jdbc\configs\maxPerformance.properties
?????文件????????248??2013-03-11?07:20??src\com\mysql\jdbc\configs\solarisMaxPerformance.properties
............此處省略277個文件信息
評論
共有 條評論