All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.sql.SQLException
|
+----java.sql.SQLWarning
|
+----java.sql.DataTruncation
When JDBC unexpectedly truncates a data value, it reports a DataTruncation warning (on reads) or throws a DataTruncation exception (on writes).
The SQLstate for a DataTruncation is "01004".
Create a DataTruncation object.
method DataTruncation(index=int, -
parameter=boolean, -
read=boolean, -
dataSize=int, -
transferSize=int) public
Create a DataTruncation object. The SQLState is initialized to 01004, the reason is set to "Data truncation" and the vendorCode is set to the SQLException default.
method getIndex() returns int public
This may be -1 if the column or parameter index is unknown, in which case the "parameter" and "read" fields should be ignored.
method getParameter() returns boolean public
method getRead() returns boolean public
method getDataSize() returns int public
method getTransferSize() returns int public
All Packages Class Hierarchy This Package Previous Next Index