Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

collections::access::AccessExample Class Reference


Public Member Functions

 AccessExample (Environment env, String databaseName) throws Exception
void run ()

Static Public Member Functions

static void main (String[] argv)

Package Functions

String askForLine (InputStreamReader reader, PrintStream out, String prompt)
String getLine (InputStreamReader reader)

Detailed Description

AccesssExample mirrors the functionality of a class by the same name used to demonstrate the com.sleepycat.je Java API. This version makes use of the new com.sleepycat.collections.* collections style classes to make life easier.

Author:
Gregory Burd <[email protected]> October 22, 2002

Definition at line 42 of file AccessExample.java.


Constructor & Destructor Documentation

collections::access::AccessExample::AccessExample Environment  env,
String  databaseName
throws Exception [inline]
 

Constructor for the AccessExample object

Parameters:
env Description of the Parameter
Exceptions:
Exception Description of the Exception

Definition at line 125 of file AccessExample.java.

Referenced by main().


Member Function Documentation

String collections::access::AccessExample::askForLine InputStreamReader  reader,
PrintStream  out,
String  prompt
[inline, package]
 

Prompts for a line, and keeps prompting until a non blank line is returned. Returns null on error.

Parameters:
reader stream from which to read user input
out stream on which to prompt for user input
prompt prompt to use to solicit input
Returns:
the string supplied by the user

Definition at line 232 of file AccessExample.java.

Referenced by run().

String collections::access::AccessExample::getLine InputStreamReader  reader  )  [inline, package]
 

Read a single line. Gets the line attribute of the AccessExample object Not terribly efficient, but does the job. Works for reading a line from stdin or a file.

Parameters:
reader stream from which to read the line
Returns:
either a String or null on EOF, if EOF appears in the middle of a line, returns that line, then null on next call.

Definition at line 254 of file AccessExample.java.

static void collections::access::AccessExample::main String[]  argv  )  [inline, static]
 

The main program for the AccessExample class

Parameters:
argv The command line arguments

Definition at line 62 of file AccessExample.java.

References AccessExample(), and run().

void collections::access::AccessExample::run  )  [inline]
 

Main processing method for the AccessExample object

Definition at line 158 of file AccessExample.java.

References askForLine(), and com::sleepycat::collections::TransactionRunner::run().

Referenced by main().


The documentation for this class was generated from the following file:
Generated on Sun Dec 25 12:14:57 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2