Search in sources :

Example 6 with NonLatinFieldNames

use of io.realm.entities.NonLatinFieldNames in project realm-java by realm.

the class RealmResultsTests method populateTestRealm.

private void populateTestRealm(Realm testRealm, int objects) {
    testRealm.beginTransaction();
    testRealm.deleteAll();
    for (int i = 0; i < objects; i++) {
        AllTypes allTypes = testRealm.createObject(AllTypes.class);
        allTypes.setColumnBoolean((i % 3) == 0);
        allTypes.setColumnBinary(new byte[] { 1, 2, 3 });
        allTypes.setColumnDate(new Date(DECADE_MILLIS * (i - (objects / 2))));
        allTypes.setColumnDouble(3.1415);
        allTypes.setColumnFloat(1.234567f + i);
        allTypes.setColumnString("test data " + i);
        allTypes.setColumnLong(i);
        NonLatinFieldNames nonLatinFieldNames = testRealm.createObject(NonLatinFieldNames.class);
        nonLatinFieldNames.set델타(i);
        nonLatinFieldNames.setΔέλτα(i);
        nonLatinFieldNames.set베타(1.234567f + i);
        nonLatinFieldNames.setΒήτα(1.234567f + i);
    }
    testRealm.commitTransaction();
}
Also used : NonLatinFieldNames(io.realm.entities.NonLatinFieldNames) AllTypes(io.realm.entities.AllTypes) Date(java.util.Date)

Aggregations

NonLatinFieldNames (io.realm.entities.NonLatinFieldNames)6 AllTypes (io.realm.entities.AllTypes)5 Date (java.util.Date)5 Dog (io.realm.entities.Dog)2 AllJavaTypes (io.realm.entities.AllJavaTypes)1