共用方式為


BatchUpdateException Constructors

Definition

Overloads

BatchUpdateException()

Constructs a BatchUpdateException object.

BatchUpdateException(Throwable)

Constructs a BatchUpdateException object initialized with a given cause.

BatchUpdateException(Int32[])

Constructs a BatchUpdateException object initialized with a given updateCounts.

BatchUpdateException(Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given cause and updateCounts.

BatchUpdateException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

BatchUpdateException(String, Int32[])

Constructs a BatchUpdateException object initialized with a given reason and updateCounts.

BatchUpdateException(String, Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given reason, cause and updateCounts.

BatchUpdateException(String, String, Int32[])

Constructs a BatchUpdateException object initialized with a given reason, SQLState and updateCounts.

BatchUpdateException(String, String, Int32, Int32[])

Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCode and updateCounts.

BatchUpdateException(String, String, Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given reason, SQLState,cause, and updateCounts.

BatchUpdateException(String, String, Int32, Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCodecause and updateCounts.

BatchUpdateException()

Constructs a BatchUpdateException object.

[Android.Runtime.Register(".ctor", "()V", "")]
public BatchUpdateException ();
Attributes

Remarks

Constructs a BatchUpdateException object. The reason, SQLState and updateCounts are initialized to null and the vendor code is initialized to 0. The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method.

Added in 1.2.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(Throwable)

Constructs a BatchUpdateException object initialized with a given cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public BatchUpdateException (Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Sql.BatchUpdateException : Java.Lang.Throwable -> Java.Sql.BatchUpdateException

Parameters

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given cause. The SQLState and updateCounts are initialized to null and the vendor code is initialized to 0. The reason is initialized to null if cause==null or to cause.toString() if cause!=null.

Added in 1.6.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(Int32[])

Constructs a BatchUpdateException object initialized with a given updateCounts.

[Android.Runtime.Register(".ctor", "([I)V", "")]
public BatchUpdateException (int[]? updateCounts);
[<Android.Runtime.Register(".ctor", "([I)V", "")>]
new Java.Sql.BatchUpdateException : int[] -> Java.Sql.BatchUpdateException

Parameters

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given updateCounts. initialized by a call to the Throwable#initCause(java.lang.Throwable) method. The reason and SQLState are initialized to null and the vendor code is initialized to 0.

Added in 1.2.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(int[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given cause and updateCounts.

[Android.Runtime.Register(".ctor", "([ILjava/lang/Throwable;)V", "")]
public BatchUpdateException (int[]? updateCounts, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "([ILjava/lang/Throwable;)V", "")>]
new Java.Sql.BatchUpdateException : int[] * Java.Lang.Throwable -> Java.Sql.BatchUpdateException

Parameters

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given cause and updateCounts. The SQLState is initialized to null and the vendor code is initialized to 0. The reason is initialized to null if cause==null or to cause.toString() if cause!=null.

Added in 1.6.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(int[], java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected BatchUpdateException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Sql.BatchUpdateException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Sql.BatchUpdateException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(String, Int32[])

Constructs a BatchUpdateException object initialized with a given reason and updateCounts.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[I)V", "")]
public BatchUpdateException (string? reason, int[]? updateCounts);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[I)V", "")>]
new Java.Sql.BatchUpdateException : string * int[] -> Java.Sql.BatchUpdateException

Parameters

reason
String

a description of the exception

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given reason and updateCounts. The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method. The SQLState is initialized to null and the vender code is initialized to 0.

Added in 1.2.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.String, int[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(String, Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given reason, cause and updateCounts.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[ILjava/lang/Throwable;)V", "")]
public BatchUpdateException (string? reason, int[]? updateCounts, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[ILjava/lang/Throwable;)V", "")>]
new Java.Sql.BatchUpdateException : string * int[] * Java.Lang.Throwable -> Java.Sql.BatchUpdateException

Parameters

reason
String

a description of the exception

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given reason, cause and updateCounts. The SQLState is initialized to null and the vendor code is initialized to 0.

Added in 1.6.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.String, int[], java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(String, String, Int32[])

Constructs a BatchUpdateException object initialized with a given reason, SQLState and updateCounts.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;[I)V", "")]
public BatchUpdateException (string? reason, string? SQLState, int[]? updateCounts);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;[I)V", "")>]
new Java.Sql.BatchUpdateException : string * string * int[] -> Java.Sql.BatchUpdateException

Parameters

reason
String

a description of the exception

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given reason, SQLState and updateCounts. The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method. The vendor code is initialized to 0.

Added in 1.2.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.String, java.lang.String, int[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(String, String, Int32, Int32[])

Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCode and updateCounts.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I[I)V", "")]
public BatchUpdateException (string? reason, string? SQLState, int vendorCode, int[]? updateCounts);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I[I)V", "")>]
new Java.Sql.BatchUpdateException : string * string * int * int[] -> Java.Sql.BatchUpdateException

Parameters

reason
String

a description of the error

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

vendorCode
Int32

an exception code used by a particular database vendor

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCode and updateCounts. The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method.

Added in 1.2.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.String, java.lang.String, int, int[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(String, String, Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given reason, SQLState,cause, and updateCounts.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;[ILjava/lang/Throwable;)V", "")]
public BatchUpdateException (string? reason, string? SQLState, int[]? updateCounts, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;[ILjava/lang/Throwable;)V", "")>]
new Java.Sql.BatchUpdateException : string * string * int[] * Java.Lang.Throwable -> Java.Sql.BatchUpdateException

Parameters

reason
String

a description of the exception

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given reason, SQLState,cause, and updateCounts. The vendor code is initialized to 0.

Added in 1.6.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.String, java.lang.String, int[], java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BatchUpdateException(String, String, Int32, Int32[], Throwable)

Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCodecause and updateCounts.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I[ILjava/lang/Throwable;)V", "")]
public BatchUpdateException (string? reason, string? SQLState, int vendorCode, int[]? updateCounts, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I[ILjava/lang/Throwable;)V", "")>]
new Java.Sql.BatchUpdateException : string * string * int * int[] * Java.Lang.Throwable -> Java.Sql.BatchUpdateException

Parameters

reason
String

a description of the error

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

vendorCode
Int32

an exception code used by a particular database vendor

updateCounts
Int32[]

an array of int, with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCodecause and updateCounts.

Added in 1.6.

Java documentation for java.sql.BatchUpdateException.BatchUpdateException(java.lang.String, java.lang.String, int, int[], java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to