package com.mobed.ssn;
import android.database.Cursor;
public class ConfigureInfo {
// public static final int TIME_YEAR = 1;
// public static final int TIME_MONTH = (1 << 1);
// public static final int TIME_WEEK = (1 << 2);
// public static final int TIME_DAY = (1 << 3);
//
// public static final int ORDER_ALPHABET = 1;
// public static final int ORDER_FREQUENT = 2;
// public static final int ORDER_LATEST_TIME = 3;
public static final int HOUR = 60;
long configureId;
// int timeUnit;
// int timeInterval; // minute
// int ordering;
long lastNodeId;
String time;
public ConfigureInfo() {
clear();
}
public void clear() {
configureId = 0;
// timeUnit = 0;
// timeInterval = 0;
// ordering = 0;
lastNodeId = 0;
time = null;
}
// public int getTimeUnit() {
// return timeUnit;
// }
// public void setTimeUnit(int timeUnit) {
// this.timeUnit = timeUnit;
// }
public String getTime() {
return time;
}
public void setTime(String time)
{
this.time = time;
}
public long getLastNodeId() {
return lastNodeId;
}
public void setLastNodeId(long nodeId) {
this.lastNodeId = nodeId;
}
public long getConfigureId() {
return configureId;
}
// public int getTimeInterval() {
// return timeInterval;
// }
// public void setTimeInterval(int timeInterval) {
// this.timeInterval = timeInterval;
// }
public void setConfigureId(long configureId) {
this.configureId = configureId;
}
// public int getOrdering() {
// return ordering;
// }
// public void setOrdering(int ordering) {
// this.ordering = ordering;
// }
public void set(Cursor cs)
{
configureId = cs.getLong(ssnDatabase.CONFIGURE_COLUMN_ID);
// timeUnit = cs.getInt(ssnDatabase.CONFIGURE_COLUMN_TIME_UNIT);
// timeInterval = cs.getInt(ssnDatabase.CONFIGURE_COLUMN_TIME_INTERVAL);
// ordering = cs.getInt(ssnDatabase.CONFIGURE_COLUMN_ORDERING);
lastNodeId = cs.getLong(ssnDatabase.CONFIGURE_COLUMN_LAST_NODE_ID);
time = cs.getString(ssnDatabase.CONFIGURE_COLUMN_TIME);
}
}
|