8.4.10 getMetaData()
- Organization of this subsection
(1) Function
This method returns the ResultSetMetaData object that stores information about the columns in the ResultSet object that is returned when this PreparedStatement object is executed.
(2) Format
public synchronized ResultSetMetaData getMetaData() throws SQLException
(3) Arguments
None.
(4) Return value
This method returns meta information for this PreparedStatement object as a ResultSetMetaData object.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The PreparedStatement object is closed.
-
The Connection object that created this PreparedStatement object is closed.