com.mysql.jdbc
Class MysqlDataTruncation

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byjava.sql.SQLWarning
                  extended byjava.sql.DataTruncation
                      extended bycom.mysql.jdbc.MysqlDataTruncation
All Implemented Interfaces:
java.io.Serializable

public class MysqlDataTruncation
extends java.sql.DataTruncation

MySQL wrapper for DataTruncation until the server can support sending all needed information.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
MysqlDataTruncation(java.lang.String message, int index, boolean parameter, boolean read, int dataSize, int transferSize)
          Creates a new MysqlDataTruncation exception/warning.
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class java.sql.DataTruncation
getDataSize, getIndex, getParameter, getRead, getTransferSize
 
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, 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

MysqlDataTruncation

public MysqlDataTruncation(java.lang.String message,
                           int index,
                           boolean parameter,
                           boolean read,
                           int dataSize,
                           int transferSize)
Creates a new MysqlDataTruncation exception/warning.

Parameters:
message - the message from the server
index - of column or parameter
parameter - was a parameter?
read - was truncated on read?
dataSize - size requested
transferSize - size actually used
Method Detail

getMessage

public java.lang.String getMessage()