|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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)
ÁöÁ¤µÈ ¿ÀÇ Åë»óÀÇ ÃÖ´ëÆø (ij¸¯Åͼö)À», ÁöÁ¤µÈ 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 |
¸Þ¼ÒµåÀÇ »ó¼¼ |
public void setColumnCount(int columnCount) throws SQLException
RowSet
¿ÀºêÁ§Æ®ÀÇ ·Ä¼ö¸¦, ÁöÁ¤ÇÑ ¼ö·Î ¼³Á¤ÇÕ´Ï´Ù.
columnCount
- ÀÌ RowSet
¿ÀºêÁ§Æ®ÀÇ ·Ä¼ö
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setAutoIncrement(int columnIndex, boolean property) throws SQLException
RowSet
¿ÀºêÁ§Æ®ÀÇ ¿ÀÌ µðÆúÆ®·Î, ÀÌ °æ¿ì, ¹øÈ£´Â ÀÚµ¿ÀûÀ¸·Î ÇÒ´çÇØÁöÁö ¾Ê½À´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty
- ¿¿¡ ÀÚµ¿ÀûÀ¸·Î ¹øÈ£°¡ ÇÒ´çÇØÁö´Â °æ¿ì´Â true
, ÇÒ´çÇØÁöÁö ¾ÊÀº °æ¿ì´Â false
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setCaseSensitive(int columnIndex, boolean property) throws SQLException
false
ÀÔ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty
- ¿·Î ´ë¹®ÀÚ¡¤¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏ´Â °æ¿ì´Â true
, ±¸º°ÇÏÁö ¾Ê´Â °æ¿ì´Â false
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setSearchable(int columnIndex, boolean property) throws SQLException
false
ÀÔ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty
- ¿ÀÌ WHERE
Àý·Î »ç¿ëÇÒ ¼ö ÀÖ´Â °æ¿ì´Â true
, »ç¿ëÇÒ ¼ö ¾ø´Â °æ¿ì´Â false
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setCurrency(int columnIndex, boolean property) throws SQLException
false
ÀÔ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty
- ¿ÀÌ ±Ý¾×À» ³ªÅ¸³»´Â °æ¿ì´Â true
, ³ªÅ¸³»Áö ¾Ê´Â °æ¿ì´Â false
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setNullable(int columnIndex, int property) throws SQLException
NULL
·Î ¼³Á¤ÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. µðÆúÆ®´Â ResultSetMetaData.columnNullableUnknown
ÀÔ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty
- ResultSetMetaData.columnNoNulls
,ResultSetMetaData.columnNullable
,ResultSetMetaData.columnNullableUnknown
ÀÇ °¢ Á¤¼öÀÇ ¾î¶² °ÍÀΰ¡
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setSigned(int columnIndex, boolean property) throws SQLException
false
ÀÔ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âproperty
- ¿ÀÌ ºÎÈ£ ÷ºÎ¼öÀÎ °æ¿ì´Â true
, ºÎÈ£ ÷ºÎ¼ö°¡ ¾Æ´Ñ °æ¿ì´Â false
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setColumnDisplaySize(int columnIndex, int size) throws SQLException
int
·Î ¼³Á¤ÇÕ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âsize
- ÁöÁ¤ÇÑ ¿ÀÇ, Åë»óÀÇ ÃÖ´ë ij¸¯Åͼö
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setColumnLabel(int columnIndex, String label) throws SQLException
String
·Î ¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âlabel
- ¿ÀÇ Å¸ÀÌÆ²
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setColumnName(int columnIndex, String columnName) throws SQLException
String
·Î ¼³Á¤ÇÕ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂcolumnName
- ÁöÁ¤µÈ ¿ÀÇ À̸§
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setSchemaName(int columnIndex, String schemaName) throws SQLException
String
·Î ¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂschemaName
- schema¸í
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setPrecision(int columnIndex, int precision) throws SQLException
int
·Î ¼³Á¤ÇÕ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âprecision
- 10 ÁøÀÚ¸®¼öÀÇ ÃѼö
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setScale(int columnIndex, int scale) throws SQLException
int
·Î ¼³Á¤ÇÕ´Ï´Ù.
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´Âscale
- ¼Ò¼öÁ¡ ÀÌÇÏÀÇ ÀÚ¸®¼ö
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setTableName(int columnIndex, String tableName) throws SQLException
String
·Î ¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂtableName
- ¿ÀÇ Å×À̺í¸í
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setCatalogName(int columnIndex, String catalogName) throws SQLException
String
·Î ¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂcatalogName
- ¿ÀÇ Ä«Å»·Î±×¸í
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void setColumnType(int columnIndex, int SQLType) throws SQLException
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂSQLType
- ¿ÀÇ SQL Çü
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìTypes
public void setColumnTypeName(int columnIndex, String typeName) throws SQLException
String
·Î ¼³Á¤ÇÕ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).
columnIndex
- ÃÖÃÊÀÇ ¿Àº 1, 2 ¹øÂ°ÀÇ ¿Àº 2,... µÇ´ÂtypeName
- µ¥ÀÌÅÍ ¼Ò½º¿¡ °íÀ¯ÀÇ Çü¸í
SQLException
- µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
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.