Wednesday, April 28, 2010

JDBC Statemets Example

con = ConnectionManager.getInstance().getConnection();
proc = con.prepareCall("{call Z_MOBAPP_TASKLIST_SP(?,?,?,?,?,?,?,?,?,?)}");
proc.setString(1,userID); //P_USERID IN VARCHAR2
proc.setInt(2,timeSheetId); //P_TIMESHEETID IN NUMBER
proc.setString(3,taskname); //P_TASKNAME IN VARCHAR2

proc.setInt(7,pageLimit); //P_ROWS_PAGE IN NUMBER,
proc.setInt(8,pageNum); //P_PAGE_NUM IN NUMBER,
proc.setString(9,sortBy); //P_SORT_COL VARCHAR2,

proc.registerOutParameter(10,OracleTypes.CURSOR);
proc.executeUpdate();

No comments:

Post a Comment