results = store.batch().create(path).byAppending().and().execute(); } else { results = store.batch().create(path).byAppending().with(properties).and().execute();
switch (behavior) { case APPEND: create.byAppending(); break; case REPLACE:
/** * {@inheritDoc} * * @see org.modeshape.graph.io.Destination#create(org.modeshape.graph.property.Path, Iterable) */ public void create( Path path, Iterable<Property> properties ) { assert properties != null; Create<Batch> create = batch.create(path, properties); assert create != null; NodeConflictBehavior behavior = createBehaviorFor(path); if (behavior != null) { switch (behavior) { case APPEND: create.byAppending(); break; case REPLACE: create.orReplace(); break; case UPDATE: create.orUpdate(); break; case DO_NOT_REPLACE: create.ifAbsent(); break; } } create.and(); }