/** * Save all the beans from a Collection. */ public static int saveAll(Collection<?> beans) throws OptimisticLockException { return serverMgr.getDefaultServer().saveAll(beans); }
/** * Save all the beans in the collection. */ public int saveAll(Collection<T> bean) { return db().saveAll(bean); }
/** * Save all the beans from a Collection. */ public static int saveAll(Collection<?> beans) throws OptimisticLockException { return serverMgr.getDefaultServer().saveAll(beans); }
@Override public <S extends T> Iterable<S> saveAll(Iterable<S> entities) { Assert.notNull(entities, "The given Iterable of entities not be null!"); db().saveAll((Collection<?>) entities); return entities; }
/** * Save all the beans in the collection. */ public int saveAll(Collection<T> bean) { return db().saveAll(bean); }
@Override public <S extends T> Iterable<S> saveAll(Iterable<S> entities) { Assert.notNull(entities, "The given Iterable of entities not be null!"); db().saveAll((Collection<?>) entities); return entities; }
@Override public List<MODEL_TYPE> save(Iterable<MODEL_TYPE> iterable) { List<MODEL_TYPE> list = C.list(iterable); if (list.isEmpty()) { return list; } ebean_(false).saveAll(list); return list; }
@Override public List<MODEL_TYPE> save(Iterable<MODEL_TYPE> iterable) { List<MODEL_TYPE> list = C.list(iterable); if (list.isEmpty()) { return list; } ebean().saveAll(list); return list; }
public List<MODEL_TYPE> save(Transaction tx, Iterable<MODEL_TYPE> iterable) { List<MODEL_TYPE> list = C.list(iterable); ebean_(false).saveAll(list, tx); return list; }
public List<MODEL_TYPE> save(Transaction tx, Iterable<MODEL_TYPE> iterable) { List<MODEL_TYPE> list = C.list(iterable); ebean().saveAll(list, tx); return list; }
private void insertProducts() { products.add(new Product("C001", "Chair")); products.add(new Product("DSK1", "Desk")); products.add(new Product("C002", "Computer")); products.add(new Product("C003", "Printer")); server.saveAll(products); }