publicDataSetGetMessage(stringusername,stringpassword,stringregioncode,stringwhere,intpageindex,intpagerowcount,refintpagecount,refintrecordcount){if(!Authenticate(userna...
public DataSet GetMessage(string username, string password, string regioncode, string where, int pageindex, int pagerowcount, ref int pagecount, ref int recordcount) { if (!Authenticate(username, password)) return null; SqlParameter[] storedParams = new SqlParameter[6]; storedParams[0] = new SqlParameter("@regioncode", regioncode); storedParams[1] = new SqlParameter("@where", where); storedParams[2] = new SqlParameter("@pageindex", pageindex); storedParams[3] = new SqlParameter("@pagerowcount", pagerowcount); storedParams[4] = new SqlParameter("@pagecount", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Output, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null); storedParams[5] = new SqlParameter("@recordcount", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Output, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null); DataSet ds = SqlHelper.ExecuteDataset( this.sqlConn, CommandType.StoredProcedure, "dbo.GetMessage", storedParams); pagecount = (int)storedParams[4].Value; recordcount = (int)storedParams[5].Value; return ds; } 这是.net的,我想知道 java能实现像这样的效果吗?
展开