@startuml class cc.liuyx.note.db.CRUD { ~ SQLiteOpenHelper dbHandler ~ SQLiteDatabase db - {static} String[] columns + void open() + void close() + void addNote(Note) + Note getNote(long) + List getAllNotes() + void updateNote(Note) + void removeNote(Note) } 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) } android.database.sqlite.SQLiteOpenHelper <|-- cc.liuyx.note.db.NoteDatabase @enduml