-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram-database.puml
49 lines (40 loc) · 1.47 KB
/
diagram-database.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@startuml
class com.avasaysayava.bagrutproject.database.DatabaseHelper {
- {static} String DATABASE_NAME
- {static} int DATABASE_VERSION
- {static} String SQL_CREATE_ENTRIES
- {static} String SQL_DELETE_ENTRIES
+ <<Create>> DatabaseHelper(Context)
+ void onCreate(SQLiteDatabase)
+ void onUpgrade(SQLiteDatabase,int,int)
}
class com.avasaysayava.bagrutproject.database.DatabaseContract {
}
class com.avasaysayava.bagrutproject.database.TimesEntry {
+ {static} String TABLE_NAME
+ {static} String COLUMN_TIME
+ {static} String COLUMN_LEVEL
}
class com.avasaysayava.bagrutproject.database.datasource.TimesDataSource {
- String PREFS_NAME
+ <<Create>> TimesDataSource(Context)
+ Long getBestTime(int)
+ List<Long> getAllTimes(int)
+ Long getLastTime(int)
+ void setLastTime(long,int)
+ void addTime(long,int)
}
abstract class com.avasaysayava.bagrutproject.database.datasource.DataSource {
# DatabaseHelper databaseHelper
# Context context
# SQLiteDatabase database
+ <<Create>> DataSource(Context)
+ void openWriteable()
+ void openReadable()
+ void close()
}
android.database.sqlite.SQLiteOpenHelper <|-- com.avasaysayava.bagrutproject.database.DatabaseHelper
com.avasaysayava.bagrutproject.database.DatabaseContract +.. com.avasaysayava.bagrutproject.database.TimesEntry
android.provider.BaseColumns <|.. com.avasaysayava.bagrutproject.database.TimesEntry
com.avasaysayava.bagrutproject.database.datasource.DataSource <|-- com.avasaysayava.bagrutproject.database.datasource.TimesDataSource
@enduml