@ -149,7 +149,7 @@ public class SqlData {
return js;
}
//commit将当前造作所做的修改保存到数据库中
//commit将当前造作所做的修改保存到数据库中。
public void commit(long noteId, boolean validateVersion, long version) {
if (mIsCreate) {
@ -40,7 +40,7 @@ import java.util.ArrayList;
public class SqlNote {
private static final String TAG = SqlNote.class.getSimpleName();
//通过调用getSimpleName()函数得到类的简写名称并将其存入字符串TAG中;
//通过调用getSimpleName()函数得到类的简写名称并将其存入字符串TAG中。
private static final int INVALID_ID = -99999;
// 集合了interface NoteColumns中所有SF常量(17个);
@ -15,7 +15,6 @@
*/
package net.micode.notes.gtask.data;
import android.database.Cursor;
import android.text.TextUtils;
import android.util.Log;
@ -18,7 +18,6 @@ package net.micode.notes.gtask.data;
import net.micode.notes.data.Notes;
import net.micode.notes.data.Notes.NoteColumns;
import net.micode.notes.gtask.exception.ActionFailureException;
@ -24,7 +24,7 @@ public class ActionFailureException extends RuntimeException {
public ActionFailureException() {
super();
//使用super来引用父类的成分,用this来引用当前对象;
//使用super来引用父类的成分,用this来引用当前对象。
public ActionFailureException(String paramString) {
super(paramString);
@ -22,7 +22,7 @@ public class NetworkFailureException extends Exception {
public NetworkFailureException() {
//使用super来引用父类的成分,用this来引用当前对象
public NetworkFailureException(String paramString) {
@ -87,7 +87,7 @@ public class GTaskASyncTask extends AsyncTask<Void, String, Integer> {
//通过NotificationManager对象的notify()方法来执行一个notification的消息
//在后台线程执行,完成任务的主要工作,通常需要较长的时间
//在后台线程执行,完成任务的主要工作,通常需要较长的时间。
@Override
protected Integer doInBackground(Void... unused) {
publishProgess(mContext.getString(R.string.sync_progress_login, NotesPreferenceActivity