INNER CODE UNIT · Java

put

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

    public void put(@Nullable Collection<T> entities) {
        if (entities == null || entities.isEmpty()) {
            return;
        }

        Cursor<T> cursor = getWriter();
        try {
            for (T entity : entities) {
                cursor.put(entity);
            }
            commitWriter(cursor);
        } finally {
            releaseWriter(cursor);
        }
    }

    /**
     * Puts the given entities in a box in batches using a separate transaction for each batch.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…