Page 616 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 616

정보통신기기  프로젝트


                       }
                       return array;
                 }


                 public  void resetLog()  {
                       SQLiteDatabase db  =  getWritableDatabase();
                       db.execSQL("UPDATE SQLITE_SEQUENCE SET seq = 0  WHERE  name  =  'log'");
                       db.execSQL("DELETE  FROM  log");
                       db.close();
                 }
            }


            SaveLog.java
            package  com.example.puppy;


            import  java.sql.Timestamp;


            /**
              *  Created  by  JBTS-24  on  2016-11-16.
             */


            public  class  SaveLog  {
                 private  int  num;
                    private  String  type;
                 private  String  amount;
                    private  String  water;
                    private  Timestamp  timestamp;


                 public  int  getNum()  {
                       return num;
                 }


                 public  void setNum(int  num)  {
                       this.num =  num;
                 }


                 public  String  getType()  {
                       return type;
                 }


                 public  void setType(String  type)  {




                                                         -  609  -                             정보통신기기과
   611   612   613   614   615   616   617   618   619   620   621