@startuml
class net.micode.notes.data.NotesDatabaseHelper {
- {static} String DB_NAME
- {static} int DB_VERSION
- {static} String TAG
- {static} NotesDatabaseHelper mInstance
- {static} String CREATE_NOTE_TABLE_SQL
- {static} String CREATE_DATA_TABLE_SQL
- {static} String CREATE_DATA_NOTE_ID_INDEX_SQL
- {static} String NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER
- {static} String NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER
- {static} String NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER
- {static} String NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER
- {static} String DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER
- {static} String DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER
- {static} String DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER
- {static} String NOTE_DELETE_DATA_ON_DELETE_TRIGGER
- {static} String FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER
- {static} String FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER
+ void createNoteTable(SQLiteDatabase)
- void reCreateNoteTableTriggers(SQLiteDatabase)
- void createSystemFolder(SQLiteDatabase)
+ void createDataTable(SQLiteDatabase)
- void reCreateDataTableTriggers(SQLiteDatabase)
~ {static} NotesDatabaseHelper getInstance(Context)
+ void onCreate(SQLiteDatabase)
+ void onUpgrade(SQLiteDatabase,int,int)
- void upgradeToV2(SQLiteDatabase)
- void upgradeToV3(SQLiteDatabase)
- void upgradeToV4(SQLiteDatabase)
}
interface net.micode.notes.data.NotesDatabaseHelper$TABLE {
+ {static} String NOTE
+ {static} String DATA
}
class net.micode.notes.data.Contact {
- {static} HashMap<String,String> sContactCache
- {static} String TAG
- {static} String CALLER_ID_SELECTION
+ {static} String getContact(Context,String)
}
class net.micode.notes.data.Notes {
+ {static} String AUTHORITY
+ {static} String TAG
+ {static} int TYPE_NOTE
+ {static} int TYPE_FOLDER
+ {static} int TYPE_SYSTEM
+ {static} int ID_ROOT_FOLDER
+ {static} int ID_TEMPARAY_FOLDER
+ {static} int ID_CALL_RECORD_FOLDER
+ {static} int ID_TRASH_FOLER
+ {static} String INTENT_EXTRA_ALERT_DATE
+ {static} String INTENT_EXTRA_BACKGROUND_ID
+ {static} String INTENT_EXTRA_WIDGET_ID
+ {static} String INTENT_EXTRA_WIDGET_TYPE
+ {static} String INTENT_EXTRA_FOLDER_ID
+ {static} String INTENT_EXTRA_CALL_DATE
+ {static} int TYPE_WIDGET_INVALIDE
+ {static} int TYPE_WIDGET_2X
+ {static} int TYPE_WIDGET_4X
+ {static} Uri CONTENT_NOTE_URI
+ {static} Uri CONTENT_DATA_URI
}
class net.micode.notes.data.Notes$DataConstants {
+ {static} String NOTE
+ {static} String CALL_NOTE
}
interface net.micode.notes.data.Notes$NoteColumns {
+ {static} String ID
+ {static} String PARENT_ID
+ {static} String CREATED_DATE
+ {static} String MODIFIED_DATE
+ {static} String ALERTED_DATE
+ {static} String SNIPPET
+ {static} String WIDGET_ID
+ {static} String WIDGET_TYPE
+ {static} String BG_COLOR_ID
+ {static} String HAS_ATTACHMENT
+ {static} String NOTES_COUNT
+ {static} String TYPE
+ {static} String SYNC_ID
+ {static} String LOCAL_MODIFIED
+ {static} String ORIGIN_PARENT_ID
+ {static} String GTASK_ID
+ {static} String VERSION
}
interface net.micode.notes.data.Notes$DataColumns {
+ {static} String ID
+ {static} String MIME_TYPE
+ {static} String NOTE_ID
+ {static} String CREATED_DATE
+ {static} String MODIFIED_DATE
+ {static} String CONTENT
+ {static} String DATA1
+ {static} String DATA2
+ {static} String DATA3
+ {static} String DATA4
+ {static} String DATA5
}
class net.micode.notes.data.Notes$TextNote {
+ {static} String MODE
+ {static} int MODE_CHECK_LIST
+ {static} String CONTENT_TYPE
+ {static} String CONTENT_ITEM_TYPE
+ {static} Uri CONTENT_URI
}
class net.micode.notes.data.Notes$CallNote {
+ {static} String CALL_DATE
+ {static} String PHONE_NUMBER
+ {static} String CONTENT_TYPE
+ {static} String CONTENT_ITEM_TYPE
+ {static} Uri CONTENT_URI
}
class net.micode.notes.data.NotesProvider {
- {static} UriMatcher mMatcher
- NotesDatabaseHelper mHelper
- {static} String TAG
- {static} int URI_NOTE
- {static} int URI_NOTE_ITEM
- {static} int URI_DATA
- {static} int URI_DATA_ITEM
- {static} int URI_SEARCH
- {static} int URI_SEARCH_SUGGEST
- {static} String NOTES_SEARCH_PROJECTION
- {static} String NOTES_SNIPPET_SEARCH_QUERY
+ boolean onCreate()
+ Cursor query(Uri,String[],String,String[],String)
+ Uri insert(Uri,ContentValues)
+ int delete(Uri,String,String[])
+ int update(Uri,ContentValues,String,String[])
- String parseSelection(String)
- void increaseNoteVersion(long,String,String[])
+ String getType(Uri)
}


android.database.sqlite.SQLiteOpenHelper <|-- net.micode.notes.data.NotesDatabaseHelper
net.micode.notes.data.NotesDatabaseHelper +.. net.micode.notes.data.NotesDatabaseHelper$TABLE
net.micode.notes.data.Notes +.. net.micode.notes.data.Notes$DataConstants
net.micode.notes.data.Notes +.. net.micode.notes.data.Notes$NoteColumns
net.micode.notes.data.Notes +.. net.micode.notes.data.Notes$DataColumns
net.micode.notes.data.Notes +.. net.micode.notes.data.Notes$TextNote
net.micode.notes.data.DataColumns <|.. net.micode.notes.data.Notes$TextNote
net.micode.notes.data.Notes +.. net.micode.notes.data.Notes$CallNote
net.micode.notes.data.DataColumns <|.. net.micode.notes.data.Notes$CallNote
android.content.ContentProvider <|-- net.micode.notes.data.NotesProvider
@enduml