@Test public void test_CreateOrModify_NullCollection() throws Exception { assertFalse(sourceDocumentReferenceDao.createOrModify((Collection) null, WriteConcern.NONE).iterator().hasNext()); }
@Override public Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern) { if (null == sourceDocumentReferences || sourceDocumentReferences.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferences, writeConcern); }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern) { if (null == sourceDocumentReferences || sourceDocumentReferences.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferences, writeConcern); } }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern) { if (null == sourceDocumentReferences || sourceDocumentReferences.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferences, writeConcern); } SourceDocumentReferenceDaoImpl(Datastore datastore); }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern) { if (null == sourceDocumentReferences || sourceDocumentReferences.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferences, writeConcern); } SourceDocumentReferenceDaoImpl(Datastore datastore); @Override Long getCount(); @Override boolean create(SourceDocumentReference sourceDocumentReference, WriteConcern writeConcern); @Override Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern); @Override void createOrModify(SourceDocumentReference sourceDocumentReference, WriteConcern writeConcern); @Override SourceDocumentReference read(String id); @Override List<SourceDocumentReference> read(List<String> ids); @Override boolean update(SourceDocumentReference sourceDocumentReference, WriteConcern writeConcern); @Override WriteResult delete(String id); @Override List<SourceDocumentReference> findByRecordID(String recordID); @Override List<SourceDocumentReference> deactivateDocuments(ReferenceOwner owner, WriteConcern concern); }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern) { if (null == sourceDocumentReferences || sourceDocumentReferences.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferences, writeConcern); } SourceDocumentReferenceDaoImpl(Datastore datastore); @Override Long getCount(); @Override boolean create(SourceDocumentReference sourceDocumentReference, WriteConcern writeConcern); @Override Iterable<com.google.code.morphia.Key<SourceDocumentReference>> createOrModify(Collection<SourceDocumentReference> sourceDocumentReferences, WriteConcern writeConcern); @Override void createOrModify(SourceDocumentReference sourceDocumentReference, WriteConcern writeConcern); @Override SourceDocumentReference read(String id); @Override List<SourceDocumentReference> read(List<String> ids); @Override boolean update(SourceDocumentReference sourceDocumentReference, WriteConcern writeConcern); @Override WriteResult delete(String id); @Override List<SourceDocumentReference> findByRecordID(String recordID); @Override List<SourceDocumentReference> deactivateDocuments(ReferenceOwner owner, WriteConcern concern);  }