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 - JDBCparameter 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 javawhat 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
url parameter using retrive data from database in jspurl
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 jspurl
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
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
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 valueSet 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 statementhow 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
pass parameter names and valuespass
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
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-ServletPassing 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 BeginnersParameter 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 '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
passing parameter from html to appletpassing
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
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 Beginnerspass
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 QuestionsSet 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