添加了对Note类的注释

qjy
GenshinGanyu 2 years ago
parent cb329307a1
commit 515cc051ea

@ -53,7 +53,9 @@ public class Note {
values.put(NoteColumns.LOCAL_MODIFIED, 1);
values.put(NoteColumns.PARENT_ID, folderId);
Uri uri = context.getContentResolver().insert(Notes.CONTENT_NOTE_URI, values);
/**
ContentResolver()ContentProvider
*/
long noteId = 0;
try {
noteId = Long.valueOf(uri.getPathSegments().get(1));
@ -67,6 +69,9 @@ public class Note {
return noteId;
}
/**
便便便
*/
public Note() {
mNoteDiffValues = new ContentValues();
mNoteData = new NoteData();
@ -81,18 +86,30 @@ public class Note {
public void setTextData(String key, String value) {
mNoteData.setTextData(key, value);
}
/**
ID
*/
public void setTextDataId(long id) {
mNoteData.setTextDataId(id);
}
/**
ID
*/
public long getTextDataId() {
return mNoteData.mTextDataId;
}
/**
ID
*/
public void setCallDataId(long id) {
mNoteData.setCallDataId(id);
}
/**
ID
*/
public void setCallData(String key, String value) {
mNoteData.setCallData(key, value);
@ -132,6 +149,9 @@ public class Note {
return true;
}
/**
* 便
*/
private class NoteData {
private long mTextDataId;
@ -187,6 +207,9 @@ public class Note {
if (noteId <= 0) {
throw new IllegalArgumentException("Wrong note id:" + noteId);
}
/**
*
*/
ArrayList<ContentProviderOperation> operationList = new ArrayList<ContentProviderOperation>();
ContentProviderOperation.Builder builder = null;
@ -212,6 +235,9 @@ public class Note {
}
mTextDataValues.clear();
}
/**
* DataColumns
*/
if (mCallDataValues.size() > 0) {
mCallDataValues.put(DataColumns.NOTE_ID, noteId);

Loading…
Cancel
Save