Created
June 12, 2018 08:45
-
-
Save engr-erum/aa142387796fb1c3b449619d4e6b7418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<CustomerDailyStockData> getCustomerStockDataByCustomerId(int customerMasterId) { | |
Realm realm = Realm.getDefaultInstance(); | |
RealmResults<CustomerDailyStockData> stockDatas = realm.where(CustomerDailyStockData.class).equalTo(CustomerDailyStockData.CUSTOMER_MASTER_ID, customerMasterId).findAll(); | |
if (stockDatas != null) { | |
List<CustomerDailyStockData> stockDatasList = (List<CustomerDailyStockData>) realm.copyFromRealm(stockDatas); | |
return stockDatasList; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment