当前位置: 首页>>代码示例>>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;未经允许,请勿转载。