]> git.saurik.com Git - wxWidgets.git/blob - samples/db/dbtest.h
Added buttons to allow a dump of DB DATATYPES and DB DIAGNOSTIC info via wxLogMessage...
[wxWidgets.git] / samples / db / dbtest.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: dbtest.h
3 // Purpose: wxWindows database demo app
4 // Author: George Tasker
5 // Modified by:
6 // Created: 1998
7 // RCS-ID: $Id$
8 // Copyright: (c) 1998 Remstar International, Inc.
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma interface "dbtest.h"
14 #endif
15
16 #include <wx/string.h>
17 #include <wx/dbtable.h>
18
19 enum DialogModes {mView,mCreate,mEdit,mSearch};
20
21 // ID for the menu quit command
22 #define FILE_CREATE 100
23 #define FILE_RECREATE_TABLE 110
24 #define FILE_RECREATE_INDEXES 120
25 #define FILE_EXIT 199
26 #define EDIT_PARAMETERS 200
27 #define HELP_ABOUT 300
28
29 // this seems to be missing, Robert Roebling (?)
30 #ifndef MAX_PATH
31 #if defined(__WXMAC__)
32 #define MAX_PATH 260 /* max. length of full pathname */
33 #else /* _MAC */
34 #define MAX_PATH 256 /* max. length of full pathname */
35 #endif
36 #endif
37
38 // Name of the table to be created/opened
39 const wxChar CONTACT_TABLE_NAME[] = "contacts";
40
41
42 #define wxODBC_BLOB_EXPERIMENT 0
43
44 // Number of columns in the CONTACT table
45 #if wxODBC_BLOB_EXPERIMENT > 0
46 const int CONTACT_NO_COLS = 13; // 0-12
47 #else
48 const int CONTACT_NO_COLS = 12; // 0-11
49 #endif
50
51 const wxChar PARAM_FILENAME[] = "dbtest.cfg";
52
53
54 enum Language {langENGLISH, langFRENCH, langGERMAN, langSPANISH, langOTHER};
55
56 // Forward class declarations
57 class CeditorDlg;
58 class CparameterDlg;
59
60
61 // Used for displaying many of the database capabilites
62 // and usage statistics on a database connection
63 void DisplayDbDiagnostics(wxDb *pDb);
64
65
66 //
67 // This class contains the actual data members that are used for transferring
68 // data back and forth from the database to the program.
69 //
70 // NOTE: The object described in this class is just for example purposes, and has no
71 // real meaning other than to show each type of field being used by the database
72 //
73 class CstructContact : public wxObject
74 {
75 public:
76 wxChar Name[50+1]; // Contact's name
77 wxChar Addr1[50+1];
78 wxChar Addr2[50+1];
79 wxChar City[25+1];
80 wxChar State[25+1];
81 wxChar PostalCode[15+1];
82 wxChar Country[20+1];
83 TIMESTAMP_STRUCT JoinDate; // Date on which this person joined the wxWindows project
84 Language NativeLanguage; // Enumerated type indicating person's native language
85 #if wxODBC_BLOB_EXPERIMENT > 0
86 wxChar Picture[50000];
87 #endif
88 bool IsDeveloper; // Is this person a developer for wxWindows, or just a subscriber
89 UCHAR Contributions; // Something to show off an integer field
90 ULONG LinesOfCode; // Something to show off a 'long' field
91 }; // CstructContact
92
93
94 //
95 // The Ccontact class derives from wxDbTable, so we have access to all
96 // of the database table functions and the local memory variables that
97 // the database classes will store the data into (and read the data from)
98 // all combined in this one class.
99 //
100 class Ccontact : public wxDbTable, public CstructContact
101 {
102 private:
103 // Used to keep track of whether this class had a wxDb instance
104 // passed in to it or not. If an existing wxDb instance was not
105 // passed in at Ccontact creation time, then when the Ccontact
106 // instance is deleted, the connection will be freed as Ccontact
107 // created its own connection when it was created.
108 bool freeDbConn;
109
110 // Calls wxDbTable::SetColDefs() once for each column that is
111 // to be associated with some member variable for use with
112 // this database object.
113 void SetupColumns();
114
115 public:
116 // Used in places where we need to construct a WHERE clause to
117 // be passed to the SetWhereClause() function. From example,
118 // where building the WHERE clause requires using ::Printf()
119 // to build the string.
120 wxString whereStr;
121
122 // WHERE string returned from the query dialog
123 wxString qryWhereStr;
124
125 Ccontact(wxDb *pwxDb=NULL);
126 ~Ccontact();
127
128 void Initialize();
129
130 // Contains all the index definitions and calls to wxDbTable::CreateIndex()
131 // required to create all the indexes we wish to define for this table.
132 bool CreateIndexes(void);
133
134 // Since we do not wish to have duplicate code blocks all over our program
135 // for a common query/fetch that we will need to do in many places, we
136 // include this member function that does it all for us in one place.
137 bool FetchByName(const wxString &name);
138
139 }; // Ccontact class definition
140
141
142 typedef struct Cparameters
143 {
144 wxChar ODBCSource[SQL_MAX_DSN_LENGTH+1];
145 wxChar UserName[SQL_MAX_USER_NAME_LEN+1];
146 wxChar Password[SQL_MAX_AUTHSTR_LEN+1];
147 wxChar DirPath[MAX_PATH+1];
148 } Cparameters;
149
150
151 // Define a new frame type
152 class DatabaseDemoFrame: public wxFrame
153 {
154 private:
155 CeditorDlg *pEditorDlg;
156 CparameterDlg *pParamDlg;
157
158 public:
159 DatabaseDemoFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& sz);
160 ~DatabaseDemoFrame();
161
162 void OnCloseWindow(wxCloseEvent& event);
163 void OnCreate(wxCommandEvent& event);
164 void OnRecreateTable(wxCommandEvent& event);
165 void OnRecreateIndexes(wxCommandEvent& event);
166 void OnExit(wxCommandEvent& event);
167 void OnEditParameters(wxCommandEvent& event);
168 void OnAbout(wxCommandEvent& event);
169
170 void BuildEditorDialog();
171 void BuildParameterDialog(wxWindow *parent);
172
173 DECLARE_EVENT_TABLE()
174 }; // DatabaseDemoFrame
175
176
177 // Define a new application type
178 class DatabaseDemoApp: public wxApp
179 {
180 public:
181 // These are the parameters that are stored in the "PARAM_FILENAME" file
182 // that are read in at startup of the program that indicate the connection
183 // parameters to be used for connecting to the ODBC data source.
184 Cparameters params;
185
186 // Pointer to the main frame used by the App
187 DatabaseDemoFrame *DemoFrame;
188
189 // Pointer to the main database connection used in the program. This
190 // pointer would normally be used for doing things as database lookups
191 // for user login names and passwords, getting workstation settings, etc.
192 //
193 // ---> IMPORTANT <---
194 //
195 // For each database object created which uses this wxDb pointer
196 // connection to the database, when a CommitTrans() or RollBackTrans()
197 // will commit or rollback EVERY object which uses this wxDb pointer.
198 //
199 // To allow each table object (those derived from wxDbTable) to be
200 // individually committed or rolled back, you MUST use a different
201 // instance of wxDb in the constructor of the table. Doing so creates
202 // more overhead, and will use more database connections (some DBs have
203 // connection limits...), so use connections sparringly.
204 //
205 // It is recommended that one "main" database connection be created for
206 // the entire program to use for READ-ONLY database accesses, but for each
207 // table object which will do a CommitTrans() or RollbackTrans() that a
208 // new wxDb object be created and used for it.
209 wxDb *READONLY_DB;
210
211 // Contains the ODBC connection information used by
212 // all database connections
213 wxDbConnectInf *DbConnectInf;
214
215 bool OnInit();
216
217 // Read/Write ODBC connection parameters to the "PARAM_FILENAME" file
218 bool ReadParamFile(Cparameters &params);
219 bool WriteParamFile(Cparameters &params);
220
221 void CreateDataTable(bool recreate);
222
223 // Pointer to the wxDbTable instance that is used to manipulate
224 // the data in memory and in the database
225 Ccontact *Contact;
226
227 }; // DatabaseDemoApp
228
229
230 DECLARE_APP(DatabaseDemoApp)
231
232
233 // *************************** CeditorDlg ***************************
234
235 class CeditorDlg : public wxPanel
236 {
237 private:
238 // Used to indicate whether all of the widget pointers (defined
239 // below) have been initialized to point to the memory for
240 // the named widget. Used as a safeguard from using the widget
241 // before it has been initialized.
242 bool widgetPtrsSet;
243
244 // Used when the EDIT button has been pressed to maintain the
245 // original name that was displayed in the editor before the
246 // EDIT button was pressed, so that if CANCEL is pressed, a
247 // FetchByName() can be done to retrieve the original data
248 // to repopulate the dialog.
249 wxString saveName;
250
251 // Pointers to all widgets on the dialog
252 wxButton *pCreateBtn, *pEditBtn, *pDeleteBtn, *pCopyBtn, *pSaveBtn, *pCancelBtn;
253 wxButton *pPrevBtn, *pNextBtn, *pQueryBtn, *pResetBtn, *pDoneBtn, *pHelpBtn;
254 wxButton *pNameListBtn;
255 wxButton *pDataTypesBtn, *pDbDiagsBtn;
256 wxTextCtrl *pNameTxt, *pAddress1Txt, *pAddress2Txt,*pCityTxt, *pStateTxt, *pCountryTxt,*pPostalCodeTxt;
257 wxStaticText *pNameMsg, *pAddress1Msg, *pAddress2Msg,*pCityMsg, *pStateMsg, *pCountryMsg,*pPostalCodeMsg;
258 wxTextCtrl *pJoinDateTxt,*pContribTxt, *pLinesTxt;
259 wxStaticText *pJoinDateMsg,*pContribMsg, *pLinesMsg;
260 wxRadioBox *pDeveloperRadio;
261 wxChoice *pNativeLangChoice;
262 wxStaticText *pNativeLangMsg;
263
264 public:
265 // Indicates if the editor dialog has been initialized yet (used to
266 // help trap if the Initialize() function failed to load all required
267 // resources or not.
268 bool initialized;
269
270 enum DialogModes mode;
271
272 CeditorDlg(wxWindow *parent);
273
274 void OnCloseWindow(wxCloseEvent& event);
275 void OnButton( wxCommandEvent &event );
276 void OnCommand(wxWindow& win, wxCommandEvent& event);
277 void OnActivate(bool) {}; // necessary for hot keys
278
279 bool Initialize();
280
281 // Sets wxStaticText fields to be editable or not depending
282 // on the current value of 'mode'
283 void FieldsEditable();
284
285 // Sets the editor mode, determining what state widgets
286 // on the dialog are to be in based on the operation
287 // being performed.
288 void SetMode(enum DialogModes m);
289
290 // Update/Retrieve data from the widgets on the dialog
291 bool PutData();
292 bool GetData();
293
294 // Inserts/updates the database with the current data
295 // retrieved from the editor dialog
296 bool Save();
297
298 // Database functions for changing the data that is to
299 // be displayed on the dialog. GetNextRec()/GetPrevRec()
300 // provide database independent methods that do not require
301 // backward scrolling cursors to obtain the record that
302 // is prior to the current record in the search sequence.
303 bool GetNextRec();
304 bool GetPrevRec();
305 bool GetRec(const wxString &whereStr);
306
307 DECLARE_EVENT_TABLE()
308 }; // CeditorDlg
309
310 #define EDITOR_DIALOG 199
311
312 // Editor dialog control ids
313 #define EDITOR_DIALOG_FN_GROUP 200
314 #define EDITOR_DIALOG_SEARCH_GROUP 201
315 #define EDITOR_DIALOG_CREATE 202
316 #define EDITOR_DIALOG_EDIT 203
317 #define EDITOR_DIALOG_DELETE 204
318 #define EDITOR_DIALOG_COPY 205
319 #define EDITOR_DIALOG_SAVE 206
320 #define EDITOR_DIALOG_CANCEL 207
321 #define EDITOR_DIALOG_PREV 208
322 #define EDITOR_DIALOG_NEXT 209
323 #define EDITOR_DIALOG_QUERY 211
324 #define EDITOR_DIALOG_RESET 212
325 #define EDITOR_DIALOG_NAME_MSG 213
326 #define EDITOR_DIALOG_NAME_TEXT 214
327 #define EDITOR_DIALOG_LOOKUP 215
328 #define EDITOR_DIALOG_ADDRESS1_MSG 216
329 #define EDITOR_DIALOG_ADDRESS1_TEXT 217
330 #define EDITOR_DIALOG_ADDRESS2_MSG 218
331 #define EDITOR_DIALOG_ADDRESS2_TEXT 219
332 #define EDITOR_DIALOG_CITY_MSG 220
333 #define EDITOR_DIALOG_CITY_TEXT 221
334 #define EDITOR_DIALOG_COUNTRY_MSG 222
335 #define EDITOR_DIALOG_COUNTRY_TEXT 223
336 #define EDITOR_DIALOG_POSTAL_MSG 224
337 #define EDITOR_DIALOG_POSTAL_TEXT 225
338 #define EDITOR_DIALOG_LANG_MSG 226
339 #define EDITOR_DIALOG_LANG_CHOICE 227
340 #define EDITOR_DIALOG_DATE_MSG 228
341 #define EDITOR_DIALOG_DATE_TEXT 229
342 #define EDITOR_DIALOG_CONTRIB_MSG 230
343 #define EDITOR_DIALOG_CONTRIB_TEXT 231
344 #define EDITOR_DIALOG_LINES_MSG 232
345 #define EDITOR_DIALOG_LINES_TEXT 233
346 #define EDITOR_DIALOG_STATE_MSG 234
347 #define EDITOR_DIALOG_STATE_TEXT 235
348 #define EDITOR_DIALOG_DEVELOPER 236
349 #define EDITOR_DIALOG_JOIN_MSG 237
350 #define EDITOR_DIALOG_JOIN_TEXT 238
351 #define EDITOR_DIALOG_DATATYPES 250
352 #define EDITOR_DIALOG_DB_DIAGS 260
353
354 // *************************** CparameterDlg ***************************
355
356 class CparameterDlg : public wxDialog
357 {
358 private:
359 // Used to indicate whether all of the widget pointers (defined
360 // below) have been initialized to point to the memory for
361 // the named widget. Used as a safeguard from using the widget
362 // before it has been initialized.
363 bool widgetPtrsSet;
364
365 enum DialogModes mode;
366
367 // Have the parameters been saved yet, or do they
368 // need to be saved to update the params on disk
369 bool saved;
370
371 // Original params
372 Cparameters savedParamSettings;
373
374 // Pointers to all widgets on the dialog
375 wxStaticText *pParamODBCSourceMsg;
376 wxListBox *pParamODBCSourceList;
377 wxStaticText *pParamUserNameMsg, *pParamPasswordMsg, *pParamDirPathMsg;
378 wxTextCtrl *pParamUserNameTxt, *pParamPasswordTxt, *pParamDirPathTxt;
379 wxButton *pParamSaveBtn, *pParamCancelBtn;
380
381 public:
382 CparameterDlg(wxWindow *parent);
383
384 void OnCloseWindow(wxCloseEvent& event);
385 void OnButton( wxCommandEvent &event );
386 void OnCommand(wxWindow& win, wxCommandEvent& event);
387 void OnActivate(bool) {}; // necessary for hot keys
388
389 // Update/Retrieve data from the widgets on the dialog
390 bool PutData();
391 bool GetData();
392
393 // Stores the defined parameter for connecting to the selected ODBC
394 // data source to the config file name in "PARAM_FILENAME"
395 bool Save();
396
397 // Populates the 'pParamODBCSourceList' listbox with the names of all
398 // ODBC datasource defined for use at the current workstation
399 void FillDataSourceList();
400
401 DECLARE_EVENT_TABLE()
402 }; // CparameterDlg
403
404 #define PARAMETER_DIALOG 400
405
406 // Parameter dialog control ids
407 #define PARAMETER_DIALOG_SOURCE_MSG 401
408 #define PARAMETER_DIALOG_SOURCE_LISTBOX 402
409 #define PARAMETER_DIALOG_NAME_MSG 403
410 #define PARAMETER_DIALOG_NAME_TEXT 404
411 #define PARAMETER_DIALOG_PASSWORD_MSG 405
412 #define PARAMETER_DIALOG_PASSWORD_TEXT 406
413 #define PARAMETER_DIALOG_DIRPATH_MSG 407
414 #define PARAMETER_DIALOG_DIRPATH_TEXT 408
415 #define PARAMETER_DIALOG_SAVE 409
416 #define PARAMETER_DIALOG_CANCEL 410
417
418 // *************************** CqueryDlg ***************************
419
420
421 // QUERY DIALOG
422 enum qryOp
423 {
424 qryOpEQ,
425 qryOpLT,
426 qryOpGT,
427 qryOpLE,
428 qryOpGE,
429 qryOpBEGINS,
430 qryOpCONTAINS,
431 qryOpLIKE,
432 qryOpBETWEEN
433 };
434
435
436 // Query strings
437 wxChar * const langQRY_EQ = "column = column | value";
438 wxChar * const langQRY_LT = "column < column | value";
439 wxChar * const langQRY_GT = "column > column | value";
440 wxChar * const langQRY_LE = "column <= column | value";
441 wxChar * const langQRY_GE = "column >= column | value";
442 wxChar * const langQRY_BEGINS = "columns that BEGIN with the string entered";
443 wxChar * const langQRY_CONTAINS = "columns that CONTAIN the string entered";
444 wxChar * const langQRY_LIKE = "% matches 0 or more of any char; _ matches 1 char";
445 wxChar * const langQRY_BETWEEN = "column BETWEEN value AND value";
446
447
448 class CqueryDlg : public wxDialog
449 {
450 private:
451 wxDbColInf *colInf; // Column inf. returned by db->GetColumns()
452 wxDbTable *dbTable; // generic wxDbTable object for attaching to the table to query
453 wxChar *masterTableName; // Name of the table that 'dbTable' will be associated with
454 wxString pWhere; // A pointer to the storage for the resulting where clause
455 wxDb *pDB;
456
457 public:
458 // Used to indicate whether all of the widget pointers (defined
459 // below) have been initialized to point to the memory for
460 // the named widget. Used as a safeguard from using the widget
461 // before it has been initialized.
462 bool widgetPtrsSet;
463
464 // Widget pointers
465 wxStaticText *pQueryCol1Msg;
466 wxChoice *pQueryCol1Choice;
467 wxStaticText *pQueryNotMsg;
468 wxCheckBox *pQueryNotCheck;
469 wxStaticText *pQueryOperatorMsg;
470 wxChoice *pQueryOperatorChoice;
471 wxStaticText *pQueryCol2Msg;
472 wxChoice *pQueryCol2Choice;
473 wxStaticText *pQueryValue1Msg;
474 wxTextCtrl *pQueryValue1Txt;
475 wxStaticText *pQueryValue2Msg;
476 wxTextCtrl *pQueryValue2Txt;
477 wxStaticText *pQuerySqlWhereMsg;
478 wxTextCtrl *pQuerySqlWhereMtxt;
479 wxButton *pQueryAddBtn;
480 wxButton *pQueryAndBtn;
481 wxButton *pQueryOrBtn;
482 wxButton *pQueryLParenBtn;
483 wxButton *pQueryRParenBtn;
484 wxButton *pQueryDoneBtn;
485 wxButton *pQueryClearBtn;
486 wxButton *pQueryCountBtn;
487 wxButton *pQueryHelpBtn;
488 wxStaticBox *pQueryHintGrp;
489 wxStaticText *pQueryHintMsg;
490
491 wxTextCtrl *pFocusTxt;
492
493 CqueryDlg(wxWindow *parent, wxDb *pDb, wxChar *tblName[], const wxString &pWhereArg);
494 ~CqueryDlg();
495
496 void OnButton( wxCommandEvent &event );
497 void OnCommand(wxWindow& win, wxCommandEvent& event);
498 void OnCloseWindow(wxCloseEvent& event);
499 void OnActivate(bool) {}; // necessary for hot keys
500
501 void AppendToWhere(wxChar *s);
502 void ProcessAddBtn();
503 void ProcessCountBtn();
504 bool ValidateWhereClause();
505
506 DECLARE_EVENT_TABLE()
507 }; // CqueryDlg
508
509 #define QUERY_DIALOG 300
510
511 // Parameter dialog control ids
512 #define QUERY_DIALOG_COL_MSG 301
513 #define QUERY_DIALOG_COL_CHOICE 302
514 #define QUERY_DIALOG_NOT_MSG 303
515 #define QUERY_DIALOG_NOT_CHECKBOX 304
516 #define QUERY_DIALOG_OP_MSG 305
517 #define QUERY_DIALOG_OP_CHOICE 306
518 #define QUERY_DIALOG_COL2_MSG 307
519 #define QUERY_DIALOG_COL2_CHOICE 308
520 #define QUERY_DIALOG_WHERE_MSG 309
521 #define QUERY_DIALOG_WHERE_TEXT 310
522 #define QUERY_DIALOG_ADD 311
523 #define QUERY_DIALOG_AND 312
524 #define QUERY_DIALOG_OR 313
525 #define QUERY_DIALOG_LPAREN 314
526 #define QUERY_DIALOG_RPAREN 315
527 #define QUERY_DIALOG_DONE 316
528 #define QUERY_DIALOG_CLEAR 317
529 #define QUERY_DIALOG_COUNT 318
530 #define QUERY_DIALOG_VALUE1_MSG 319
531 #define QUERY_DIALOG_VALUE1_TEXT 320
532 #define QUERY_DIALOG_VALUE2_MSG 321
533 #define QUERY_DIALOG_VALUE2_TEXT 322
534 #define QUERY_DIALOG_HINT_GROUP 323
535 #define QUERY_DIALOG_HINT_MSG 324
536
537 char * const langNO = "No";
538 char * const langYES = "Yes";
539 char * const langDBINF_DB_NAME = "Database Name = ";
540 char * const langDBINF_DB_VER = "Database Version = ";
541 char * const langDBINF_DRIVER_NAME = "Driver Name = ";
542 char * const langDBINF_DRIVER_ODBC_VER = "Driver ODBC Version = ";
543 char * const langDBINF_DRIVER_MGR_ODBC_VER = "Driver Manager ODBC Version = ";
544 char * const langDBINF_DRIVER_VER = "Driver Version = ";
545 char * const langDBINF_SERVER_NAME = "Server Name = ";
546 char * const langDBINF_FILENAME = "Filename = ";
547 char * const langDBINF_OUTER_JOINS = "Outer Joins = ";
548 char * const langDBINF_STORED_PROC = "Stored Procedures = ";
549 char * const langDBINF_MAX_HDBC = "Max # of Db connections = ";
550 char * const langDBINF_MAX_HSTMT = "Max # of cursors (per db connection) = ";
551 char * const langDBINF_UNLIMITED = "Unlimited or Unknown";
552 char * const langDBINF_API_LVL = "ODBC API conformance level = ";
553 char * const langDBINF_CLI_LVL = "Client (SAG) conformance level = ";
554 char * const langDBINF_SQL_LVL = "SQL conformance level = ";
555 char * const langDBINF_COMMIT_BEHAVIOR = "Commit Behavior = ";
556 char * const langDBINF_ROLLBACK_BEHAVIOR = "Rollback Behavior = ";
557 char * const langDBINF_SUPP_NOT_NULL = "Support NOT NULL clause = ";
558 char * const langDBINF_SUPP_IEF = "Support IEF = ";
559 char * const langDBINF_TXN_ISOLATION = "Transaction Isolation Level (default) = ";
560 char * const langDBINF_TXN_ISOLATION_CURR = "Transaction Isolation Level (current) = ";
561 char * const langDBINF_TXN_ISOLATION_OPTS = "Transaction Isolation Options Available = ";
562 char * const langDBINF_FETCH_DIRS = "Fetch Directions = ";
563 char * const langDBINF_LOCK_TYPES = "Lock Types (SQLSetPos) = ";
564 char * const langDBINF_POS_OPERS = "Position Operations (SQLSetPos) = ";
565 char * const langDBINF_POS_STMTS = "Position Statements = ";
566 char * const langDBINF_SCROLL_CONCURR = "Concurrency Options (scrollable cursors) = ";
567 char * const langDBINF_SCROLL_OPTS = "Scroll Options (scrollable cursors) = ";
568 char * const langDBINF_STATIC_SENS = "Static Sensitivity = ";
569 char * const langDBINF_TXN_CAPABLE = "Transaction Support = ";
570 char * const langDBINF_LOGIN_TIMEOUT = "Login Timeout = ";
571 char * const langDBINF_NONE = "None";
572 char * const langDBINF_LEVEL1 = "Level 1";
573 char * const langDBINF_LEVEL2 = "Level 2";
574 char * const langDBINF_NOT_COMPLIANT = "Not Compliant";
575 char * const langDBINF_COMPLIANT = "Compliant";
576 char * const langDBINF_MIN_GRAMMAR = "Minimum Grammer";
577 char * const langDBINF_CORE_GRAMMAR = "Core Grammer";
578 char * const langDBINF_EXT_GRAMMAR = "Extended Grammer";
579 char * const langDBINF_DELETE_CURSORS = "Delete cursors";
580 char * const langDBINF_CLOSE_CURSORS = "Close cursors";
581 char * const langDBINF_PRESERVE_CURSORS = "Preserve cursors";
582 char * const langDBINF_READ_UNCOMMITTED = "Read Uncommitted";
583 char * const langDBINF_READ_COMMITTED = "Read Committed";
584 char * const langDBINF_REPEATABLE_READ = "Repeatable Read";
585 char * const langDBINF_SERIALIZABLE = "Serializable";
586 char * const langDBINF_VERSIONING = "Versioning";
587 char * const langDBINF_NEXT = "Next";
588 char * const langDBINF_PREV = "Prev";
589 char * const langDBINF_FIRST = "First";
590 char * const langDBINF_LAST = "Last";
591 char * const langDBINF_ABSOLUTE = "Absolute";
592 char * const langDBINF_RELATIVE = "Relative";
593 char * const langDBINF_RESUME = "Resume";
594 char * const langDBINF_BOOKMARK = "Bookmark";
595 char * const langDBINF_NO_CHANGE = "No Change";
596 char * const langDBINF_EXCLUSIVE = "Exclusive";
597 char * const langDBINF_UNLOCK = "Unlock";
598 char * const langDBINF_POSITION = "Position";
599 char * const langDBINF_REFRESH = "Refresh";
600 char * const langDBINF_UPD = "Upd";
601 char * const langDBINF_DEL = "Del";
602 char * const langDBINF_ADD = "Add";
603 char * const langDBINF_POS_DEL = "Pos Delete";
604 char * const langDBINF_POS_UPD = "Pos Update";
605 char * const langDBINF_SELECT_FOR_UPD = "Select For Update";
606 char * const langDBINF_READ_ONLY = "Read Only";
607 char * const langDBINF_LOCK = "Lock";
608 char * const langDBINF_OPT_ROWVER = "Opt. Rowver";
609 char * const langDBINF_OPT_VALUES = "Opt. Values";
610 char * const langDBINF_FWD_ONLY = "Fwd Only";
611 char * const langDBINF_STATIC = "Static";
612 char * const langDBINF_KEYSET_DRIVEN = "Keyset Driven";
613 char * const langDBINF_DYNAMIC = "Dynamic";
614 char * const langDBINF_MIXED = "Mixed";
615 char * const langDBINF_ADDITIONS = "Additions";
616 char * const langDBINF_DELETIONS = "Deletions";
617 char * const langDBINF_UPDATES = "Updates";
618 char * const langDBINF_DML_ONLY = "DML Only";
619 char * const langDBINF_DDL_COMMIT = "DDL Commit";
620 char * const langDBINF_DDL_IGNORE = "DDL Ignore";
621 char * const langDBINF_DDL_AND_DML = "DDL and DML";
622 char * const langDBINF_ORACLE_BANNER = ">>> ORACLE STATISTICS AND TUNING INFORMATION <<<";
623 char * const langDBINF_DB_BLOCK_GETS = "DB block gets";
624 char * const langDBINF_CONSISTENT_GETS = "Consistent gets";
625 char * const langDBINF_PHYSICAL_READS = "Physical reads";
626 char * const langDBINF_CACHE_HIT_RATIO = "Cache hit ratio";
627 char * const langDBINF_TABLESPACE_IO = "TABLESPACE I/O LEVELS";
628 char * const langDBINF_PHYSICAL_WRITES = "Physical writes";