Get the number of bytes of data actually transferred.
DataTruncation
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.
Parameters:
index - The index of the parameter or column value
parameter - true if a parameter value was truncated
Get the number of bytes of data that should have been transferred.
This number may be approximate if data conversions were being
performed. The value may be "-1" if the size is unknown.
Returns:
the number of bytes of data that should have been transferred
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.