I've created stored procedure in postgresql as follows
create or replace function getRecordCount(tableNameAndCond in text) returns integer AS $$
execute 'select count(*) from '||tableNameAndCond into recCount;
I am trying to call this stroed procedure from my java program. Here with I am pasting my java code.
I don't know postgresql but it appears to me that you have created a stored function rather than a stored procedure.
If that is the case then your java code is incorrect.
I believe it should be...