Android Open Source - WorkTime db Model






From Project

Back to project page WorkTime.

License

The source code is released under:

GNU General Public License

If you think the Android project WorkTime listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.overapps.worktime;
/*from  w w  w  .  j av  a  2 s  . c  o m*/
public class dbModel
{
  int id;
  String time;
  String day;
  int status;
  String created_at;

  // constructors
  public dbModel()
  {
  }

  public dbModel(String time, String day, int status)
  {
    this.time = time;
    this.day = day;
    this.status = status;
  }

  public dbModel(int id, String time, String day, int status)
  {
    this.id = id;
    this.time = time;
    this.day = day;
    this.status = status;
  }

  // setters
  public void setId(int id)
  {
    this.id = id;
  }

  public void setTime(String time, String day)
  {
    this.time = time;
    this.day = day;
  }

  public void setStatus(int status)
  {
    this.status = status;
  }

  public void setCreatedAt(String created_at)
  {
    this.created_at = created_at;
  }

  // getters
  public long getId()
  {
    return this.id;
  }

  public String getTime()
  {
    return this.time;
  }

  public String getDay()
  {
    return this.day;
  }
  public int getStatus()
  {
    return this.status;
  }
}




Java Source Code List

com.overapps.worktime.MainActivity.java
com.overapps.worktime.dbHelper.java
com.overapps.worktime.dbModel.java