Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.requestmanager.ParserThread Class Reference

List of all members.

Public Member Functions

 ParserThread (AbstractRequest request, DatabaseSchema dbs, int granularity, boolean isCaseSensitive)
void run ()

Detailed Description

This thread is used to process request parsing in background.

Author:
Emmanuel Cecchet
Version:
1.0

Definition at line 38 of file ParserThread.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.requestmanager.ParserThread.ParserThread AbstractRequest  request,
DatabaseSchema  dbs,
int  granularity,
boolean  isCaseSensitive
 

Creates a new ParserThread

Parameters:
request the request to parse
dbs the database schema
granularity the parsing granularity to use
isCaseSensitive true if parsing is case sensitive

Definition at line 53 of file ParserThread.java.

00058   {
00059     this.request = request;
00060     this.dbs = dbs;
00061     this.granularity = granularity;
00062     this.isCaseSensitive = isCaseSensitive;
00063     start();
00064   }


Member Function Documentation

void org.objectweb.cjdbc.controller.requestmanager.ParserThread.run  ) 
 

See also:
java.lang.Runnable#run()

Definition at line 69 of file ParserThread.java.

00070   {
00071     try
00072     {
00073       if (!request.isParsed())
00074         request.parse(dbs, granularity, isCaseSensitive);
00075     }
00076     catch (SQLException e)
00077     {
00078       System.err.println("Error while parsing request (" + e + ")");
00079     }
00080   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:04:23 2005 for C-JDBC by  doxygen 1.3.9.1