parameter meta data

parameter meta data

View Answers

October 13, 2008 at 10:23 AM

Hi friend,


public interface ResultSetMetaData

An object that can be used to get information about the types and properties of the columns in a ResultSet object.

For example :

ResultSet rs = stmt.executeQuery("SELECT * FROM table");
ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();


Method Summary
String getCatalogName(int column)
Gets the designated column's table's catalog name.
String getColumnClassName(int column)
Returns the fully-qualified name of the Java class whose instances are manufactured
if the method ResultSet.getObject is called to retrieve a value from the column.
int getColumnCount()
Returns the number of columns in this ResultSet object.
int getColumnDisplaySize(int column)
Indicates the designated column's normal maximum width in characters.
String getColumnLabel(int column)
Gets the designated column's suggested title for use in printouts and displays.
String getColumnName(int column)
Get the designated column's name.
int getColumnType(int column)
Retrieves the designated column's SQL type.
String getColumnTypeName(int column)
Retrieves the designated column's database-specific type name.
int getPrecision(int column)
Get the designated column's number of decimal digits.
int getScale(int column)
Gets the designated column's number of digits to right of the decimal point.
String getSchemaName(int column)
Get the designated column's table's schema.
String getTableName(int column)
Gets the designated column's table name.
boolean isAutoIncrement(int column)
Indicates whether the designated column is automatically numbered, thus read-only.
boolean isCaseSensitive(int column)
Indicates whether a column's case matters.
boolean isCurrency(int column)
Indicates whether the designated column is a cash value.
boolean isDefinitelyWritable(int column)
Indicates whether a write on the designated column will definitely succeed.
int isNullable(int column)
Indicates the nullability of values in the designated column.
boolean isReadOnly(int column)
Indicates whether the designated column is definitely not writable.
boolean isSearchable(int column)
Indicates whether the designated column can be used in a where clause.
boolean isSigned(int column)
Indicates whether values in the designated column are signed numbers.
boolean isWritable(int column)
Indicates whether it is possible for a write on the designated column to succeed.


For more information on JDBC visit to :

http://www.roseindia.net/jdbc/

Thanks









