|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
public interface Clob
SQL CLOB
ÇüÅÂÀÇ JavaTM ÇÁ·Î±×·¥ ¾ð¾î¿¡¼ÀÇ ¸ÅÇÎÀÔ´Ï´Ù. SQL
CLOB
´Â
ij¸¯ÅÍ ¶óÁö °´Ã¼¸¦ µ¥ÀÌŸº£À̽º Å×À̺íÀÇ Çà¿¡ ·Ä°ªÀ¸·Î
Æ÷ÇÔÇÏ´Â ºôÆ®ÀÎÇüÀÔ´Ï´Ù. µðÆúÆ®¿¡¼´Â µå¶óÀ̹ö´Â SQL locator(CLOB)
¸¦ »ç¿ëÇØ Clob
°´Ã¼¸¦ ±¸ÇöÇÕ´Ï´Ù. Áï, Clob
°´Ã¼´Â µ¥ÀÌÅÍ ±× ÀÚü°¡ ¾Æ´Ï°í SQL
CLOB
µ¥ÀÌÅÍ¿¡ÀÇ ³í¸® Æ÷ÀÎÅ͸¦ Æ÷ÇÔÇÕ´Ï´Ù. Clob
°´Ã¼´Â
±×°ÍÀÌ »ý¼ºµÈ Æ®·£Àè¼Ç(transaction)ÀÇ ±â°£Áß¿¡ À¯È¿ÇÕ´Ï´Ù.
Clob
ÀÎÅÍÆäÀ̽º´Â SQL
CLOB
(ij¸¯ÅÍ ¶óÁö °´Ã¼) Ä¡ÀÇ ±æÀ̸¦ ÃëµæÇϱâ À§ÇÑ ¸Þ¼µå, Ŭ¶óÀÌ¾ðÆ®·Î CLOB
°ªÀ» »ý¼ºÇϱâ À§ÇÑ ¸Þ¼µå ¹× CLOB
Ä¡³»¿¡¼ ºÎºÐ ij¸¯ÅÍ ¶óÀÎ ¶Ç´Â CLOB
°´Ã¼¸¦ °Ë»öÇϱâ À§ÇÑ ¸Þ¼µå¸¦ Á¦°øÇÕ´Ï´Ù. ResultSet
,
CallableStatement
,
PreparedStatement
°¢ ÀÎÅÍÆäÀ̽ºÀÇ ¸Þ¼µå (getClob
¹× setClob
µî)¸¦ »ç¿ëÇϸé, ÇÁ·Î±×·¡¸Ó´Â SQL
CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ
ÀÌ ÀÎÅÍÆäÀ̽º´Â CLOB
°ªÀ» °»½ÅÇϱâ À§ÇÑ ¸Þ¼µå¸¦ °®Ãß°í ÀÖ½À´Ï´Ù.
¸Þ¼µå °³¿ä | |
---|---|
InputStream |
getAsciiStream ()
ÀÌ Clob °´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB °ªÀ» ASCII ½ºÆ®¸²·Î¼ ²¨³À´Ï´Ù. |
Reader |
getCharacterStream ()
ÀÌ Clob °´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB °ªÀ» java.io.Reader °´Ã¼ (¶Ç´Â ¹®ÀÚÀÇ ½ºÆ®¸²)·Î¼ ²¨³À´Ï´Ù. |
String |
getSubString (long pos,
int length)
ÀÌ Clob °´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB Ä¡³»ÀÇ ÁöÁ¤µÈ ºÎºÐ ij¸¯ÅÍ ¶óÀÎÀÇ º¹»çº»À» ÃëµæÇÕ´Ï´Ù. |
long |
length ()
ÀÌ Clob °´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB °ªÀÇ ¹®ÀÚ¼ö¸¦ ÃëµæÇÕ´Ï´Ù. |
long |
position (Clob searchstr,
long start)
ÀÌ Clob °´Ã¼³»¿¡¼
ÁöÁ¤µÈ Clob °´Ã¼ searchstr °¡ ³ªÅ¸³ª´Â ¹®ÀÚ À§Ä¡¸¦ ÃëµæÇÕ´Ï´Ù. |
long |
position (String searchstr,
long start)
ÀÌ Clob °´Ã¼·Î ³ªÅ¸³»Áö´Â SQL CLOB Ä¡³»¿¡¼
ÁöÁ¤µÈ ºÎºÐ ij¸¯ÅÍ ¶óÀÎ searchstr °¡ ³ªÅ¸³ª´Â ¹®ÀÚ À§Ä¡¸¦ ÃëµæÇÕ´Ï´Ù. |
OutputStream |
setAsciiStream (long pos)
ÀÌ Clob °´Ã¼°¡ ³ªÅ¸³»´Â CLOB Ä¡¿¡ ASCII ¹®ÀÚ¸¦ Ãâ·ÂÇϱâ À§Çؼ »ç¿ëÇÏ´Â ½ºÆ®¸²À» ÃëµæÇÕ´Ï´Ù. |
Writer |
setCharacterStream (long pos)
ÀÌ Clob °´Ã¼°¡ ³ªÅ¸³»´Â CLOB Ä¡¿¡ Unicode ¹®ÀÚ¸¦ Ãâ·ÂÇϱâ À§Çؼ »ç¿ëÇÏ´Â ½ºÆ®¸²À» ÃëµæÇÕ´Ï´Ù. |
int |
setString (long pos,
String str)
ÀÌ Clob °´Ã¼°¡ ÁöÁ¤ÇÏ´Â CLOB Ä¡¿¡ ÁöÁ¤µÈ Java String ¸¦ pos
À§Ä¡¿¡ Ãâ·ÂÇÕ´Ï´Ù. |
int |
setString (long pos,
String str,
int offset,
int len)
ÀÌ Clob °¡ ³ªÅ¸³»´Â CLOB Ä¡¿¡
offset ¹®ÀڷκÎÅÍ ½ÃÀ۵Ǵ str
len ¹®ÀÚ¸¦ Ãâ·ÂÇÕ´Ï´Ù. |
void |
truncate (long len)
ÀÌ Clob °¡ ÁöÁ¤ÇÏ´Â CLOB °ªÀ» len ¹®ÀÚÀÇ ±æÀÌ¿¡ Àý¾àÇÕ´Ï´Ù. |
¸Þ¼µåÀÇ »ó¼¼ |
---|
long length() throws SQLException
Clob
°´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB
°ªÀÇ ¹®ÀÚ¼ö¸¦ ÃëµæÇÕ´Ï´Ù.
CLOB
±æÀÌ
SQLException
- CLOB
°ªÀÇ ±æÀÌ¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìString getSubString(long pos, int length) throws SQLException
Clob
°´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB
Ä¡³»ÀÇ ÁöÁ¤µÈ ºÎºÐ ij¸¯ÅÍ ¶óÀÎÀÇ º¹»çº»À» ÃëµæÇÕ´Ï´Ù. ºÎºÐ ij¸¯ÅÍ ¶óÀÎÀº, pos
À§Ä¡·ÎºÎÅÍ length
·Î
ÁöÁ¤µÈ ¼ö°¡ ¿¬¼ÓÇÏ´Â ¹®ÀÚÀÔ´Ï´Ù.
pos
- ÃßÃâµÇ´Â ºÎºÐ ij¸¯ÅÍ ¶óÀÎÀÇ ÃÖÃÊÀÇ ¹®ÀÚ. ÃÖÃÊÀÇ ¹®ÀÚÀÇ À§Ä¡´Â 1length
- Ä«ÇǵǴ ¿¬¼ÓÇÏ´Â ¹®ÀÚ¼ö
Clob
°´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB
Ä¡³»ÀÇ ÁöÁ¤µÈ ºÎºÐ ij¸¯ÅÍ ¶óÀÎÀÎ String
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìReader getCharacterStream() throws SQLException
Clob
°´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB
°ªÀ» java.io.Reader
°´Ã¼ (¶Ç´Â ¹®ÀÚÀÇ ½ºÆ®¸²)·Î¼ ²¨³À´Ï´Ù.
CLOB
µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÏ´Â java.io.Reader
°´Ã¼
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìsetCharacterStream(long)
InputStream getAsciiStream() throws SQLException
Clob
°´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ CLOB
°ªÀ» ASCII ½ºÆ®¸²·Î¼ ²¨³À´Ï´Ù.
CLOB
µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÏ´Â java.io.InputStream
°´Ã¼
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìsetAsciiStream(long)
long position(String searchstr, long start) throws SQLException
Clob
°´Ã¼·Î ³ªÅ¸³»Áö´Â SQL CLOB
Ä¡³»¿¡¼
ÁöÁ¤µÈ ºÎºÐ ij¸¯ÅÍ ¶óÀÎ searchstr
°¡ ³ªÅ¸³ª´Â ¹®ÀÚ À§Ä¡¸¦ ÃëµæÇÕ´Ï´Ù. start
À§Ä¡·ÎºÎÅÍ °Ë»öÀÌ °³½ÃµË´Ï´Ù.
searchstr
- °Ë»ö ´ë»óÀÇ ºÎºÐ ij¸¯ÅÍ ¶óÀÎstart
- °Ë»öÀ» °³½ÃÇÏ´Â À§Ä¡. ÃÖÃÊÀÇ À§Ä¡´Â 1
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìlong position(Clob searchstr, long start) throws SQLException
Clob
°´Ã¼³»¿¡¼
ÁöÁ¤µÈ Clob
°´Ã¼ searchstr
°¡ ³ªÅ¸³ª´Â ¹®ÀÚ À§Ä¡¸¦ ÃëµæÇÕ´Ï´Ù. start
À§Ä¡·ÎºÎÅÍ °Ë»öÀÌ °³½ÃµË´Ï´Ù.
searchstr
- °Ë»ö ´ë»óÀÇ Clob
°´Ã¼start
- °Ë»öÀ» °³½ÃÇÏ´Â À§Ä¡. ÃÖÃÊÀÇ À§Ä¡´Â 1
Clob
°´Ã¼°¡ ¹ß°ßµÈ À§Ä¡. ¹ß°ßµÇÁö ¾Ê¾Ò´ø °æ¿ì´Â -1. ÃÖÃÊÀÇ À§Ä¡´Â 1
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìint setString(long pos, String str) throws SQLException
Clob
°´Ã¼°¡ ÁöÁ¤ÇÏ´Â CLOB
Ä¡¿¡ ÁöÁ¤µÈ Java String
¸¦ pos
À§Ä¡¿¡ Ãâ·ÂÇÕ´Ï´Ù.
pos
- ÀÌ Clob
°´Ã¼°¡ ³ªÅ¸³»´Â CLOB
°ªÀÇ write¸¦ °³½ÃÇÏ´Â À§Ä¡str
- ÀÌ Clob
°´Ã¼°¡ ÁöÁ¤ÇÏ´Â CLOB
Ä¡¿¡ Ãâ·ÂÇØÁö´Â ij¸¯ÅÍ ¶óÀÎ
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìint setString(long pos, String str, int offset, int len) throws SQLException
Clob
°¡ ³ªÅ¸³»´Â CLOB
Ä¡¿¡
offset
¹®ÀڷκÎÅÍ ½ÃÀ۵Ǵ str
len
¹®ÀÚ¸¦ Ãâ·ÂÇÕ´Ï´Ù.
pos
- ÀÌ CLOB
°´Ã¼¿¡ÀÇ write¸¦ °³½ÃÇÏ´Â À§Ä¡str
- ÀÌ Clob
°´Ã¼°¡ ³ªÅ¸³»´Â CLOB
Ä¡¿¡ Ãâ·ÂÇØÁö´Â ij¸¯ÅÍ ¶óÀÎoffset
- Ãâ·ÂÇØÁö´Â ¹®ÀÚÀÇ read¸¦ °³½ÃÇÏ´Â str
³»ÀÇ ¿ÀÇÁ¼Â(offset)len
- Ãâ·ÂÇØÁö´Â ¹®ÀÚ¼ö
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìOutputStream setAsciiStream(long pos) throws SQLException
Clob
°´Ã¼°¡ ³ªÅ¸³»´Â CLOB
Ä¡¿¡ ASCII ¹®ÀÚ¸¦ Ãâ·ÂÇϱâ À§Çؼ »ç¿ëÇÏ´Â ½ºÆ®¸²À» ÃëµæÇÕ´Ï´Ù. ½ºÆ®¸²Àº pos
À§Ä¡·ÎºÎÅÍ °³½ÃÇÕ´Ï´Ù.
pos
- ÀÌ CLOB
°´Ã¼¿¡ÀÇ write¸¦ °³½ÃÇÏ´Â À§Ä¡
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìgetAsciiStream()
Writer setCharacterStream(long pos) throws SQLException
Clob
°´Ã¼°¡ ³ªÅ¸³»´Â CLOB
Ä¡¿¡ Unicode ¹®ÀÚ¸¦ Ãâ·ÂÇϱâ À§Çؼ »ç¿ëÇÏ´Â ½ºÆ®¸²À» ÃëµæÇÕ´Ï´Ù. ½ºÆ®¸²Àº pos
À§Ä¡·ÎºÎÅÍ °³½ÃÇÕ´Ï´Ù.
pos
- CLOB
°ªÀÇ write¸¦ °³½ÃÇÏ´Â À§Ä¡
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìgetCharacterStream()
void truncate(long len) throws SQLException
Clob
°¡ ÁöÁ¤ÇÏ´Â CLOB
°ªÀ» len
¹®ÀÚÀÇ ±æÀÌ¿¡ Àý¾àÇÕ´Ï´Ù.
len
- CLOB
°ªÀ» Àý¾àÇÒ ¼ö ÀÖ´Â ±æÀÌ (¹ÙÀÌÆ® ´ÜÀ§)
SQLException
- CLOB
Ä¡¿¡ ¾×¼¼½º ÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.