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.
public DataTruncation(int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
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.
public int getIndex()
This may be -1 if the column or parameter index is unknown, in which case the "parameter" and "read" fields should be ignored.
public boolean getParameter()
public boolean getRead()
public int getDataSize()
public int getTransferSize()
All Packages Class Hierarchy This Package Previous Next Index