Package model

Examples of model.FileModel


                              // path.
      DataInputStream input = new DataInputStream(context
          .getResourceAsStream("SqlMapConfig.xml"));
      client = Utils.getSqlMapClient(input);
      //TODO ��δ�req��ȡ��FileModel�����IJ����أ�
      FileModel fileModel = null ;
      ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
      fileModel = (FileModel)ois.readObject();
      ois.close();
      if(fileModel != null){
        System.out.println("UpdateModel#fileModel!=null");
      }else{
        System.out.println("UpdateModel#fileModel==null");
      }
      client.update("updateModel", fileModel);
      List<DrawModel> draws = fileModel.getDraws();
      for(int i = 0;i<draws.size();i++){
        client.update("updateDrawModel",draws.get(i));
      }         
     
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of model.FileModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.