Update SqlData.java

dev
ph2y8awtk 2 years ago
parent 8ef51d3418
commit a40f4948e6

@ -6,18 +6,11 @@
*/ */
package net.micode.notes.gtask.data; package net.micode.notes.gtask.data;
/*
*
*
*
* Made By CuiCan
*/
public class SqlData { public class SqlData {
/* /*
* TAG * TAG
* getSimpleName () * getSimpleName ()
* Made By CuiCan
*/ */
private static final String TAG = SqlData.class.getSimpleName(); private static final String TAG = SqlData.class.getSimpleName();
@ -67,8 +60,6 @@ public class SqlData {
* *
* mContentResolverContentProvider * mContentResolverContentProvider
* mIsCreate * mIsCreate
*
* Made By CuiCan
*/ */
public SqlData(Context context) { public SqlData(Context context) {
mContentResolver = context.getContentResolver(); mContentResolver = context.getContentResolver();
@ -86,8 +77,6 @@ public class SqlData {
* *
* mContentResolverContentProvider * mContentResolverContentProvider
* mIsCreate * mIsCreate
*
* Made By CuiCan
*/ */
public SqlData(Context context, Cursor c) { public SqlData(Context context, Cursor c) {
mContentResolver = context.getContentResolver(); mContentResolver = context.getContentResolver();
@ -99,7 +88,6 @@ public class SqlData {
/* /*
* *
* *
* Made By CuiCan
*/ */
private void loadFromCursor(Cursor c) { private void loadFromCursor(Cursor c) {
mDataId = c.getLong(DATA_ID_COLUMN); mDataId = c.getLong(DATA_ID_COLUMN);
@ -112,8 +100,6 @@ public class SqlData {
/* /*
* *
*
* Made By CuiCan
*/ */
public void setContent(JSONObject js) throws JSONException { public void setContent(JSONObject js) throws JSONException {
//如果传入的JSONObject对象中有DataColumns.ID这一项则设置否则设为INVALID_ID //如果传入的JSONObject对象中有DataColumns.ID这一项则设置否则设为INVALID_ID
@ -152,8 +138,6 @@ public class SqlData {
/* /*
* *
*
* Made By CuiCan
*/ */
public JSONObject getContent() throws JSONException { public JSONObject getContent() throws JSONException {
if (mIsCreate) { if (mIsCreate) {
@ -172,8 +156,6 @@ public class SqlData {
/* /*
* commit * commit
*
* Made By CuiCan
*/ */
public void commit(long noteId, boolean validateVersion, long version) { public void commit(long noteId, boolean validateVersion, long version) {
@ -216,9 +198,6 @@ public class SqlData {
/* /*
* id * id
*
*
* Made By CuiCan
*/ */
public long getId() { public long getId() {
return mDataId; return mDataId;

Loading…
Cancel
Save