You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
@startuml
|
|
class cc.liuyx.note.db.PlanCRUD {
|
|
~ SQLiteOpenHelper dbHandler
|
|
~ SQLiteDatabase db
|
|
- {static} String[] columns
|
|
+ void open()
|
|
+ void close()
|
|
+ void addPlan(Plan)
|
|
+ Plan getPlan(long)
|
|
+ List<Plan> getAllPlans()
|
|
+ int updatePlan(Plan)
|
|
+ void removePlan(Plan)
|
|
}
|
|
class cc.liuyx.note.db.PlanDatabase {
|
|
+ {static} String TABLE_NAME
|
|
+ {static} String TITLE
|
|
+ {static} String CONTENT
|
|
+ {static} String ID
|
|
+ {static} String TIME
|
|
+ {static} String MODE
|
|
+ void onCreate(SQLiteDatabase)
|
|
+ void onUpgrade(SQLiteDatabase,int,int)
|
|
}
|
|
class cc.liuyx.note.db.NoteDatabase {
|
|
+ {static} String TABLE_NAME
|
|
+ {static} String CONTENT
|
|
+ {static} String ID
|
|
+ {static} String TIME
|
|
+ {static} String MODE
|
|
+ void onCreate(SQLiteDatabase)
|
|
+ void onUpgrade(SQLiteDatabase,int,int)
|
|
- void updateMode(SQLiteDatabase)
|
|
}
|
|
class cc.liuyx.note.db.NoteCRUD {
|
|
~ SQLiteOpenHelper dbHandler
|
|
~ SQLiteDatabase db
|
|
- {static} String[] columns
|
|
+ void open()
|
|
+ void close()
|
|
+ void addNote(Note)
|
|
+ Note getNote(long)
|
|
+ List<Note> getAllNotes()
|
|
+ void updateNote(Note)
|
|
+ void removeNote(Note)
|
|
}
|
|
|
|
|
|
android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.db.PlanDatabase
|
|
android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.db.NoteDatabase
|
|
@enduml |