use of io.realm.internal.Row in project realm-java by realm.
the class BooleansRealmProxy method realmSet$done.
public void realmSet$done(boolean value) {
if (proxyState.isUnderConstruction()) {
if (!proxyState.getAcceptDefaultValue$realm()) {
return;
}
final Row row = proxyState.getRow$realm();
row.getTable().setBoolean(columnInfo.doneIndex, row.getIndex(), value, true);
return;
}
proxyState.getRealm$realm().checkIfValid();
proxyState.getRow$realm().setBoolean(columnInfo.doneIndex, value);
}
use of io.realm.internal.Row in project realm-java by realm.
the class BooleansRealmProxy method realmSet$mCompleted.
public void realmSet$mCompleted(boolean value) {
if (proxyState.isUnderConstruction()) {
if (!proxyState.getAcceptDefaultValue$realm()) {
return;
}
final Row row = proxyState.getRow$realm();
row.getTable().setBoolean(columnInfo.mCompletedIndex, row.getIndex(), value, true);
return;
}
proxyState.getRealm$realm().checkIfValid();
proxyState.getRow$realm().setBoolean(columnInfo.mCompletedIndex, value);
}
use of io.realm.internal.Row in project realm-java by realm.
the class NullTypesRealmProxy method realmSet$fieldFloatNull.
public void realmSet$fieldFloatNull(Float value) {
if (proxyState.isUnderConstruction()) {
if (!proxyState.getAcceptDefaultValue$realm()) {
return;
}
final Row row = proxyState.getRow$realm();
if (value == null) {
row.getTable().setNull(columnInfo.fieldFloatNullIndex, row.getIndex(), true);
return;
}
row.getTable().setFloat(columnInfo.fieldFloatNullIndex, row.getIndex(), value, true);
return;
}
proxyState.getRealm$realm().checkIfValid();
if (value == null) {
proxyState.getRow$realm().setNull(columnInfo.fieldFloatNullIndex);
return;
}
proxyState.getRow$realm().setFloat(columnInfo.fieldFloatNullIndex, value);
}
use of io.realm.internal.Row in project realm-java by realm.
the class AllTypesRealmProxy method realmSet$columnBinary.
public void realmSet$columnBinary(byte[] 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 'columnBinary' to null.");
}
row.getTable().setBinaryByteArray(columnInfo.columnBinaryIndex, row.getIndex(), value, true);
return;
}
proxyState.getRealm$realm().checkIfValid();
if (value == null) {
throw new IllegalArgumentException("Trying to set non-nullable field 'columnBinary' to null.");
}
proxyState.getRow$realm().setBinaryByteArray(columnInfo.columnBinaryIndex, value);
}
use of io.realm.internal.Row in project realm-java by realm.
the class NullTypesRealmProxy method realmSet$fieldShortNotNull.
public void realmSet$fieldShortNotNull(Short 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 'fieldShortNotNull' to null.");
}
row.getTable().setLong(columnInfo.fieldShortNotNullIndex, row.getIndex(), value, true);
return;
}
proxyState.getRealm$realm().checkIfValid();
if (value == null) {
throw new IllegalArgumentException("Trying to set non-nullable field 'fieldShortNotNull' to null.");
}
proxyState.getRow$realm().setLong(columnInfo.fieldShortNotNullIndex, value);
}
Aggregations