|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.BatchUpdateException
public class BatchUpdateException
¹èÄ¡ °»½Å Á¶ÀÛÁß¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» ¶§¿¡ ¹ß»ýµÇ´Â ¿¹¿ÜÀÔ´Ï´Ù. BatchUpdateException
´Â
SQLException
¿¡ ÀÇÇØ Á¦°øµÇ´Â Á¤º¸¿¡ °¡¼¼ÇØ, ¹èÄ¡ °»½ÅÁß¿¡ Á¤»óÀûÀ¸·Î ½ÇÇàµÈ ¸ðµç Ä¿¸àµå, Áï, ¿¡·¯°¡ ¹ß»ýÇϱâ Àü¿¡ ½ÇÇàµÈ ¸ðµç Ä¿¸àµåÀÇ °»½Å Ä«¿îÆ®¸¦ Á¦°øÇÕ´Ï´Ù. °»½Å Ä«¿îÆ®ÀÇ ¹è¿¿¡¼ÀÇ ¿ä¼ÒÀÇ ¼ø¼´Â Ä¿¸àµå°¡ ¹èÄ¡¿¡ Ãß°¡µÇ¾úÀ» ¶§ÀÇ ¼ø¼°¡ µË´Ï´Ù.
¹èÄ¡ °»½ÅÀÇ Ä¿¸àµå°¡ ¿Ã¹Ù¸£°Ô ½ÇÇàµÇÁö ¾Ê°í BatchUpdateException
°¡ Throw µÈµÚ µå¶óÀ̹ö´Â ¹èÄ¡¿¡ ³²¾Æ ÀÖ´Â Ä¿¸àµåÀÇ Ã³¸®¸¦ °è¼ÓÇÏ´Â Àϵµ, ÁßÁöÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ½ÇÆÐ ÈÄ¿¡ µå¶óÀ̹ö°¡ 󸮸¦ °è¼ÓÇÏ´Â °æ¿ì, ¸Þ¼µå BatchUpdateException.getUpdateCounts
¿¡ ÀÇÇØ ¸®ÅϵÈ
¹è¿Àº ¿¡·¯±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ Ä¿¸àµåÀÇ ¿ä¼Ò ¸¸ÀÌ ¾Æ´Ï°í, ¹èÄ¡ÀÇ ÀüÄ¿¸àµåÀÇ ¿ä¼Ò¸¦ Æ÷ÇÔÇϰí ÀÖ½À´Ï´Ù. µå¶óÀ̹ö°¡ Ä¿¸àµåÀÇ Ã³¸®¸¦ °è¼ÓÇÏ´Â °æ¿ì, ½ÇÆÐÇÑ Ä¿¸àµåÀÇ ¹è¿ ¿ä¼Ò´Â ¸ðµÎ Statement.EXECUTE_FAILED
°¡ µË´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
BatchUpdateException ()
reason, SQLState ¹× °»½Å Ä«¿îÆ®°¡ null , º¥´õ Äڵ尡 0¿¡ ÃʱâȵÈ, BatchUpdateException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
BatchUpdateException (int[] updateCounts)
reason¿Í SQLState°¡ null , º¥´õ Äڵ尡 0 À¸·Î ÃʱâȵÈ, BatchUpdateException À»
±¸ÃàÇÕ´Ï´Ù. |
|
BatchUpdateException (String reason,
int[] updateCounts)
reason , updateCounts , null
SQLState ¹× 0
vendorCode ·Î ÃʱâȵÈ, BatchUpdateException À»
±¸ÃàÇÕ´Ï´Ù. |
|
BatchUpdateException (String reason,
String SQLState,
int[] updateCounts)
ÁöÁ¤µÈ Àμö ( reason , SQLState , updateCounts ) ¹× º¥´õ ÄÚµå 0 À¸·Î ÃʱâȵÈ, BatchUpdateException À»
±¸ÃàÇÕ´Ï´Ù. |
|
BatchUpdateException (String reason,
String SQLState,
int vendorCode,
int[] updateCounts)
¿ÏÀü ÁöÁ¤ÀÇ BatchUpdateException °´Ã¼¸¦ ±¸ÃàÇØ, ÁöÁ¤µÈ °ªÀ¸·Î ÃʱâÈÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
int[] |
getUpdateCounts ()
¹èÄ¡ °»½Å³»ÀÇ °»½Å¹® °¡¿îµ¥, ÀÌ ¿¹¿Ü°¡ ¹ß»ýÇϱâ±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ °Í ¸ðµÎ¿¡ ´ëÇÑ °»½Å °è»êÇϱ⠽ÃÀÛÇÕ´Ï´Ù. |
Ŭ·¡½º 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 BatchUpdateException(String reason, String SQLState, int vendorCode, int[] updateCounts)
BatchUpdateException
°´Ã¼¸¦ ±¸ÃàÇØ, ÁöÁ¤µÈ °ªÀ¸·Î ÃʱâÈÇÕ´Ï´Ù.
reason
- ¿¡·¯ÀÇ ¼³¸íSQLState
- ¿¡·¯¸¦ ½Äº°ÇÏ´Â X/OPEN ÄÚµåvendorCode
- ƯÁ¤ÀÇ µ¥ÀÌŸº£À̽º º¥´õÀÇ ¿¹¿Ü ÄÚµåupdateCounts
- int
¹è¿. °¢ ¿ä¼Ò´Â ¿¹¿Ü°¡ Throw µÉ ¶§±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ SQL Ä¿¸àµåÀÇ °»½Å Ä«¿îÆ®¸¦ ³ªÅ¸³»´Âpublic BatchUpdateException(String reason, String SQLState, int[] updateCounts)
reason
, SQLState
, updateCounts
) ¹× º¥´õ ÄÚµå 0 À¸·Î ÃʱâȵÈ, BatchUpdateException
À»
±¸ÃàÇÕ´Ï´Ù.
reason
- ¿¹¿ÜÀÇ ¼³¸íSQLState
- ¿¹¿Ü¸¦ ½Äº°ÇÏ´Â X/OPEN ÄÚµåupdateCounts
- int
¹è¿. °¢ ¿ä¼Ò´Â ¿¹¿Ü°¡ Throw µÉ ¶§±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ SQL Ä¿¸àµåÀÇ °»½Å Ä«¿îÆ®¸¦ ³ªÅ¸³»´Âpublic BatchUpdateException(String reason, int[] updateCounts)
reason
, updateCounts
, null
SQLState ¹× 0
vendorCode ·Î ÃʱâȵÈ, BatchUpdateException
À»
±¸ÃàÇÕ´Ï´Ù.
reason
- ¿¹¿ÜÀÇ ¼³¸íupdateCounts
- int
¹è¿. °¢ ¿ä¼Ò´Â ¿¹¿Ü°¡ Throw µÉ ¶§±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ SQL Ä¿¸àµåÀÇ °»½Å Ä«¿îÆ®¸¦ ³ªÅ¸³»´Âpublic BatchUpdateException(int[] updateCounts)
null
, º¥´õ Äڵ尡 0 À¸·Î ÃʱâȵÈ, BatchUpdateException
À»
±¸ÃàÇÕ´Ï´Ù.
updateCounts
- int
¹è¿. °¢ ¿ä¼Ò´Â ¿¹¿Ü°¡ Throw µÉ ¶§±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ SQL Ä¿¸àµåÀÇ °»½Å Ä«¿îÆ®¸¦ ³ªÅ¸³»´Âpublic BatchUpdateException()
null
, º¥´õ Äڵ尡 0¿¡ ÃʱâȵÈ, BatchUpdateException
°´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
¸Þ¼µåÀÇ »ó¼¼ |
---|
public int[] getUpdateCounts()
BatchUpdateException
°¡ Throw µÉ ¶§±îÁö Á¤»óÀûÀ¸·Î ½ÇÇàµÈ ¸ðµç Ä¿¸àµå¿¡ ´ëÇÑ °»½Å Ä«¿îÆ®¸¦ Æ÷ÇÔÇϰí ÀÖ½À´Ï´Ù.
ÀÌ ¸Þ¼µå¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ¹Ýȯ°ªÀº Java 2 SDK, Standard Edition, ¹öÀü
1.3 À¸·Î º¯°æµÇ¾ú½À´Ï´Ù. À̰ÍÀº, BatchUpdateException
°´Ã¼°¡ Throw µÈ µÚµµ ¹èÄ¡ °»½Å³»ÀÇ Ä¿¸àµåÀÇ Ã³¸®¸¦ °è¼ÓÇÑ´Ù, ¶ó°í ÇÏ´Â »õ·Î¿î ¿É¼Ç¿¡ ÀûÀÀÇϱâ À§Çؼ ÇàÇØÁ³½À´Ï´Ù.
int
ÇüÀÇ ¹è¿. ´Ù¸¸, ¿¡·¯ Èĵµ µå¶óÀ̹ö°¡ Ä¿¸àµåÀÇ Ã³¸®¸¦ °è¼ÓÇÏ´Â °æ¿ì´Â ¹èÄ¡³»ÀÇ °¢ Ä¿¸àµå¿¡ ´ëÇØ¼ ´ÙÀ½ÀÇ ¸î°³ÀÇ °ªÀÌ Æ÷ÇԵȴÙ. Statement.SUCCESS_NO_INFO
Statement.EXECUTE_FAILED
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.