views:

252

answers:

0

hi All, I am using toplink and i need to call one procedure. I tried but i am getting some problem. can anyone help me. Below is the code piece.

public void executeStoredFunction(ServerSession session) { StoredFunctionCall call = new StoredFunctionCall(); call.setProcedureName("AAA.aabb()"); call.addNamedArgument("abc");

ValueReadQuery query = new ValueReadQuery();
query.setCall(call);
query.addArgument("abc", Integer.class);

Vector parameters = new Vector();
parameters.addElement(1);

session.executeQuery(query, parameters);

} when i am trying to run this i am getting exception --

wrong number or types of arguments in call to 'aabb'