@Test public void test_CreateOrModify_NullCollection() { assertFalse (sourceDocumentReferenceMetaInfoDao.createOrModify(null, WriteConcern.NONE).iterator().hasNext()); }
@Override public Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern) { if (null == sourceDocumentReferenceMetaInfos || sourceDocumentReferenceMetaInfos.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferenceMetaInfos, writeConcern); }
SourceDocumentReferenceMetaInfoDaoImpl implements SourceDocumentReferenceMetaInfoDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern) { if (null == sourceDocumentReferenceMetaInfos || sourceDocumentReferenceMetaInfos.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferenceMetaInfos, writeConcern); } }
SourceDocumentReferenceMetaInfoDaoImpl implements SourceDocumentReferenceMetaInfoDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern) { if (null == sourceDocumentReferenceMetaInfos || sourceDocumentReferenceMetaInfos.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferenceMetaInfos, writeConcern); } SourceDocumentReferenceMetaInfoDaoImpl(Datastore datastore); }
SourceDocumentReferenceMetaInfoDaoImpl implements SourceDocumentReferenceMetaInfoDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern) { if (null == sourceDocumentReferenceMetaInfos || sourceDocumentReferenceMetaInfos.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferenceMetaInfos, writeConcern); } SourceDocumentReferenceMetaInfoDaoImpl(Datastore datastore); @Override Long getCount(); @Override boolean create(SourceDocumentReferenceMetaInfo sourceDocumentReferenceMetaInfo, WriteConcern writeConcern); @Override Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern); @Override SourceDocumentReferenceMetaInfo read(String id); @Override List<SourceDocumentReferenceMetaInfo> read(Collection<String> ids); @Override boolean update(SourceDocumentReferenceMetaInfo sourceDocumentReferenceMetaInfo, WriteConcern writeConcern); @Override WriteResult delete(String id); }
SourceDocumentReferenceMetaInfoDaoImpl implements SourceDocumentReferenceMetaInfoDao { @Override public Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern) { if (null == sourceDocumentReferenceMetaInfos || sourceDocumentReferenceMetaInfos.isEmpty()) { return Collections.EMPTY_LIST; } return datastore.save(sourceDocumentReferenceMetaInfos, writeConcern); } SourceDocumentReferenceMetaInfoDaoImpl(Datastore datastore); @Override Long getCount(); @Override boolean create(SourceDocumentReferenceMetaInfo sourceDocumentReferenceMetaInfo, WriteConcern writeConcern); @Override Iterable<com.google.code.morphia.Key<SourceDocumentReferenceMetaInfo>> createOrModify(Collection<SourceDocumentReferenceMetaInfo> sourceDocumentReferenceMetaInfos, WriteConcern writeConcern); @Override SourceDocumentReferenceMetaInfo read(String id); @Override List<SourceDocumentReferenceMetaInfo> read(Collection<String> ids); @Override boolean update(SourceDocumentReferenceMetaInfo sourceDocumentReferenceMetaInfo, WriteConcern writeConcern); @Override WriteResult delete(String id);  }