Java 类io.realm.internal.Row 实例源码

项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
public void realmSet$columnDate(Date 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 'columnDate' to null.");
        }
        row.getTable().setDate(columnInfo.columnDateIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'columnDate' to null.");
    }
    proxyState.getRow$realm().setDate(columnInfo.columnDateIndex, value);
}
项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldStringNotNull(String 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 'fieldStringNotNull' to null.");
        }
        row.getTable().setString(columnInfo.fieldStringNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldStringNotNull' to null.");
    }
    proxyState.getRow$realm().setString(columnInfo.fieldStringNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldStringNull(String value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldStringNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setString(columnInfo.fieldStringNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldStringNullIndex);
        return;
    }
    proxyState.getRow$realm().setString(columnInfo.fieldStringNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldBooleanNotNull(Boolean 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 'fieldBooleanNotNull' to null.");
        }
        row.getTable().setBoolean(columnInfo.fieldBooleanNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldBooleanNotNull' to null.");
    }
    proxyState.getRow$realm().setBoolean(columnInfo.fieldBooleanNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldBooleanNull(Boolean value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldBooleanNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setBoolean(columnInfo.fieldBooleanNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldBooleanNullIndex);
        return;
    }
    proxyState.getRow$realm().setBoolean(columnInfo.fieldBooleanNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldBytesNotNull(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 'fieldBytesNotNull' to null.");
        }
        row.getTable().setBinaryByteArray(columnInfo.fieldBytesNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldBytesNotNull' to null.");
    }
    proxyState.getRow$realm().setBinaryByteArray(columnInfo.fieldBytesNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldBytesNull(byte[] value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldBytesNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setBinaryByteArray(columnInfo.fieldBytesNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldBytesNullIndex);
        return;
    }
    proxyState.getRow$realm().setBinaryByteArray(columnInfo.fieldBytesNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldByteNotNull(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 'fieldByteNotNull' to null.");
        }
        row.getTable().setLong(columnInfo.fieldByteNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldByteNotNull' to null.");
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldByteNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldByteNull(Byte value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldByteNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setLong(columnInfo.fieldByteNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldByteNullIndex);
        return;
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldByteNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldShortNull(Short value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldShortNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setLong(columnInfo.fieldShortNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldShortNullIndex);
        return;
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldShortNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldIntegerNotNull(Integer 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 'fieldIntegerNotNull' to null.");
        }
        row.getTable().setLong(columnInfo.fieldIntegerNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldIntegerNotNull' to null.");
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldIntegerNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldIntegerNull(Integer value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldIntegerNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setLong(columnInfo.fieldIntegerNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldIntegerNullIndex);
        return;
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldIntegerNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldLongNotNull(Long 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 'fieldLongNotNull' to null.");
        }
        row.getTable().setLong(columnInfo.fieldLongNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldLongNotNull' to null.");
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldLongNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldLongNull(Long value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldLongNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setLong(columnInfo.fieldLongNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldLongNullIndex);
        return;
    }
    proxyState.getRow$realm().setLong(columnInfo.fieldLongNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldDoubleNotNull(Double 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 'fieldDoubleNotNull' to null.");
        }
        row.getTable().setDouble(columnInfo.fieldDoubleNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldDoubleNotNull' to null.");
    }
    proxyState.getRow$realm().setDouble(columnInfo.fieldDoubleNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldDoubleNull(Double value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldDoubleNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setDouble(columnInfo.fieldDoubleNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldDoubleNullIndex);
        return;
    }
    proxyState.getRow$realm().setDouble(columnInfo.fieldDoubleNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldDateNotNull(Date 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 'fieldDateNotNull' to null.");
        }
        row.getTable().setDate(columnInfo.fieldDateNotNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        throw new IllegalArgumentException("Trying to set non-nullable field 'fieldDateNotNull' to null.");
    }
    proxyState.getRow$realm().setDate(columnInfo.fieldDateNotNullIndex, value);
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldDateNull(Date value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.fieldDateNullIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setDate(columnInfo.fieldDateNullIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.fieldDateNullIndex);
        return;
    }
    proxyState.getRow$realm().setDate(columnInfo.fieldDateNullIndex, value);
}
项目:GitHub    文件:SimpleRealmProxy.java   
@Override
public void realmSet$name(String value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            row.getTable().setNull(columnInfo.nameIndex, row.getIndex(), true);
            return;
        }
        row.getTable().setString(columnInfo.nameIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().setNull(columnInfo.nameIndex);
        return;
    }
    proxyState.getRow$realm().setString(columnInfo.nameIndex, value);
}
项目:GitHub    文件:DynamicRealmObject.java   
/**
 * Creates a dynamic Realm object based on an existing object.
 *
 * @param obj the Realm object to convert to a dynamic object. Only objects managed by {@link Realm} can be used.
 * @throws IllegalArgumentException if object isn't managed by Realm or is a {@link DynamicRealmObject} already.
 */
public DynamicRealmObject(RealmModel obj) {
    //noinspection ConstantConditions
    if (obj == null) {
        throw new IllegalArgumentException("A non-null object must be provided.");
    }
    if (obj instanceof DynamicRealmObject) {
        throw new IllegalArgumentException("The object is already a DynamicRealmObject: " + obj);
    }

    if (!RealmObject.isManaged(obj)) {
        throw new IllegalArgumentException("An object managed by Realm must be provided. This " +
                "is an unmanaged object.");
    }

    if (!RealmObject.isValid(obj)) {
        throw new IllegalArgumentException("A valid object managed by Realm must be provided. " +
                "This object was deleted.");
    }

    RealmObjectProxy proxy = (RealmObjectProxy) obj;
    Row row = proxy.realmGet$proxyState().getRow$realm();
    proxyState.setRealm$realm(proxy.realmGet$proxyState().getRealm$realm());
    proxyState.setRow$realm(((UncheckedRow) row).convertToChecked());
    proxyState.setConstructionFinished();
}
项目:GitHub    文件:RealmObject.java   
/**
 * Deletes the object from the Realm it is currently associated with.
 * <p>
 * After this method is called the object will be invalid and any operation (read or write) performed on it will
 * fail with an IllegalStateException.
 *
 * @throws IllegalStateException if the corresponding Realm is closed or in an incorrect thread.
 * @see #isValid()
 */
public static <E extends RealmModel> void deleteFromRealm(E object) {
    if (!(object instanceof RealmObjectProxy)) {
        // TODO What type of exception IllegalArgument/IllegalState?
        throw new IllegalArgumentException("Object not managed by Realm, so it cannot be removed.");
    }

    RealmObjectProxy proxy = (RealmObjectProxy) object;
    if (proxy.realmGet$proxyState().getRow$realm() == null) {
        throw new IllegalStateException("Object malformed: missing object in Realm. Make sure to instantiate RealmObjects with Realm.createObject()");
    }
    if (proxy.realmGet$proxyState().getRealm$realm() == null) {
        throw new IllegalStateException("Object malformed: missing Realm. Make sure to instantiate RealmObjects with Realm.createObject()");
    }

    proxy.realmGet$proxyState().getRealm$realm().checkIfValid();
    Row row = proxy.realmGet$proxyState().getRow$realm();
    row.getTable().moveLastOver(row.getIndex());
    proxy.realmGet$proxyState().setRow$realm(InvalidRow.INSTANCE);
}
项目:Hyber-SDK-Android    文件:RealmRecyclerViewAdapter.java   
private String getRealmRowIdentifier(int realmIndex, HashMap<Long, RealmFieldType> columnIndexRealmFieldTypeHashMap) {
    String rowIdentifier = "";

    RealmObjectProxy proxy = (RealmObjectProxy) adapterData.get(realmIndex);
    Row row = proxy.realmGet$proxyState().getRow$realm();

    for (Entry<Long, RealmFieldType> entry : columnIndexRealmFieldTypeHashMap.entrySet()) {
        switch (entry.getValue()) {
            case STRING:
                rowIdentifier += row.getString(entry.getKey());
                break;
            case INTEGER:
                rowIdentifier += String.valueOf(row.getLong(entry.getKey()));
                break;
            case BOOLEAN:
                rowIdentifier += String.valueOf(row.getBoolean(entry.getKey()));
                break;
            default:
                throw new IllegalStateException("Unsupported RealmFieldType, use only STRING, INTEGER or BOOLEAN field types");
        }
    }
    return rowIdentifier;
}
项目:StethoRealm    文件:Database.java   
RowWrapper_0_80(Row row) {
    this.row = row;

    try {
        final Class<? extends Row> aClass = row.getClass();
        getIndexMethod = aClass.getMethod("getIndex");
        getColumnTypeMethod = aClass.getMethod("getColumnType", Long.TYPE);
        isNullLinkMethod = aClass.getMethod("isNullLink", Long.TYPE);
        getLongMethod = aClass.getMethod("getLong", Long.TYPE);
        getBooleanMethod = aClass.getMethod("getBoolean", Long.TYPE);
        getFloatMethod = aClass.getMethod("getFloat", Long.TYPE);
        getDoubleMethod = aClass.getMethod("getDouble", Long.TYPE);
        getDateMethod = aClass.getMethod("getDate", Long.TYPE);
        getStringMethod = aClass.getMethod("getString", Long.TYPE);
        getBinaryByteArrayMethod = aClass.getMethod("getBinaryByteArray", Long.TYPE);
        getLinkMethod = aClass.getMethod("getLink", Long.TYPE);
        getLinkListMethod = aClass.getMethod("getLinkList", Long.TYPE);
    } catch (NoSuchMethodException e) {
        throw new RuntimeException(e);
    }
}
项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
public void realmSet$columnLong(long value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setLong(columnInfo.columnLongIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setLong(columnInfo.columnLongIndex, value);
}
项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
public void realmSet$columnBoolean(boolean value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setBoolean(columnInfo.columnBooleanIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setBoolean(columnInfo.columnBooleanIndex, value);
}
项目:GitHub    文件:AllTypesRealmProxy.java   
@Override
public void realmSet$columnObject(some.test.AllTypes value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        if (proxyState.getExcludeFields$realm().contains("columnObject")) {
            return;
        }
        if (value != null && !RealmObject.isManaged(value)) {
            value = ((Realm) proxyState.getRealm$realm()).copyToRealm(value);
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            // Table#nullifyLink() does not support default value. Just using Row.
            row.nullifyLink(columnInfo.columnObjectIndex);
            return;
        }
        proxyState.checkValidObject(value);
        row.getTable().setLink(columnInfo.columnObjectIndex, row.getIndex(), ((RealmObjectProxy) value).realmGet$proxyState().getRow$realm().getIndex(), true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().nullifyLink(columnInfo.columnObjectIndex);
        return;
    }
    proxyState.checkValidObject(value);
    proxyState.getRow$realm().setLink(columnInfo.columnObjectIndex, ((RealmObjectProxy) value).realmGet$proxyState().getRow$realm().getIndex());
}
项目:GitHub    文件:NullTypesRealmProxy.java   
@Override
public void realmSet$fieldObjectNull(some.test.NullTypes value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        if (proxyState.getExcludeFields$realm().contains("fieldObjectNull")) {
            return;
        }
        if (value != null && !RealmObject.isManaged(value)) {
            value = ((Realm) proxyState.getRealm$realm()).copyToRealm(value);
        }
        final Row row = proxyState.getRow$realm();
        if (value == null) {
            // Table#nullifyLink() does not support default value. Just using Row.
            row.nullifyLink(columnInfo.fieldObjectNullIndex);
            return;
        }
        proxyState.checkValidObject(value);
        row.getTable().setLink(columnInfo.fieldObjectNullIndex, row.getIndex(), ((RealmObjectProxy) value).realmGet$proxyState().getRow$realm().getIndex(), true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    if (value == null) {
        proxyState.getRow$realm().nullifyLink(columnInfo.fieldObjectNullIndex);
        return;
    }
    proxyState.checkValidObject(value);
    proxyState.getRow$realm().setLink(columnInfo.fieldObjectNullIndex, ((RealmObjectProxy) value).realmGet$proxyState().getRow$realm().getIndex());
}
项目:GitHub    文件:SimpleRealmProxy.java   
@Override
public void realmSet$age(int value) {
    if (proxyState.isUnderConstruction()) {
        if (!proxyState.getAcceptDefaultValue$realm()) {
            return;
        }
        final Row row = proxyState.getRow$realm();
        row.getTable().setLong(columnInfo.ageIndex, row.getIndex(), value, true);
        return;
    }

    proxyState.getRealm$realm().checkIfValid();
    proxyState.getRow$realm().setLong(columnInfo.ageIndex, value);
}
项目:GitHub    文件:RealmDefaultModuleMediator.java   
@Override
public <E extends RealmModel> E newInstance(Class<E> clazz, Object baseRealm, Row row, ColumnInfo columnInfo, boolean acceptDefaultValue, List<String> excludeFields) {
    final BaseRealm.RealmObjectContext objectContext = BaseRealm.objectContext.get();
    try {
        objectContext.set((BaseRealm) baseRealm, row, columnInfo, acceptDefaultValue, excludeFields);
        checkClass(clazz);

        if (clazz.equals(some.test.AllTypes.class)) {
            return clazz.cast(new io.realm.AllTypesRealmProxy());
        }
        throw getMissingProxyClassException(clazz);
    } finally {
        objectContext.clear();
    }
}
项目:GitHub    文件:BooleansRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:BooleansRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:BooleansRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:BooleansRealmProxy.java   
@Override
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);
}
项目:GitHub    文件:BaseRealm.java   
public void set(BaseRealm realm, Row row, ColumnInfo columnInfo,
        boolean acceptDefaultValue, List<String> excludeFields) {
    this.realm = realm;
    this.row = row;
    this.columnInfo = columnInfo;
    this.acceptDefaultValue = acceptDefaultValue;
    this.excludeFields = excludeFields;
}