@Override
    public final NoteDocument findByFileAndString(
            final String filename, final String string) {
        final Query searchQuery = new Query(Criteria.where("string").is(string)
                .and("filename").is(filename));
        final NoteDocument noteDocument =
                mongoTemplate.findOne(searchQuery, NoteDocumentMongo.class);
        if (noteDocument == null) {
            return null;
        }
        final Note note =
                (Note) toObjConverter.createGedObject(null, noteDocument);
        noteDocument.setGedObject(note);
        return noteDocument;
    }
@ Override public final NoteDocument findByFileAndString ( final String filename , final String string ) { final Query searchQuery = new Query ( Criteria . where ( "string" ) . is ( string ) . and ( "filename" ) . is ( filename ) ) ; final NoteDocument noteDocument = mongoTemplate . findOne ( searchQuery , NoteDocumentMongo . class ) ; if ( noteDocument == null ) { return null ; } final Note note = ( Note ) toObjConverter . createGedObject ( null , noteDocument ) ; noteDocument . setGedObject ( note ) ; return noteDocument ; }
{@inheritDoc}