@Test public void findSerializationByTypeClass() { Serialization validSerialization = serializationDao.findByTypeClass("streamflow.test.First"); assertNotNull("The returned serialization should not be null with valid query values", validSerialization); Serialization invalidSerialization = serializationDao.findByTypeClass("streamflow.test.Invalid"); assertNull("The returned serialization should be null with invalid query values", invalidSerialization); }
@Override public Serialization findByTypeClass(String typeClass) { return query().field("typeClass").equal(typeClass).get(); }
MongoSerializationDao extends MongoDao<Serialization, String> implements SerializationDao { @Override public Serialization findByTypeClass(String typeClass) { return query().field("typeClass").equal(typeClass).get(); } }
MongoSerializationDao extends MongoDao<Serialization, String> implements SerializationDao { @Override public Serialization findByTypeClass(String typeClass) { return query().field("typeClass").equal(typeClass).get(); } @Inject  MongoSerializationDao(Datastore datastore); }
MongoSerializationDao extends MongoDao<Serialization, String> implements SerializationDao { @Override public Serialization findByTypeClass(String typeClass) { return query().field("typeClass").equal(typeClass).get(); } @Inject  MongoSerializationDao(Datastore datastore); @Override List<Serialization> findAll(); @Override List<Serialization> findAllWithFramework(String framework); @Override Serialization findByTypeClass(String typeClass); }
MongoSerializationDao extends MongoDao<Serialization, String> implements SerializationDao { @Override public Serialization findByTypeClass(String typeClass) { return query().field("typeClass").equal(typeClass).get(); } @Inject  MongoSerializationDao(Datastore datastore); @Override List<Serialization> findAll(); @Override List<Serialization> findAllWithFramework(String framework); @Override Serialization findByTypeClass(String typeClass);  }