public class SQLClientInfoException extends SQLException
SQLException时引发一个或多个客户信息属性无法设置在
Connection。除了提供
SQLException信息,一
SQLClientInfoException提供客户名单信息属性未设置。一些数据库不允许多个客户端信息属性进行设置自动。对于那些数据库,它可能是一些客户信息的性质已经确定即使
Connection.setClientInfo方法抛出一个异常。应用程序可以使用
getFailedProperties 方法检索客户名单信息属性未设置。性能是通过
Map<String,ClientInfoStatus>到适当的
SQLClientInfoException构造函数确定。
ClientInfoStatus,
Connection.setClientInfo(java.lang.String, java.lang.String),
Serialized Form
| Constructor and Description |
|---|
SQLClientInfoException()
构建了一个
SQLClientInfoException对象。
|
SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException对象与一个给定的
failedProperties初始化。
|
SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException对象与一个给定的
cause和
failedProperties初始化。
|
SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException对象与一个给定的
reason和
failedProperties初始化。
|
SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException对象初始化一个给定的
reason,
cause和
failedProperties。
|
SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException对象与一个给定的
reason,
SQLState初始化,
vendorCode和
failedProperties。
|
SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException对象与一个给定的
reason,
SQLState,
cause初始化,
vendorCode和
failedProperties。
|
SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException对象初始化一个给定的
reason,
SQLState和
failedProperties。
|
SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException对象与一个给定的
reason,
SQLState初始化,
cause和
failedProperties。
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ClientInfoStatus> |
getFailedProperties()
返回无法设置的客户端信息属性的列表。
|
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SQLClientInfoException()
SQLClientInfoException对象。的
reason,
SQLState,和failedproperties列表初始化为
null和厂商代码初始化为0。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
public SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException对象与一个给定的
failedProperties初始化。的
reason和
SQLState初始化为
null和厂商代码初始化为0。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException对象与一个给定的
cause和
failedProperties初始化。的
reason初始化为
null如果
cause==null或
cause.toString()如果
cause!=null和厂商代码初始化为0。
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus定义代码的原因
cause -(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException对象与一个给定的
reason和
failedProperties初始化。的
SQLState初始化为
null和厂商代码初始化为0。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
reason -描述的例外
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException对象初始化一个给定的
reason,
cause和
failedProperties。的
SQLState初始化为
null和厂商代码初始化为0。
reason -描述的例外
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus定义代码的原因
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException对象初始化一个给定的
reason,
SQLState和
failedProperties。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。供应商代码被初始化为0。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException对象与一个给定的
reason,
SQLState初始化,
cause和
failedProperties。供应商代码被初始化为0。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus定义代码的原因
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException对象与一个给定的
reason,
SQLState初始化,
vendorCode和
failedProperties。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
vendorCode -数据库供应商特定的异常代码
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException对象与一个给定的
reason,
SQLState,
cause初始化,
vendorCode和
failedProperties。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
vendorCode -数据库供应商特定的异常代码
failedProperties -Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus定义代码的原因
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public Map<String,ClientInfoStatus> getFailedProperties()
ClientInfoStatus
定义原因代码
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.