package jackall.moncalc.db import io.realm.Realm import jackall.moncalc.vo.Temple /** * Created by matsumoto_k on 2017/11/02. */ class TempleRealmHelper : RealmHelper<Temple>() { override fun insert(mRealm: Realm, realmObject: Temple) { mRealm.executeTransaction { mRealm.copyToRealmOrUpdate(realmObject) } } override fun insert(mRealm: Realm, realmObject: List<Temple>) { mRealm.executeTransaction { mRealm.copyToRealmOrUpdate(realmObject) } } override fun findAll(mRealm: Realm): List<Temple> { return mRealm.where(Temple::class.java).findAll() } }