Aracılığıyla paylaş


DataTruncation Constructors

Definition

Overloads

DataTruncation(IntPtr, JniHandleOwnership)

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

DataTruncation(Int32, Boolean, Boolean, Int32, Int32)

Creates a DataTruncation object with the SQLState initialized to 01004 when read is set to true and 22001 when read is set to false, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values.

DataTruncation(Int32, Boolean, Boolean, Int32, Int32, Throwable)

Creates a DataTruncation object with the SQLState initialized to 01004 when read is set to true and 22001 when read is set to false, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values.

DataTruncation(IntPtr, JniHandleOwnership)

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

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

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

DataTruncation(Int32, Boolean, Boolean, Int32, Int32)

Creates a DataTruncation object with the SQLState initialized to 01004 when read is set to true and 22001 when read is set to false, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values.

[Android.Runtime.Register(".ctor", "(IZZII)V", "")]
public DataTruncation (int index, bool parameter, bool read, int dataSize, int transferSize);
[<Android.Runtime.Register(".ctor", "(IZZII)V", "")>]
new Java.Sql.DataTruncation : int * bool * bool * int * int -> Java.Sql.DataTruncation

Parameters

index
Int32

The index of the parameter or column value

parameter
Boolean

true if a parameter value was truncated

read
Boolean

true if a read was truncated

dataSize
Int32

the original size of the data

transferSize
Int32

the size after truncation

Attributes

Remarks

Creates a DataTruncation object with the SQLState initialized to 01004 when read is set to true and 22001 when read is set to false, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values. The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method.

Java documentation for java.sql.DataTruncation.DataTruncation(int, boolean, boolean, 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

DataTruncation(Int32, Boolean, Boolean, Int32, Int32, Throwable)

Creates a DataTruncation object with the SQLState initialized to 01004 when read is set to true and 22001 when read is set to false, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values.

[Android.Runtime.Register(".ctor", "(IZZIILjava/lang/Throwable;)V", "")]
public DataTruncation (int index, bool parameter, bool read, int dataSize, int transferSize, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(IZZIILjava/lang/Throwable;)V", "")>]
new Java.Sql.DataTruncation : int * bool * bool * int * int * Java.Lang.Throwable -> Java.Sql.DataTruncation

Parameters

index
Int32

The index of the parameter or column value

parameter
Boolean

true if a parameter value was truncated

read
Boolean

true if a read was truncated

dataSize
Int32

the original size of the data

transferSize
Int32

the size after truncation

cause
Throwable

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

Attributes

Remarks

Creates a DataTruncation object with the SQLState initialized to 01004 when read is set to true and 22001 when read is set to false, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values.

Added in 1.6.

Java documentation for java.sql.DataTruncation.DataTruncation(int, boolean, boolean, 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