public class DataTruncation extends SQLWarning
| Constructor and Description |
|---|
DataTruncation(int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
This method initializes a new instance of
DataTruncation
with the specified values. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataSize()
This method returns the original size of the parameter or column that
was truncated.
|
int |
getIndex()
This method returns the index of the column or parameter that was
truncated.
|
boolean |
getParameter()
This method determines whether or not it was a parameter that was
truncated.
|
boolean |
getRead()
This method determines whether or not it was a column that was
truncated.
|
int |
getTransferSize()
This method returns the size of the parameter or column after it was
truncated.
|
getNextWarning, setNextWarninggetErrorCode, getNextException, getSQLState, setNextExceptionfillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DataTruncation(int index, boolean parameter, boolean read, int dataSize, int transferSize)
DataTruncation
with the specified values. The descriptive error message for this
exception will be "Data truncation", the SQL state will be "01004"
and the vendor specific error code will be set to 0.index - The index of the parameter or column that was truncated.parameter - true if a parameter was truncated,
false otherwise.read - true if a data column was truncated,
false otherwise.dataSize - The original size of the data.transferSize - The size of the data after truncation.public int getIndex()
public boolean getParameter()
true if a parameter was truncated, false
otherwise.public boolean getRead()
true if a column was truncated, false
otherwise.public int getDataSize()
public int getTransferSize()