Beispiel #1
0
 public PaginationResult<?> queryListPage(DynamicSqlParameter requestParam) throws UPPException {
   // TODO Auto-generated method stub
   PaginationResult<Object> result = null;
   try {
     System.out.println("queryListPage");
     result = new PaginationResult<Object>();
     result.setMessage("成功!");
   } catch (Exception e) {
     throw new UPPException("UC_E0001:调用通用queryListPage方法异常", e); // UC_0001 调用通用queryListPage方法异常
   }
   return result;
 }
Beispiel #2
0
 public PaginationResult<?> delete(String id) throws UPPException {
   // TODO Auto-generated method stub
   PaginationResult<Object> result = null;
   try {
     System.out.println("delete");
     result = new PaginationResult<Object>();
     result.setMessage("成功!");
   } catch (Exception e) {
     throw new UPPException("UC_E0004:调用通用delete方法异常", e); // UC_0002 调用通用delete方法异常
   }
   return result;
 }
Beispiel #3
0
  public PaginationResult<?> add(Object model) throws UPPException {
    PaginationResult<Object> result = null;
    try {
      System.out.println("add");
      result = new PaginationResult<Object>();
      result.setMessage("成功!");
    } catch (Exception e) {
      throw new UPPException("UC_E0002:调用通用add方法异常", e); // UC_0001 调用通用add方法异常
    }

    return result;
  }
Beispiel #4
0
  public PaginationResult<?> queryObjectById(Object model) throws UPPException {
    // TODO Auto-generated method stub
    PaginationResult<Object> result = null;
    try {

      System.out.println("queryObject");

      result = new PaginationResult<Object>();
      // result.setDataObject(dataObject);

      result.setMessage("成功!");

    } catch (Exception e) {
      throw new UPPException("UC_E0005:调用通用queryObject方法异常", e); // UC_0004 调用通用delete方法异常
    }
    return result;
  }