ca.idms.qcli
Class QcliDataTruncation

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by ca.idms.io.DataTruncationException
                  extended by ca.idms.qcli.QcliDataTruncation
All Implemented Interfaces:
java.io.Serializable

public class QcliDataTruncation
extends DataTruncationException

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.

Version:
2.00, 12/19/99
Author:
Dave Ross
See Also:
Serialized Form

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

QcliDataTruncation

public QcliDataTruncation()
Constructs a new QcliDataTruncation.


QcliDataTruncation

public QcliDataTruncation(int data,
                          int tran,
                          int index)
Constructs a new QcliDataTruncation.

Parameters:
data - number of bytes that should have been written.
tran - number of bytes acutally written.
index - column or parameter index.
Method Detail

getIndex

public int getIndex()
The index of the column or parameter that was truncated.


getParameter

public boolean getParameter()
Is this a truncated parameter value?


getRead

public boolean getRead()
Is this a read truncation?


toString

public java.lang.String toString()
Overrides base method.

Overrides:
toString in class DataTruncationException


Copyright © 2009 CA, All rights reserved