KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > dbi > NullCursor


1 /*
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: NullCursor.java,v 1.14 2006/10/30 21:14:43 bostic Exp $
7  */

8
9 package com.sleepycat.je.dbi;
10 import com.sleepycat.je.DatabaseException;
11 import com.sleepycat.je.tree.BIN;
12 import com.sleepycat.je.txn.Locker;
13
14 /**
15  * A NullCursor is used as a no-op object by tree unit tests, which
16  * wish to speak directly to Tree methods.
17  */

18 public class NullCursor extends CursorImpl {
19     /**
20      * Cursor constructor.
21      */

22     public NullCursor(DatabaseImpl database, Locker txn)
23         throws DatabaseException {
24
25         super(database, txn);
26     }
27
28     public void addCursor(BIN bin) {}
29     public void addCursor() {}
30 }
31
32
Popular Tags