This content has been marked as final. Show 4 replies
There aren't any common getXX functions across Connection & ResultSet Class.
Each of them are meant to be with a purpose and cannot be replaced with others.
getXXX methods of Connection Class are to be used to get values of certain attributes of an active Connection
getXXX methogs of ResultSet Class are to be used to fetch results and values of certain attributes of ResultSet.
getXXX methods of Statement and ResultSet are for different purpose and cannot be interchaged.
If a statement is a query which returns a resultset then you have to use the getXXX methods of ResultSet class to fetch the data.
If you are executing a pl/sql procedure then after the statement has been executed you need to use the getXXX methods of Statement Class to fetch the results.
Edited by: Sudheendra on Jan 19, 2012 4:29 PM