Android Open Source - easydb My Entity Class






From Project

Back to project page easydb.

License

The source code is released under:

Apache License

If you think the Android project easydb 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.san.api.easydb.example;
//  w  ww .  j a va  2 s  .c  o m
import com.san.api.easydb.ConnectionManager;
import com.san.api.easydb.Entity;

public class MyEntityClass extends Entity {

  //No need of ID field. Implicitly its available.
  
  private String title;
  private String subTitle;
  private String tag;
  
  static{
    ConnectionManager.registerEntity(MyEntityClass.class);
  }

  
  /**
   * @return the title
   */
  public String getTitle() {
    return title;
  }
  /**
   * @param title the title to set
   */
  public void setTitle(String title) {
    this.title = title;
  }
  /**
   * @return the subTitle
   */
  public String getSubTitle() {
    return subTitle;
  }
  /**
   * @param subTitle the subTitle to set
   */
  public void setSubTitle(String subTitle) {
    this.subTitle = subTitle;
  }
  /**
   * @return the tag
   */
  public String getTag() {
    return tag;
  }
  /**
   * @param tag the tag to set
   */
  public void setTag(String tag) {
    this.tag = tag;
  }
  
}




Java Source Code List

com.san.api.easydb.ConnectionManager.java
com.san.api.easydb.EntityProcessor.java
com.san.api.easydb.Entity.java
com.san.api.easydb.SQLHelper.java
com.san.api.easydb.Session.java
com.san.api.easydb.example.MyEntityClass.java
com.san.api.easydb.example.MyListAdapter.java
com.san.api.easydb.example.TestActivity.java