|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.sql.SQLException
|
+--java.sql.SQLWarning
|
+--java.sql.DataTruncation
JDBC °¡ ¿¹±â ÇÏÁö ¾Ê°í µ¥ÀÌÅÍÀÇ °ªÀ» Àß¶ó ¹ö¸®´Â °æ¿ì¿¡, DataTruncation °æ°í¸¦ ÅëÁöÇÏ´Â (read½Ã)Àΰ¡, DataTruncation ¿¹¿Ü¸¦ ½½·Î¿ì ÇÏ´Â (±âÀÔ½Ã) ¿¹¿ÜÀÔ´Ï´Ù.
DataTruncation ¿¡ ´ëÇÑ SQLstate ´Â 01004 ÀÔ´Ï´Ù.
| »ý¼ºÀÚÀÇ °³¿ä | |
DataTruncation (int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
DataTruncation ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
int |
getDataSize ()
Àü¼Û µÇ¾î¾ß Çß´ø µ¥ÀÌÅÍÀÇ ¹ÙÀÌÆ®¼ö¸¦ ÃëµæÇÕ´Ï´Ù. |
int |
getIndex ()
ÁßÁöµÈ Ä÷³ ¶Ç´Â ÆÄ¶ó¹ÌÅÍÀÇ À妽º¸¦ ²¨³À´Ï´Ù. |
boolean |
getParameter ()
ÁßÁöµÈ °ªÀÌ ÆÄ¶ó¹ÌÅÍÄ¡¿´´ÂÁö Ä÷³Ä¡¿´´ÂÁö¸¦ ³ªÅ¸³À´Ï´Ù. |
boolean |
getRead ()
°ªÀÌ Àоîµé¿© ¶§¿¡ ÁßÁöµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³À´Ï´Ù. |
int |
getTransferSize ()
½ÇÁ¦·Î Àü¼Û µÈ µ¥ÀÌÅÍÀÇ ¹ÙÀÌÆ®¼ö¸¦ ÃëµæÇÕ´Ï´Ù. |
| Ŭ·¡½º java.sql. SQLWarning ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getNextWarning , setNextWarning |
| Ŭ·¡½º java.sql. SQLException ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getErrorCode , getNextException , getSQLState , setNextException |
| Ŭ·¡½º java.lang. Throwable ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| »ý¼ºÀÚÀÇ »ó¼¼ |
public DataTruncation(int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
DataTruncation ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. SQLState ´Â 01004 ¿¡ ÃʱâȵǾî ÀÌÀ¯¸¦ ³ªÅ¸³»´Â °ªÀº ¡¸Data truncation¡¹, vendorCode ´Â SQLException ÀÇ µðÆúÆ® °ª, ´Ù¸¥ Çʵå´Â ÁöÁ¤µÈ °ª¿¡ °¢°¢ ¼³Á¤µË´Ï´Ù.
index - ÆÄ¶ó¹ÌÅÍ ¶Ç´Â Ä÷³ÀÇ °ªÀÇ À妽ºparameter - ÆÄ¶ó¹ÌÅÍÀÇ °ªÀÌ ÁßÁöµÇ¾úÀ» °æ¿ì´Â trueread - read°¡ ÁßÁöµÇ¾úÀ» °æ¿ì´Â truedataSize - µ¥ÀÌÅÍÀÇ ¿øÀÇ »çÀÌÁîtransferSize - Áß´Ü ÈÄÀÇ »çÀÌÁî| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public int getIndex()
Ä÷³ ¶Ç´Â ÆÄ¶ó¹ÌÅÍÀÇ À妽º°¡ ºÒ¸íÀÇ °æ¿ì, ÀÌ °ªÀº -1 ÀÔ´Ï´Ù. ÀÌ °æ¿ì,parameter ¿Í read Çʵå´Â ¹«½ÃÇÏÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù.
public boolean getParameter()
true, Ä÷³ÀÇ °ªÀ̾úÀ» °æ¿ì´Â falsepublic boolean getRead()
true, ±âÀÔ½ÃÀÇ °æ¿ì´Â falsepublic int getDataSize()
-1 ÀÔ´Ï´Ù.
public int getTransferSize()
-1 ÀÔ´Ï´Ù.
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.