package com.example.jianming.beans;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import com.activeandroid.query.Select;

/**
 * Created by Jianming on 2015/10/28.
 */
@Table(name = "T_UPDATE_STAMP")
public class UpdateStamp extends Model {

    public static UpdateStamp getUpdateStampByTableName(String tableName) {
        UpdateStamp updateStamp =
                new Select().from(UpdateStamp.class).
                        where("table_name = ?", tableName).
                        executeSingle();
        return updateStamp;
    }

    @Column(name="table_name")
    private String tableName;

    @Column(name="update_stamp")
    private String updateStamp;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getUpdateStamp() {
        return updateStamp;
    }

    public void setUpdateStamp(String updateStamp) {
        this.updateStamp = updateStamp;
    }
}

@@ -30,16 +30,42 @@
 beans;%0A%0A
+import android.util.Log;%0A%0A
 import c
@@ -600,16 +600,77 @@
 ngle();%0A
+        Log.i(%22UpdataStamp%22, %22updateStamp: %22 + updateStamp);%0A
         

add a log