Search in sources :

Example 21 with Row

use of io.realm.internal.Row in project realm-java by realm.

the class AllTypesRealmProxy method realmSet$columnDouble.

public void realmSet$columnDouble(double value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setDouble(columnInfo.columnDoubleIndex, row.getIndex(), value, true);
        return;
    }
    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setDouble(columnInfo.columnDoubleIndex, value);
}
Also used : Row(io.realm.internal.Row)

Example 22 with Row

use of io.realm.internal.Row in project realm-java by realm.

the class BooleansRealmProxy method realmSet$anotherBoolean.

public void realmSet$anotherBoolean(boolean value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setBoolean(columnInfo.anotherBooleanIndex, row.getIndex(), value, true);
        return;
    }
    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setBoolean(columnInfo.anotherBooleanIndex, value);
}
Also used : Row(io.realm.internal.Row)

Example 23 with Row

use of io.realm.internal.Row in project realm-java by realm.

the class BooleansRealmProxy method realmSet$isReady.

public void realmSet$isReady(boolean value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setBoolean(columnInfo.isReadyIndex, row.getIndex(), value, true);
        return;
    }
    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setBoolean(columnInfo.isReadyIndex, value);
}
Also used : Row(io.realm.internal.Row)

Example 24 with Row

use of io.realm.internal.Row in project realm-java by realm.

the class NullTypesRealmProxy method realmSet$fieldFloatNotNull.

public void realmSet$fieldFloatNotNull(Float value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            throw new IllegalArgumentException("Trying to set non-nullable field 'fieldFloatNotNull' to null.");
        }
        row.getTable().setFloat(columnInfo.fieldFloatNotNullIndex, row.getIndex(), value, true);
        return;
    }
    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldFloatNotNull' to null.");
    }
    proxyState.getRow$realm().setFloat(columnInfo.fieldFloatNotNullIndex, value);
}
Also used : Row(io.realm.internal.Row)

Example 25 with Row

use of io.realm.internal.Row in project realm-java by realm.

the class AllTypesRealmProxy method realmSet$columnFloat.

public void realmSet$columnFloat(float value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setFloat(columnInfo.columnFloatIndex, row.getIndex(), value, true);
        return;
    }
    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setFloat(columnInfo.columnFloatIndex, value);
}
Also used : Row(io.realm.internal.Row)

Aggregations

Row (io.realm.internal.Row)38 RealmObjectProxy (io.realm.internal.RealmObjectProxy)6 InvalidRow (io.realm.internal.InvalidRow)2 UiThreadTest (android.support.test.annotation.UiThreadTest)1 AllTypes (io.realm.entities.AllTypes)1 Collection (io.realm.internal.Collection)1 PendingRow (io.realm.internal.PendingRow)1 Test (org.junit.Test)1