|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException ca.idms.io.DataTruncationException ca.idms.qcli.QcliDataTruncation
public class QcliDataTruncation
Thrown when data data is truncated while writing it to stream. This is an IOException so it can be thrown from the readNative and writeNative methods. The fields contain the same information as java.sql.DataTruncation, which is returned the JDBC driver. Variables are package so that each layer in Qcli can add relevant information easily.
Field Summary |
---|
Fields inherited from class ca.idms.io.DataTruncationException |
---|
dataSize, transferSize |
Constructor Summary | |
---|---|
QcliDataTruncation()
Constructs a new QcliDataTruncation. |
|
QcliDataTruncation(int data,
int tran,
int index)
Constructs a new QcliDataTruncation. |
Method Summary | |
---|---|
int |
getIndex()
The index of the column or parameter that was truncated. |
boolean |
getParameter()
Is this a truncated parameter value? |
boolean |
getRead()
Is this a read truncation? |
java.lang.String |
toString()
Overrides base method. |
Methods inherited from class ca.idms.io.DataTruncationException |
---|
getDataSize, getTransferSize |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QcliDataTruncation()
public QcliDataTruncation(int data, int tran, int index)
data
- number of bytes that should have been written.tran
- number of bytes acutally written.index
- column or parameter index.Method Detail |
---|
public int getIndex()
public boolean getParameter()
public boolean getRead()
public java.lang.String toString()
toString
in class DataTruncationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |