Skip to content

Instantly share code, notes, and snippets.

Connection connection = null;
CallableStatement call = null;
try {
connection = dataSource.getConnection();
call = connection.prepareCall("{? = call get_entity2 (?)}");
call.registerOutParameter(1, Types.VARCHAR);
call.setString(2, tableName);
call.executeUpdate();
return call.getString(1);
} catch (SQLException e) {