OSDN Git Service

バージョンを更新。
[gokigen/JoggingTimer.git] / wear / src / main / java / net / osdn / gokigen / joggingtimer / storage / ITimeEntryDatabase.java
1 package net.osdn.gokigen.joggingtimer.storage;
2
3 import android.database.Cursor;
4
5 import java.util.ArrayList;
6
7 /**
8  *    ITimeEntryDatabase
9  *
10  */
11 public interface ITimeEntryDatabase
12 {
13     long DONT_USE_ID = -1;
14     long DEFAULT_RECORD_TYPE = 0;
15     long EDITABLE_RECORD_TYPE = 1;
16
17     void prepare();
18     void close();
19
20     Cursor getAllIndexData();
21     Cursor getAllDetailData(long indexId);
22     Cursor getAllReferenceDetailData(int id);
23
24     Cursor getIndexdata(long indexId);
25
26     void deleteTimeEntryData(long indexId);
27
28     void setReferenceIndexData(int id, long indexId);
29     void updateIndexData(long indexId, String title, int icon);
30     void createIndexData(String title, String memo, int icon, long startTime);
31     void appendTimeData(long indexId, long lapTime);
32     void finishTimeData(long indexId, long startTime, long endTime);
33
34     long createTimeEntryModelData(int lap, long totalTime, String memo);
35
36     long createImportedTimeEntryData(String title, String memo, long totalTime, ArrayList<Long> lapTimeList);
37
38     int updateTimeEntryData(long detailId, long totalTime);
39 }