Skip to content

Commit e9cf593

Browse files
committed
dochub
1 parent a3aebd8 commit e9cf593

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/main/com/mongodb/DBCollection.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public void updateMulti( DBObject q , DBObject o ) throws MongoException {
8787
* @param batchSize if positive, is the # of objects per batch sent back from the db. all objects that match will be returned. if batchSize < 0, its a hard limit, and only 1 batch will either batchSize or the # that fit in a batch
8888
* @param options - see Bytes QUERYOPTION_*
8989
* @return the objects, if found
90+
* @dochub find
9091
*/
9192
public abstract Iterator<DBObject> find( DBObject ref , DBObject fields , int numToSkip , int batchSize , int options ) throws MongoException ;
9293

@@ -96,6 +97,7 @@ public void updateMulti( DBObject q , DBObject o ) throws MongoException {
9697
* @param numToSkip will not return the first <tt>numToSkip</tt> matches
9798
* @param batchSize if positive, is the # of objects per batch sent back from the db. all objects that match will be returned. if batchSize < 0, its a hard limit, and only 1 batch will either batchSize or the # that fit in a batch
9899
* @return the objects, if found
100+
* @dochub find
99101
*/
100102
public Iterator<DBObject> find( DBObject ref , DBObject fields , int numToSkip , int batchSize )
101103
throws MongoException {
@@ -106,7 +108,7 @@ public Iterator<DBObject> find( DBObject ref , DBObject fields , int numToSkip ,
106108
* ensureIndex is optimized and is inexpensive if the index already exists.
107109
* @param keys fields to use for index
108110
* @param name an identifier for the index
109-
* @mongodb.apitool indexing
111+
* @dochub indexing
110112
*/
111113
public abstract void ensureIndex( DBObject keys , String name ) throws MongoException ;
112114

@@ -138,6 +140,7 @@ public final DBObject findOne( Object obj )
138140
* @param obj any valid object
139141
* @param fields fields to return
140142
* @return the object, if found, otherwise <code>null</code>
143+
* @dochub find
141144
*/
142145
public final DBObject findOne( Object obj, DBObject fields ) {
143146
ensureIDIndex();
@@ -257,6 +260,7 @@ public void setHintFields( List<DBObject> lst ){
257260
/** Queries for an object in this collection.
258261
* @param ref object for which to search
259262
* @return an iterator over the results
263+
* @dochub find
260264
*/
261265
public final DBCursor find( DBObject ref ){
262266
return new DBCursor( this, ref, null );
@@ -282,13 +286,15 @@ public final DBCursor find( DBObject ref ){
282286
* @param ref object for which to search
283287
* @param keys fields to return
284288
* @return a cursor to iterate over results
289+
* @dochub find
285290
*/
286291
public final DBCursor find( DBObject ref , DBObject keys ){
287292
return new DBCursor( this, ref, keys );
288293
}
289294

290295
/** Queries for all objects in this collection.
291296
* @return a cursor which will iterate over every object
297+
* @dochub find
292298
*/
293299
public final DBCursor find(){
294300
return new DBCursor( this, new BasicDBObject(), null );
@@ -318,6 +324,7 @@ public final DBObject findOne( DBObject o )
318324
* @param o the query object
319325
* @param fields fields to return
320326
* @return the object found, or <code>null</code> if no such object exists
327+
* @dochub find
321328
*/
322329
public final DBObject findOne( DBObject o, DBObject fields ) {
323330
Iterator<DBObject> i = find( o , fields , 0 , -1 , 0 );

src/util/ApiToolsTaglet.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static void register( Map tagletMap ){
1212
}
1313

1414
public String getName(){
15-
return "mongodb.apitool";
15+
return "dochub";
1616
}
1717

1818
public boolean inConstructor(){ return true; }
@@ -26,7 +26,7 @@ public String getName(){
2626

2727
String genLink( String name ){
2828
return new StringBuilder()
29-
.append( "<a href='http://apitools.mongodb.org/" ).append( name ).append( "' " )
29+
.append( "<a href='http://dochub.mongodb.org/core/" ).append( name ).append( "' " )
3030
.append( "name='" ).append( name ).append( "' " )
3131
.append( ">").append( name ).append( "</a>" )
3232
.toString();
@@ -43,7 +43,6 @@ public String toString( Tag[] tags ){
4343
StringBuilder buf = new StringBuilder( "\n<br><DT><B>MongoDB Doc Links</B><DD>" );
4444
buf.append( "<ul>" );
4545
for ( Tag t : tags ){
46-
System.out.println( "YO: " + t.holder().name() );
4746
buf.append( "<li>" ).append( genLink( t.text() ) ).append( "</li>" );
4847
}
4948
buf.append( "</ul>" );

0 commit comments

Comments
 (0)