@Test public void testRead() throws Exception { SourceDocumentReference sourceDocumentReferenceFromRead = sourceDocumentReferenceDao.read(""); assertNull(sourceDocumentReferenceFromRead); final SourceDocumentReference sourceDocumentReference = new SourceDocumentReference(new ReferenceOwner("1", "1", "1"), "test", null, null, 0l, null, true); sourceDocumentReferenceDao.createOrModify(sourceDocumentReference, WriteConcern.NONE); sourceDocumentReferenceFromRead = sourceDocumentReferenceDao.read(sourceDocumentReference.getId()); assertEquals(sourceDocumentReference.getUrl(), sourceDocumentReferenceFromRead.getUrl()); sourceDocumentReferenceDao.delete(sourceDocumentReference.getId()); }
@Override public SourceDocumentReference read(String id) { return datastore.get(SourceDocumentReference.class, id); }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public SourceDocumentReference read(String id) { return datastore.get(SourceDocumentReference.class, id); } }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public SourceDocumentReference read(String id) { return datastore.get(SourceDocumentReference.class, id); } SourceDocumentReferenceDaoImpl(Datastore datastore); }
SourceDocumentReferenceDaoImpl implements SourceDocumentReferenceDao { @Override public SourceDocumentReference read(String id) { return datastore.get(SourceDocumentReference.class, id); } 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 SourceDocumentReference read(String id) { return datastore.get(SourceDocumentReference.class, id); } 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);  }