Experts Exchange connects you with the people and services you need so you can get back to work.
ResultSetMetaData rsmd = rsInput.getMetaData();
int colCount = rsmd.getColumnCount();
String colName, colType;
for (int i = 1 ; i <= colCount ; i++)
colName = rsmd.getColumnName(i);
colType = rsmd.getColumnTypeName(i);
addFldsFromInput( colName );
Open in new window
protected void createRSInput_new() throws Exception
String sql = " Select * from " + TblInput
+ " Where DB2Recid = " + iDB2RecId;
Statement stmt = this.connJob.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
rsInput = stmt.executeQuery( sql);
if( rsInput == null || rsInput.absolute(1) == false)
throw new Exception("Input record not found.");
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.