package com.otherhshe.niceread.utils;

/**
 * Author: Othershe
 * Time: 2016/8/19 16:52
 */
public class DBUtil {
//    public static <T extends RealmObject> void save(List<T> realmList) {
//        Realm realm = Realm.getDefaultInstance();
//        realm.beginTransaction();
//        realm.copyToRealm(realmList);
//        realm.commitTransaction();
//    }
//
//    public static <T extends RealmObject> RealmResults<T> findAll(Class<T> realmObjectClass, String subtype) {
//        Realm realm = Realm.getDefaultInstance();
//        return realm.where(realmObjectClass).equalTo("subtype", subtype).findAll();
//    }
}
