INNER CODE UNIT · Java

remove

objectbox/objectbox-java · objectbox-java/src/main/java/io/objectbox/Box.java:466

    public boolean remove(long id) {
        Cursor<T> cursor = getWriter();
        boolean removed;
        try {
            removed = cursor.deleteEntity(id);
            commitWriter(cursor);
        } finally {
            releaseWriter(cursor);
        }
        return removed;
    }

    /**
     * Like {@link #remove(long)}, but removes multiple objects in a single transaction.
     */
    public void remove(@Nullable long... ids) {
        if (ids == null || ids.length == 0) {
            return;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…