Android Open Source - Dhamaschool Base D A O






From Project

Back to project page Dhamaschool.

License

The source code is released under:

Apache License

If you think the Android project Dhamaschool 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 group.ripple.dhamaschool;
/*from   w w w .j a  va  2 s  . c om*/
import android.content.Context;
import android.util.Log;

import java.util.ArrayList;

public abstract class BaseDAO<E> {

  protected DatabaseManager dbm;
  protected Context mContext;
  
  @SuppressWarnings("static-access")
  public BaseDAO(DatabaseManager dbm){
    this.dbm = dbm;
    mContext = this.dbm.mContext;
  }
  
  public abstract ArrayList<E> getAll();
  public abstract E getById(String id);
  public abstract long CRUD(E obj);
  public abstract long insert(E obj);
  public abstract boolean delete(E obj);
  public abstract long update(E obj);
  
  public void catchLog(String log) {
    if(BuildConfig.DEBUG)Log.i(getClass().getSimpleName(), log);
  }
}




Java Source Code List

group.ripple.dhamaschool.About_Us_Fragment.java
group.ripple.dhamaschool.ApplicationTest.java
group.ripple.dhamaschool.BaseDAO.java
group.ripple.dhamaschool.Constant.java
group.ripple.dhamaschool.Contact_fragment.java
group.ripple.dhamaschool.DatabaseManager.java
group.ripple.dhamaschool.DetailActivity.java
group.ripple.dhamaschool.DetailPagerFB.java
group.ripple.dhamaschool.FacebookPage.java
group.ripple.dhamaschool.Home.java
group.ripple.dhamaschool.MainActivity.java
group.ripple.dhamaschool.NetworkListener.java
group.ripple.dhamaschool.NewsDao.java
group.ripple.dhamaschool.NewsObjAdapter.java
group.ripple.dhamaschool.NewsObj.java
group.ripple.dhamaschool.SplashActivity.java
group.ripple.dhamaschool.Utils.java
group.ripple.dhamaschool.WebViewActivity.java