<html> <head> <title>Exception DataTruncation</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="DataTruncation-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#Elements" class="navisub">Elements' Summary</a></td> <td class="navisub"><a href="#ElementDetails" class="navisub">Elements' Details</a></td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">sdbc</a> :: </p> </td> </tr> <tr> <td class="title">exception DataTruncation</td> </tr> <tr> <td><dl> <dt><b>Base Hierarchy</b></dt> <dd><pre style="font-family:monospace;"><strong>DataTruncation</strong> ┗ <a href="SQLWarning.html">SQLWarning</a> ┗ <a href="SQLException.html">SQLException</a> ┗ ::com::sun::star::<a href="../uno/module-ix.html">uno</a>::<a href="../uno/Exception.html">Exception</a> </pre></dd> </dl> </td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>reports a DataTruncation warning, on reads, or is thrown as a DataTruncation exception, on writes, when a data value is unexpectedly truncated. </dd> <dd><p> The SQL state for a <code>DataTruncation</code> is <code>01004</code> . </p> </dd> </dl> </td> </tr> </table> <hr> <a name="Elements"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Elements' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#Index">Index</a></td> <td class="imsum_right">is the index of the parameter or column value. </td> </tr> <tr> <td class="imsum_left"><a href="#IsParameter">IsParameter</a></td> <td class="imsum_right">is <b>true</b> if a parameter value is truncated. </td> </tr> <tr> <td class="imsum_left"><a href="#DuringRead">DuringRead</a></td> <td class="imsum_right">is <b>true</b> if a read was truncated. </td> </tr> <tr> <td class="imsum_left"><a href="#DataSize">DataSize</a></td> <td class="imsum_right">contains the number of bytes of data that should have been transferred. This number may be approximate if data conversions were being performed. The value may be <code>-1</code> if the size is unknown. </td> </tr> <tr> <td class="imsum_left"><a href="#TransferSize">TransferSize</a></td> <td class="imsum_right">contains the number of bytes of data actually transferred. The value may be <code>-1</code> if the size is unknown. </td> </tr> </table> <a name="ElementDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Elements' Details</td> </tr> <tr> <td class="imdetail"><a name="Index" class="membertitle">Index</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>Index</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>is the index of the parameter or column value. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="IsParameter" class="membertitle">IsParameter</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>boolean <b>IsParameter</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>is <b>true</b> if a parameter value is truncated. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="DuringRead" class="membertitle">DuringRead</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>boolean <b>DuringRead</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>is <b>true</b> if a read was truncated. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="DataSize" class="membertitle">DataSize</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>DataSize</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the number of bytes of data that should have been transferred. This number may be approximate if data conversions were being performed. The value may be <code>-1</code> if the size is unknown. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="TransferSize" class="membertitle">TransferSize</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>TransferSize</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the number of bytes of data actually transferred. The value may be <code>-1</code> if the size is unknown. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p> </div> <!-- id="adc-idlref" --> </body> </html>