Android Open Source - OpenHSK Helpful Cursor






From Project

Back to project page OpenHSK.

License

The source code is released under:

This work is licensed under a Creative Commons Attribution 3.0 Unported License. Original author of word lists: http://lingomi.com/ Original author of definitions: http://cc-cedict.org Original autho...

If you think the Android project OpenHSK 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 edu.openhsk.repository;
//from ww w .ja v  a 2 s  .  com
import android.database.Cursor;
import android.database.sqlite.SQLiteCursor;
import android.database.sqlite.SQLiteCursorDriver;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQuery;

public class HelpfulCursor extends SQLiteCursor implements Cursor {

  public HelpfulCursor(SQLiteDatabase db, SQLiteCursorDriver driver,
      String editTable, SQLiteQuery query) {
    super(db, driver, editTable, query);
  }

  public byte[] getBlob(String columnName) {
    return getBlob(getColumnIndex(columnName));
  }

  public String getString(String columnName) {
    return getString(getColumnIndex(columnName));
  }

  public short getShort(String columnName) {
    return getShort(getColumnIndex(columnName));
  }

  public int getInt(String columnName) {
    return getInt(getColumnIndex(columnName));
  }

  public long getLong(String columnName) {
    return getLong(getColumnIndex(columnName));
  }

  public float getFloat(String columnName) {
    return getFloat(getColumnIndex(columnName));
  }

  public double getDouble(String columnName) {
    return getDouble(getColumnIndex(columnName));
  }

  public boolean isNull(String columnName) {
    return isNull(getColumnIndex(columnName));
  }
  
  public boolean isFloat(String columnName) {
    return super.isFloat(getColumnIndex(columnName));
  }

  public boolean isBlob(String columnName) {
    return super.isBlob(getColumnIndex(columnName));
  }

  public boolean isString(String columnName) {
    return super.isString(getColumnIndex(columnName));
  }

  public boolean isLong(String columnName) {
    return super.isLong(getColumnIndex(columnName));
  }
}




Java Source Code List

edu.openhsk.CharacterListActivity.java
edu.openhsk.CharacterViewActivity.java
edu.openhsk.CreateWordActivity.java
edu.openhsk.CreateWordListActivity.java
edu.openhsk.ExamActivity.java
edu.openhsk.ExamResultActivity.java
edu.openhsk.MainActivity.java
edu.openhsk.QuizActivity.java
edu.openhsk.WordListSelectionActivity.java
edu.openhsk.adapters.WordListViewBinder.java
edu.openhsk.adapters.WordViewBinder.java
edu.openhsk.models.ExamResult.java
edu.openhsk.models.Hanzi.java
edu.openhsk.models.QuizHanzi.java
edu.openhsk.models.WordList.java
edu.openhsk.repository.DatabaseHelper.java
edu.openhsk.repository.DatabaseMetadata.java
edu.openhsk.repository.HanziRepository.java
edu.openhsk.repository.HelpfulCursor.java
edu.openhsk.repository.QuizRepository.java
edu.openhsk.repository.SimpleCursorLoader.java
edu.openhsk.repository.WordListRepository.java
edu.openhsk.service.QuizService.java
edu.openhsk.utils.AsyncSoundPlayer.java
edu.openhsk.utils.CSVExporter.java
edu.openhsk.utils.CSVParser.java
edu.openhsk.utils.PinyinReplacer.java
edu.openhsk.utils.SoundManager.java
edu.openhsk.views.BarGraph.java
edu.openhsk.views.Bar.java
edu.openhsk.views.ExamResultPieChart.java