當前位置: 首頁>>代碼示例>>Java>>正文


Java OrmLiteSqliteOpenHelper類代碼示例

本文整理匯總了Java中com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper的典型用法代碼示例。如果您正苦於以下問題:Java OrmLiteSqliteOpenHelper類的具體用法?Java OrmLiteSqliteOpenHelper怎麽用?Java OrmLiteSqliteOpenHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OrmLiteSqliteOpenHelper類屬於com.j256.ormlite.android.apptools包,在下文中一共展示了OrmLiteSqliteOpenHelper類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: CDKDao

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
/**
 * 構造函數
 * 
 * @param helper
 */
@SuppressWarnings("unchecked")
public CDKDao(OrmLiteSqliteOpenHelper sqliteOpenHelper)
{
	// this.mOpenHelper = SdkDbHelper.getDatabaseHelper(context);

	this.mSqliteOpenHelper = sqliteOpenHelper;
	Class<Model> modelClass = (Class<Model>) ((ParameterizedType) getClass().getGenericSuperclass())
			.getActualTypeArguments()[0];
	mRuntimeDao = mSqliteOpenHelper.getRuntimeExceptionDao(modelClass);
}
 
開發者ID:benniaobuguai,項目名稱:android-project-gallery,代碼行數:16,代碼來源:CDKDao.java

示例2: RockyDao

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
/**
 * 構造函數
 * 
 * @param helper
 */
@SuppressWarnings("unchecked")
public RockyDao(OrmLiteSqliteOpenHelper sqliteOpenHelper)
{
	// this.mOpenHelper = SdkDbHelper.getDatabaseHelper(context);

	this.mSqliteOpenHelper = sqliteOpenHelper;
	Class<Model> modelClass = (Class<Model>) ((ParameterizedType) getClass().getGenericSuperclass())
			.getActualTypeArguments()[0];
	mRuntimeDao = mSqliteOpenHelper.getRuntimeExceptionDao(modelClass);
}
 
開發者ID:benniaobuguai,項目名稱:android-project-wo2b,代碼行數:16,代碼來源:RockyDao.java

示例3: ORMLoader

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
public ORMLoader(Context context, OrmLiteSqliteOpenHelper databaseHelper, PreparedQuery<T> query) throws Exception {
	super(context);
	if (databaseHelper == null) {
		throw new Exception("Database Helper cannot be null");
	}
	if (query == null) {
		throw new Exception("Query cannot be null");
	}
	mDatabaseHelper = databaseHelper;
	mObserver = new ForceLoadContentObserver();
	mQuery = query;
}
 
開發者ID:seguemodev,項目名稱:Meducated-Ninja,代碼行數:13,代碼來源:ORMLoader.java

示例4: GoalsAsyncLoader

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
public GoalsAsyncLoader(Context context, OrmLiteSqliteOpenHelper helper, ListView listView,
                        GoalsListItemSelectedListener listener) {
    try {
        this.goalsDao = helper.getDao(Goal.class);
        this.context = context;
        this.finalView = listView;
        this.listener = listener;
    } catch (SQLException e) {
        Log.e(APP_TAG,"Error retrieving dao for goals async loader. Failing app",e);
        throw new ExceptionInInitializerError("Error initializing Goals Async Loader. " + e.getMessage());
    }
}
 
開發者ID:ti3r,項目名稱:woutly-android,代碼行數:13,代碼來源:GoalsAsyncLoader.java

示例5: GameRankingBiz

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
public GameRankingBiz(OrmLiteSqliteOpenHelper sqliteOpenHelper)
{
	super(sqliteOpenHelper);
}
 
開發者ID:benniaobuguai,項目名稱:android-project-gallery,代碼行數:5,代碼來源:GameRankingBiz.java

示例6: getHelperInternal

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
protected H getHelperInternal(Context context) {
    OrmLiteSqliteOpenHelper newHelper = OpenHelperManager.getHelper(context);
    logger.trace("{}: got new helper {} from OpenHelperManager", this, newHelper);
    //noinspection unchecked
    return (H) newHelper;
}
 
開發者ID:hkq325800,項目名稱:YellowNote,代碼行數:7,代碼來源:MyOrmLiteBaseActivity.java

示例7: SyncHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
public SyncHelper(OrmLiteSqliteOpenHelper syncDatabaseHelper) {
    this.dbHelper = syncDatabaseHelper;
}
 
開發者ID:ntoskrnl,項目名稱:DataSync,代碼行數:4,代碼來源:SyncHelper.java

示例8: createHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
@Override
protected OrmLiteSqliteOpenHelper createHelper() {
    return new DefaultDatabaseHelper(getContext());
}
 
開發者ID:blandware,項目名稱:android-atleap,代碼行數:5,代碼來源:DefaultProvider.java

示例9: createHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
@Override
protected OrmLiteSqliteOpenHelper createHelper() {
    return new TestDatabaseHelper(getContext());
}
 
開發者ID:blandware,項目名稱:android-atleap,代碼行數:5,代碼來源:TestProvider.java

示例10: AbstractOrmDatabaseRequest

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
public AbstractOrmDatabaseRequest(Context context,Class<? extends OrmLiteSqliteOpenHelper> helplerClass){
	mContext=context;
	this.helplerClass=helplerClass;
}
 
開發者ID:cat9,項目名稱:FrameLite,代碼行數:5,代碼來源:AbstractOrmDatabaseRequest.java

示例11: getHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
private OrmLiteSqliteOpenHelper getHelper(){
	return OpenHelperManager.getHelper(mContext, helplerClass);
}
 
開發者ID:cat9,項目名稱:FrameLite,代碼行數:4,代碼來源:AbstractOrmDatabaseRequest.java

示例12: getHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
@SuppressWarnings("deprecation")
private OrmLiteSqliteOpenHelper getHelper() {
	OpenHelperManager.setOpenHelperClass(DatabaseHelper.class);
	return OpenHelperManager.getHelper(getContext());
}
 
開發者ID:j256,項目名稱:ormlite-android-tests,代碼行數:6,代碼來源:AndroidConnectionSourceTest.java

示例13: getSqliteOpenHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
/**
 * 返回OrmLiteSqliteOpenHelper對象
 * 
 * @return
 */
public OrmLiteSqliteOpenHelper getSqliteOpenHelper()
{
	return mSqliteOpenHelper;
}
 
開發者ID:benniaobuguai,項目名稱:android-project-gallery,代碼行數:10,代碼來源:CDKDao.java

示例14: BaseBiz

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
/**
 * 構造函數
 * 
 * @param helper
 */
public BaseBiz(OrmLiteSqliteOpenHelper helper)
{
	this.mOpenHelper = helper;
}
 
開發者ID:benniaobuguai,項目名稱:android-project-wo2b,代碼行數:10,代碼來源:BaseBiz.java

示例15: getDatabaseHelper

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; //導入依賴的package包/類
/**
 * 返回DatabaseHelper對象
 * 
 * @return
 */
public OrmLiteSqliteOpenHelper getDatabaseHelper()
{
	return mOpenHelper;
}
 
開發者ID:benniaobuguai,項目名稱:android-project-wo2b,代碼行數:10,代碼來源:BaseBiz.java


注:本文中的com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。