|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
java.sql.DataTruncation
public class DataTruncation
An exception which is thrown when a JDBC driver unexpectedly truncates a data
value either when reading or when writing data.
The SQLState value for a DataTruncation is 01004.
| Constructor Summary | |
|---|---|
DataTruncation(int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
Creates a DataTruncation. |
|
| Method Summary | |
|---|---|
int |
getDataSize()
Gets the number of bytes of data that should have been read/written. |
int |
getIndex()
Gets the index of the column or of the parameter that was truncated. |
boolean |
getParameter()
Gets whether the value truncated was a parameter value or a column value. |
boolean |
getRead()
Gets whether the value was truncated on a read operation or a write operation |
int |
getTransferSize()
Gets the number of bytes of data that was actually read or written |
| Methods inherited from class java.sql.SQLWarning |
|---|
getNextWarning, setNextWarning |
| Methods inherited from class java.sql.SQLException |
|---|
getErrorCode, getNextException, getSQLState, setNextException |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataTruncation(int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
index - the Index value of the column value or parameter that was
truncatedparameter - true if it was a Parameter value that was truncated, false
otherwiseread - true if the truncation occurred on a read operation, false
otherwisedataSize - the original size of the truncated datatransferSize - the size of the data after truncation| Method Detail |
|---|
public int getDataSize()
public int getIndex()
public boolean getParameter()
public boolean getRead()
public int getTransferSize()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||