Public Boolean JdbcUpdate (ListSQLS ListConnection conn=null;
PreparedStatement STMT=null;
Boolean res=false;
Try {
Conn=getDataSource (.) getConnection ();
conn.setAutoCommit(false);
for (int i=0; I & lt; SQLS. The size (); I++) {
STMT=conn. PrepareStatement (SQLS. Get (I));
For (int j=0; jSTMT. SetObject (j + 1, args. The get (I) [j]);
}
Int res1=0;
Res1=STMT. ExecuteUpdate ();
Res1=res1;
}
Conn.com MIT ();
Res=true;
}
The catch (Exception e) {... }
}
CodePudding user response:
The things you openCodePudding user response: