Java Code Examples for com.socks.jiandan.base.JDApplication#getDaoSession()
The following examples show how to use
com.socks.jiandan.base.JDApplication#getDaoSession() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SisterCache.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
public static SisterCache getInstance(Context context) { if (instance == null) { synchronized (SisterCache.class) { if (instance == null) { instance = new SisterCache(); } } mDaoSession = JDApplication.getDaoSession(context); mPictureCacheDao = mDaoSession.getSisterCacheDao(); } return instance; }
Example 2
Source File: FreshNewsCache.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
public static FreshNewsCache getInstance(Context context) { if (instance == null) { synchronized (FreshNewsCache.class) { if (instance == null) { instance = new FreshNewsCache(); } } mDaoSession = JDApplication.getDaoSession(context); mFreshNewsCacheDao = mDaoSession.getFreshNewsCacheDao(); } return instance; }
Example 3
Source File: VideoCache.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
public static VideoCache getInstance(Context context) { if (instance == null) { synchronized (VideoCache.class) { if (instance == null) { instance = new VideoCache(); } } mDaoSession = JDApplication.getDaoSession(context); mVideoCacheDao = mDaoSession.getVideoCacheDao(); } return instance; }
Example 4
Source File: PictureCache.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
public static PictureCache getInstance(Context context) { if (instance == null) { synchronized (PictureCache.class) { if (instance == null) { instance = new PictureCache(); } } mDaoSession = JDApplication.getDaoSession(context); mPictureCacheDao = mDaoSession.getPictureCacheDao(); } return instance; }
Example 5
Source File: JokeCache.java From JianDan_OkHttpWithVolley with Apache License 2.0 | 5 votes |
public static JokeCache getInstance(Context context) { if (instance == null) { synchronized (JokeCache.class) { if (instance == null) { instance = new JokeCache(); } } mDaoSession = JDApplication.getDaoSession(context); mJokeCacheDao = mDaoSession.getJokeCacheDao(); } return instance; }
Example 6
Source File: SisterCache.java From JianDan with Apache License 2.0 | 5 votes |
public static SisterCache getInstance(Context context) { if (instance == null) { synchronized (SisterCache.class) { if (instance == null) { instance = new SisterCache(); } } mDaoSession = JDApplication.getDaoSession(context); mPictureCacheDao = mDaoSession.getSisterCacheDao(); } return instance; }
Example 7
Source File: FreshNewsCache.java From JianDan with Apache License 2.0 | 5 votes |
public static FreshNewsCache getInstance(Context context) { if (instance == null) { synchronized (FreshNewsCache.class) { if (instance == null) { instance = new FreshNewsCache(); } } mDaoSession = JDApplication.getDaoSession(context); mFreshNewsCacheDao = mDaoSession.getFreshNewsCacheDao(); } return instance; }
Example 8
Source File: VideoCache.java From JianDan with Apache License 2.0 | 5 votes |
public static VideoCache getInstance(Context context) { if (instance == null) { synchronized (VideoCache.class) { if (instance == null) { instance = new VideoCache(); } } mDaoSession = JDApplication.getDaoSession(context); mVideoCacheDao = mDaoSession.getVideoCacheDao(); } return instance; }
Example 9
Source File: PictureCache.java From JianDan with Apache License 2.0 | 5 votes |
public static PictureCache getInstance(Context context) { if (instance == null) { synchronized (PictureCache.class) { if (instance == null) { instance = new PictureCache(); } } mDaoSession = JDApplication.getDaoSession(context); mPictureCacheDao = mDaoSession.getPictureCacheDao(); } return instance; }
Example 10
Source File: JokeCache.java From JianDan with Apache License 2.0 | 5 votes |
public static JokeCache getInstance(Context context) { if (instance == null) { synchronized (JokeCache.class) { if (instance == null) { instance = new JokeCache(); } } mDaoSession = JDApplication.getDaoSession(context); mJokeCacheDao = mDaoSession.getJokeCacheDao(); } return instance; }
Example 11
Source File: SisterCache.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
public static SisterCache getInstance(Context context) { if (instance == null) { synchronized (SisterCache.class) { if (instance == null) { instance = new SisterCache(); } } mDaoSession = JDApplication.getDaoSession(context); mPictureCacheDao = mDaoSession.getSisterCacheDao(); } return instance; }
Example 12
Source File: FreshNewsCache.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
public static FreshNewsCache getInstance(Context context) { if (instance == null) { synchronized (FreshNewsCache.class) { if (instance == null) { instance = new FreshNewsCache(); } } mDaoSession = JDApplication.getDaoSession(context); mFreshNewsCacheDao = mDaoSession.getFreshNewsCacheDao(); } return instance; }
Example 13
Source File: VideoCache.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
public static VideoCache getInstance(Context context) { if (instance == null) { synchronized (VideoCache.class) { if (instance == null) { instance = new VideoCache(); } } mDaoSession = JDApplication.getDaoSession(context); mVideoCacheDao = mDaoSession.getVideoCacheDao(); } return instance; }
Example 14
Source File: PictureCache.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
public static PictureCache getInstance(Context context) { if (instance == null) { synchronized (PictureCache.class) { if (instance == null) { instance = new PictureCache(); } } mDaoSession = JDApplication.getDaoSession(context); mPictureCacheDao = mDaoSession.getPictureCacheDao(); } return instance; }
Example 15
Source File: JokeCache.java From JianDan_OkHttp with Apache License 2.0 | 5 votes |
public static JokeCache getInstance(Context context) { if (instance == null) { synchronized (JokeCache.class) { if (instance == null) { instance = new JokeCache(); } } mDaoSession = JDApplication.getDaoSession(context); mJokeCacheDao = mDaoSession.getJokeCacheDao(); } return instance; }