Related Tutorials/Questions & Answers:
parameter meta data - JDBC
parameter meta data   i wnts to know about the finition of parameter in jdbc as well as the diffrent methods used in parameter meta data  Hi friend, public interface ResultSetMetaData An object that can be used
what is meta data in java
what is meta data in java  what is meta data in java   Use ArrayList when there will be a large variation in the amount of data that you... in that database; the program knows exactly what kind of data it is dealing
Advertisements
Wrong parameter values while exporting data from jsp to excel
Wrong parameter values while exporting data from jsp to excel   This is a jsp report. When i export the report data to an excel, the parameter..., specifically, if the parameter value is ALL, it gets translated to NO in excel
url parameter using retrive data from database in jsp
url parameter using retrive data from database in jsp   the user can create an event. In the create page, we have three buttons. Save as draft, preview and save and post buttons. Once the user entered all the datas and if he
url parameter using retrive data from database in jsp
url parameter using retrive data from database in jsp  The user can create an event. In the create page, we have three buttons. Save as draft, preview and save and post buttons. Once the user entered all the datas and if he
SQL Out Parameter
SQL Out Parameter       SQL Out Parameter allows the stored procedure to the pass data... The Tutorial illustrate an example from SQL Out Parameter .In this Example we create
JSP get Parameter
JSP get Parameter          JSP get Parameter is used to return the value of a request parameter passed as query string and posted data which is encoded
Init Parameter
Init Parameter  How set Init Parameter in servlet
SQL Out Parameter
SQL Out Parameter       SQL Out Parameter allows the stored procedure to the pass data value ... illustrate an example from SQL Out Parameter .In this Example we create a procedure
Java parameter passing
Java parameter passing  What type of parameter passing does Java support
validate parameter before using it
validate parameter before using it   How to validate the parameter before using it in JSP
ModuleNotFoundError: No module named 'parameter'
ModuleNotFoundError: No module named 'parameter'  Hi, My Python... 'parameter' How to remove the ModuleNotFoundError: No module named 'parameter' error? Thanks   Hi, In your python environment you
Set Date Parameter to get specific value
Set Date Parameter to get specific value  How to set the date parameter or fetch a specific data records based on date? For example fetching the two or three months old records
Passing Parameter - JSP-Servlet
associated with the data i selected. Therefore, i've modify it into something like..., there's var answer. I need to pass this parameter back into the jsp part, how should i do
how to pass the parameter in callable statement
how to pass the parameter in callable statement  calstat=conn.prepareCall("{call studentrc(?,?,?,?,?)}"); // it show error parameter value is null...(); //JOptionPane.showMessageDialog(null,"Data successfully Updated
meta tag in HTML
meta tag in HTML  Explain meta tag in HTML
pass parameter names and values
pass parameter names and values  What is the <jsp:param> standard action?   The <jsp:param> standard action is used with <jsp:include> or <jsp:forward> to pass parameter names and values
optional parameter of Test annotattion
optional parameter of Test annotattion   What are two optional parameters of @Test annotation ?   The Test annotation supports two optional... parameter, timeout, causes a test to fail if it takes longer than a specified amount
Version of avalon-meta>avalon-meta-api dependency
List of Version of avalon-meta>avalon-meta-api dependency
Version of avalon-meta>avalon-meta-impl dependency
List of Version of avalon-meta>avalon-meta-impl dependency
Version of avalon-meta>avalon-meta-plugin dependency
List of Version of avalon-meta>avalon-meta-plugin dependency
Version of avalon-meta>avalon-meta-spi dependency
List of Version of avalon-meta>avalon-meta-spi dependency
Version of avalon-meta>avalon-meta-tools dependency
List of Version of avalon-meta>avalon-meta-tools dependency
Passing a parameter using URL string
Passing a parameter using URL string  How to pass a parameter using the URL string in a JSF application
optional parameter of Test annotattion
optional parameter of Test annotattion   The Test annotation supports two optional parameters. The first, expected, declares that a test method should throw an exception. If it doesn't throw an exception or if it throws
Passing Parameter - JSP-Servlet
Passing Parameter  I would like to ask how to pass a parameter from javascript section into the jsp section.It will be something like this: function change() { var answer = document.getElementById('selc').value
Parameter month I Report - Java Beginners
Parameter month I Report  hy, I want to ask about how to make parameter in I Report, parameter is month from date. How to view data from i report use like "12/2008". Thank's  Hi friend, Plz give details
ModuleNotFoundError: No module named 'lib-parameter'
ModuleNotFoundError: No module named 'lib-parameter'  Hi, My... 'lib-parameter' How to remove the ModuleNotFoundError: No module named 'lib-parameter' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'magic_parameter'
ModuleNotFoundError: No module named 'magic_parameter'  Hi, My... named 'magic_parameter' How to remove the ModuleNotFoundError: No module named 'magic_parameter' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'parameter-sherpa'
ModuleNotFoundError: No module named 'parameter-sherpa'  Hi, My... named 'parameter-sherpa' How to remove the ModuleNotFoundError: No module named 'parameter-sherpa' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'meta'
ModuleNotFoundError: No module named 'meta'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'meta' How to remove the ModuleNotFoundError: No module named 'meta' error
Parameter Tag:
Parameter Tag:       bean:parameter...) of the specified request parameter. This tag retrieve the value of the specified request parameter and define the attribute of  type String or String[] in page scope
Version of com.laamella>parameter-source dependency
List of Version of com.laamella>parameter-source dependency
PHP add parameter to url - PHP
PHP add parameter to url  need an example of parse_url in PHP. Thanks in advance
passing parameter from html to applet
passing parameter from html to applet  how to pass the following from HTML to applet in Java code - font size,font style,font size?give me suitable code
Static Parameter
Static Parameter       In this section, we will develop a simple application to access the static parameters. We will use a JavaBean to set and get the static parameters. Each static parameter has a value
Artifacts of avalon-meta
List of Artifacts of avalon-meta maven depenency
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file
passing .properties file as a parameter to another function
passing .properties file as a parameter to another function  passing .properties file as a parameter to another function in an jsp file
JSP Session Parameter rewrite
JSP Session Parameter rewrite       In the section you will study about the session parameter...; <title>JSP Session Parameter Rewrite</title> </head> <
pass parameter - file - Java Beginners
pass parameter - file  Hi, I want to pass paramter file to method. how it is possible. please send me example programs.   Hi Friend... immediately. file.jsp ========== File Parameter Use
Set Parameter - JSP-Interview Questions
Set Parameter  Hi, could someone please explain the process of setting parameter in the session from JSP with the help of code? Thanks!  Hi,In your JSP page use the Set Tag, and set the scope attribute
ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian'
ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian' ...: ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian' How to remove the ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian
ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian'
ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian' ...: ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian' How to remove the ModuleNotFoundError: No module named 'cbax-parameter-manager-kypkalorian
ModuleNotFoundError: No module named 'mastercard-parameter-management-services'
ModuleNotFoundError: No module named 'mastercard-parameter-management-services...: ModuleNotFoundError: No module named 'mastercard-parameter-management-services' How to remove the ModuleNotFoundError: No module named 'mastercard-parameter
ModuleNotFoundError: No module named 'odoo10-addon-report-qweb-parameter'
ModuleNotFoundError: No module named 'odoo10-addon-report-qweb-parameter' ...: ModuleNotFoundError: No module named 'odoo10-addon-report-qweb-parameter' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-report-qweb-parameter
ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter'
ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter' ...: ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter
ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter'
ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter' ...: ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-report-qweb-parameter

Ads