|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public interface RowSetMetaData
RowSet °´Ã¼ÀÇ ¿¿¡ °üÇÑ Á¤º¸¸¦ Æ÷ÇÔÇÏ´Â °´Ã¼ÀÔ´Ï´Ù. ÀÌ ÀÎÅÍÆäÀ̽º´Â RowSetMetaData °´Ã¼ÀÇ °ªÀ» ¼³Á¤ÇÏ´Â ¸Þ¼µå·Î ResultSetMetaDataÀÎÅÍÆäÀ̽º¸¦ È®ÀåÇÕ´Ï´Ù. RowSetReader °´Ã¼¿¡ ÀÇÇØ RowSet °´Ã¼¿¡ µ¥ÀÌÅͰ¡ ÀÐÈ÷¸é, RowSetMetaData °´Ã¼°¡ ÀÛ¼ºµÇ¾îRowSetMetaDataÀÎÅÍÆäÀ̽ºÀÇ ¸Þ¼µå¸¦ »ç¿ëÇØ Ãʱâȵ˴ϴÙ. ±×¸®°í ¸®´õ¿¡ ÀÇÇØ RowSetMetaData °´Ã¼°¡ Çà ¼¼Æ®¿¡°Ô °Ç³×Áý´Ï´Ù.
¾îÇø®ÄÉÀ̼ÇÀÌ RowSet.execute ¸Þ¼µå¸¦ È£ÃâÇßÀ» ¶§¿¡
ÀÌ ÀÎÅÍÆäÀ̽ºÀÇ ¸Þ¼µå°¡ ³»ºÎÀûÀ¸·Î È£ÃâÇÕ´Ï´Ù. ¾îÇø®ÄÉÀÌ¼Ç ÇÁ·Î±×·¡¸Ó°¡ Á÷Á¢ »ç¿ëÇÒ °ÍÀº ¾ø½À´Ï´Ù.
| ÇÊµå °³¿ä |
|---|
| ÀÎÅÍÆäÀ̽º java.sql. ResultSetMetaData ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
|---|
columnNoNulls,
columnNullable,
columnNullableUnknown |
| ¸Þ¼µå °³¿ä | |
|---|---|
void |
setAutoIncrement (int columnIndex,
boolean property)
ÁöÁ¤ÇÑ ¿¿¡ ÀÚµ¿ÀûÀ¸·Î ¹øÈ£°¡ ÇÒ´çÇØÁúÁö ¾î¶³Áö (±× ¶§¹®¿¡(À§ÇØ) Àбâ Àü¿ëÀÏÁö ¾î¶³Áö)¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setCaseSensitive (int columnIndex,
boolean property)
ÁöÁ¤ÇÑ ¿·Î ´ë¹®ÀÚ¡¤¼Ò¹®ÀÚ¸¦ ±¸º°ÇÒÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setCatalogName (int columnIndex,
String catalogName)
ÁöÁ¤ÇÑ ¿ÀÇ Å×À̺íÀÇ Ä«Å»·Î±×¸íÀ» ÁöÁ¤µÈ String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì). |
void |
setColumnCount (int columnCount)
ÀÌ RowSet °´Ã¼ÀÇ ·Ä¼ö¸¦, ÁöÁ¤ÇÑ ¼ö·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setColumnDisplaySize (int columnIndex,
int size)
ÁöÁ¤µÈ ¿ÀÇ º¸Åë ÀÇ ÃÖ´ëÆø (¹®ÀÚ¼ö)À» ÁöÁ¤µÈ int·Î
¼³Á¤ÇÕ´Ï´Ù. |
void |
setColumnLabel (int columnIndex,
String label)
Àμâ¿Í Ç¥½Ã·Î »ç¿ëÇÏ´Â Ãßõ¿ÀÇ Å¸ÀÌÆ²À» ÁöÁ¤ÇÑ String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì). |
void |
setColumnName (int columnIndex,
String columnName)
ÁöÁ¤ÇÑ ¿ÀÇ À̸§À» ÁöÁ¤µÈ String·Î
¼³Á¤ÇÕ´Ï´Ù. |
void |
setColumnType (int columnIndex,
int SQLType)
ÁöÁ¤µÈ ¿ÀÇ SQL ÇüÀ» ÁöÁ¤ÇÑ ÇüÅ·Π¼³Á¤ÇÕ´Ï´Ù. |
void |
setColumnTypeName (int columnIndex,
String typeName)
ÁöÁ¤ÇÑ ¿ÀÇ, µ¥ÀÌÅÍ ¼Ò½º¿¡ °íÀ¯ÀÇ Çü¸íÀ» ÁöÁ¤µÈ String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì). |
void |
setCurrency (int columnIndex,
boolean property)
ÁöÁ¤ÇÑ ¿ÀÌ ±Ý¾×À» ³ªÅ¸³¾Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setNullable (int columnIndex,
int property)
ÁöÁ¤ÇÑ ¿ÀÇ °ªÀ» NULL·Î
¼³Á¤ÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setPrecision (int columnIndex,
int precision)
ÁöÁ¤µÈ ¿ÀÇ 10 ÁøÀÚ¸®¼ö¸¦, ÁöÁ¤µÈ int·Î
¼³Á¤ÇÕ´Ï´Ù. |
void |
setScale (int columnIndex,
int scale)
ÁöÁ¤µÈ ¿ÀÇ ¼Ò¼öÁ¡ ¾Æ·¡ÀÇ ÀÚ¸®¼ö¸¦, ÁöÁ¤µÈ int·Î
¼³Á¤ÇÕ´Ï´Ù. |
void |
setSchemaName (int columnIndex,
String schemaName)
ÁöÁ¤ÇÑ ¿ÀÇ Å×À̺í schemaÀÇ À̸§À» ÁöÁ¤µÈ String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì). |
void |
setSearchable (int columnIndex,
boolean property)
ÁöÁ¤µÈ ¿À» where Àý·Î »ç¿ëÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setSigned (int columnIndex,
boolean property)
ÁöÁ¤ÇÑ ¿ÀÌ ºÎÈ£ ÷ºÎ¼öÀÏÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setTableName (int columnIndex,
String tableName)
ÁöÁ¤ÇÑ ¿ÀÇ Å×À̺í¸íÀ» ÁöÁ¤µÈ String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì). |
| ÀÎÅÍÆäÀ̽º java.sql. ResultSetMetaData ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
getCatalogName,
getColumnClassName,
getColumnCount,
getColumnDisplaySize,
getColumnLabel,
getColumnName,
getColumnType,
getColumnTypeName,
getPrecision,
getScale,
getSchemaName,
getTableName,
isAutoIncrement,
isCaseSensitive,
isCurrency,
isDefinitelyWritable,
isNullable,
isReadOnly,
isSearchable,
isSigned,
isWritable |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
void setColumnCount(int columnCount)
throws SQLException
RowSet °´Ã¼ÀÇ ·Ä¼ö¸¦, ÁöÁ¤ÇÑ ¼ö·Î ¼³Á¤ÇÕ´Ï´Ù.
columnCount - ÀÌ RowSet °´Ã¼ÀÇ ·Ä¼ö
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setAutoIncrement(int columnIndex,
boolean property)
throws SQLException
RowSet °´Ã¼ÀÇ ¿ÀÌ µðÆúÆ®·Î ÀÌ °æ¿ì
¹øÈ£´Â ÀÚµ¿ÀûÀ¸·Î ÇÒ´çÇØÁöÁö ¾Ê½À´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty - ¿¿¡ ÀÚµ¿ÀûÀ¸·Î ¹øÈ£°¡ ÇÒ´çÇØÁö´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setCaseSensitive(int columnIndex,
boolean property)
throws SQLException
false ÀÔ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty - ¿·Î ´ë¹®ÀÚ¡¤¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setSearchable(int columnIndex,
boolean property)
throws SQLException
false ÀÔ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty - ¿ÀÌ WHERE Àý·Î »ç¿ëÇÒ ¼ö ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setCurrency(int columnIndex,
boolean property)
throws SQLException
false ÀÔ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty - ¿ÀÌ ±Ý¾×À» ³ªÅ¸³»´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setNullable(int columnIndex,
int property)
throws SQLException
NULL·Î
¼³Á¤ÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. µðÆúÆ®´Â ResultSetMetaData.columnNullableUnknown ÀÔ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty - ResultSetMetaData.columnNoNulls, ResultSetMetaData.columnNullable, ResultSetMetaData.columnNullableUnknown
°¢ Á¤¼öÀÇ ¾î¶² °ÍÀΰ¡
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setSigned(int columnIndex,
boolean property)
throws SQLException
false ÀÔ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty - ¿ÀÌ ºÎÈ£ ÷ºÎ¼öÀÎ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setColumnDisplaySize(int columnIndex,
int size)
throws SQLException
int·Î
¼³Á¤ÇÕ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âsize - ÁöÁ¤ÇÑ ¿ÀÇ, º¸Åë
ÀÇ ÃÖ´ë ¹®ÀÚ¼ö
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setColumnLabel(int columnIndex,
String label)
throws SQLException
String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âlabel - ¿ÀÇ Å¸ÀÌÆ²
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setColumnName(int columnIndex,
String columnName)
throws SQLException
String·Î
¼³Á¤ÇÕ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂcolumnName - ÁöÁ¤µÈ ¿ÀÇ À̸§
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setSchemaName(int columnIndex,
String schemaName)
throws SQLException
String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂschemaName - schema¸í
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setPrecision(int columnIndex,
int precision)
throws SQLException
int·Î
¼³Á¤ÇÕ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âprecision - 10 ÁøÀÚ¸®¼öÀÇ ÃѼö
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setScale(int columnIndex,
int scale)
throws SQLException
int·Î
¼³Á¤ÇÕ´Ï´Ù.
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âscale - ¼Ò¼öÁ¡ ¾Æ·¡ÀÇ ÀÚ¸®¼ö
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setTableName(int columnIndex,
String tableName)
throws SQLException
String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂtableName - ¿ÀÇ Å×À̺í¸í
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setCatalogName(int columnIndex,
String catalogName)
throws SQLException
String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂcatalogName - ¿ÀÇ Ä«Å»·Î±×¸í
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void setColumnType(int columnIndex,
int SQLType)
throws SQLException
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂSQLType - ¿ÀÇ SQL Çü
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìTypes
void setColumnTypeName(int columnIndex,
String typeName)
throws SQLException
String·Î
¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex - ÃÖÃÊÀÇ ¿Àº 1, 2¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂtypeName - µ¥ÀÌÅÍ ¼Ò½º °íÀ¯ÀÇ Çü¸í
SQLException - µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.