Android Open Source - EasyVote Data Session






From Project

Back to project page EasyVote.

License

The source code is released under:

Apache License

If you think the Android project EasyVote 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.llanox.mobile.easyvote.data;
/*w  w w .  java  2  s . c o m*/
import java.util.List;

import android.database.Cursor;
import android.database.SQLException;

public interface DataSession<T> {
  
  public void open() throws SQLException;  
  public void close();  
  
  public void insert(T item);  
  public void asyncInsert(T item, ResponseHandler<T> handler);
  
  public void update(T item);
  public void asyncUpdate(T item, ResponseHandler<T> handler);
  
  public T findById(String id);
  
  public T asyncFindById(String id, ResponseHandler<T> handler);
  
  public List<T> findAll();
  
  public List<T> asyncFindAll( ResponseHandler<List<T>> handler);
  
  
  
  interface ResponseHandler<T>{
    
    public void succesfull(T item);
    public void error(Object error);
    
  }

}




Java Source Code List

com.llanox.mobile.easyvote.AnswerQuestionDetailActivity.java
com.llanox.mobile.easyvote.AnswerQuestionDetailFragment.java
com.llanox.mobile.easyvote.AnswerQuestionListActivity.java
com.llanox.mobile.easyvote.AnswerQuestionListFragment.java
com.llanox.mobile.easyvote.AppCredentials.java
com.llanox.mobile.easyvote.AppSessionManager.java
com.llanox.mobile.easyvote.AskQuestion.java
com.llanox.mobile.easyvote.ConstantsEasyVote.java
com.llanox.mobile.easyvote.EntryPointActivity.java
com.llanox.mobile.easyvote.PlusBaseActivity.java
com.llanox.mobile.easyvote.QuestionDetailActivity.java
com.llanox.mobile.easyvote.QuestionDetailFragment.java
com.llanox.mobile.easyvote.QuestionListActivity.java
com.llanox.mobile.easyvote.QuestionListFragment.java
com.llanox.mobile.easyvote.data.DataException.java
com.llanox.mobile.easyvote.data.DataLayerManager.java
com.llanox.mobile.easyvote.data.DataSession.java
com.llanox.mobile.easyvote.data.QuestionData.java
com.llanox.mobile.easyvote.data.UserData.java
com.llanox.mobile.easyvote.data.util.DateTimeUtils.java
com.llanox.mobile.easyvote.model.AnswerQuestion.java
com.llanox.mobile.easyvote.model.Question.java
com.llanox.mobile.easyvote.model.User.java