]> git.saurik.com Git - wxWidgets.git/blob - samples/db/dbtest.h
adapted to new sending for radiobutton events for unselecting too
[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(bool recreate);
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 *pCatalogBtn, *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_CATALOG 240
352 #define EDITOR_DIALOG_DATATYPES 250
353 #define EDITOR_DIALOG_DB_DIAGS 260
354
355 // *************************** CparameterDlg ***************************
356
357 class CparameterDlg : public wxDialog
358 {
359 private:
360 // Used to indicate whether all of the widget pointers (defined
361 // below) have been initialized to point to the memory for
362 // the named widget. Used as a safeguard from using the widget
363 // before it has been initialized.
364 bool widgetPtrsSet;
365
366 enum DialogModes mode;
367
368 // Have the parameters been saved yet, or do they
369 // need to be saved to update the params on disk
370 bool saved;
371
372 // Original params
373 Cparameters savedParamSettings;
374
375 // Pointers to all widgets on the dialog
376 wxStaticText *pParamODBCSourceMsg;
377 wxListBox *pParamODBCSourceList;
378 wxStaticText *pParamUserNameMsg, *pParamPasswordMsg, *pParamDirPathMsg;
379 wxTextCtrl *pParamUserNameTxt, *pParamPasswordTxt, *pParamDirPathTxt;
380 wxButton *pParamSaveBtn, *pParamCancelBtn;
381
382 public:
383 CparameterDlg(wxWindow *parent);
384
385 void OnCloseWindow(wxCloseEvent& event);
386 void OnButton( wxCommandEvent &event );
387 void OnCommand(wxWindow& win, wxCommandEvent& event);
388 void OnActivate(bool) {}; // necessary for hot keys
389
390 // Update/Retrieve data from the widgets on the dialog
391 bool PutData();
392 bool GetData();
393
394 // Stores the defined parameter for connecting to the selected ODBC
395 // data source to the config file name in "PARAM_FILENAME"
396 bool Save();
397
398 // Populates the 'pParamODBCSourceList' listbox with the names of all
399 // ODBC datasource defined for use at the current workstation
400 void FillDataSourceList();
401
402 DECLARE_EVENT_TABLE()
403 }; // CparameterDlg
404
405 #define PARAMETER_DIALOG 400
406
407 // Parameter dialog control ids
408 #define PARAMETER_DIALOG_SOURCE_MSG 401
409 #define PARAMETER_DIALOG_SOURCE_LISTBOX 402
410 #define PARAMETER_DIALOG_NAME_MSG 403
411 #define PARAMETER_DIALOG_NAME_TEXT 404
412 #define PARAMETER_DIALOG_PASSWORD_MSG 405
413 #define PARAMETER_DIALOG_PASSWORD_TEXT 406
414 #define PARAMETER_DIALOG_DIRPATH_MSG 407
415 #define PARAMETER_DIALOG_DIRPATH_TEXT 408
416 #define PARAMETER_DIALOG_SAVE 409
417 #define PARAMETER_DIALOG_CANCEL 410
418
419 // *************************** CqueryDlg ***************************
420
421
422 // QUERY DIALOG
423 enum qryOp
424 {
425 qryOpEQ,
426 qryOpLT,
427 qryOpGT,
428 qryOpLE,
429 qryOpGE,
430 qryOpBEGINS,
431 qryOpCONTAINS,
432 qryOpLIKE,
433 qryOpBETWEEN
434 };
435
436
437 // Query strings
438 wxChar * const langQRY_EQ = "column = column | value";
439 wxChar * const langQRY_LT = "column < column | value";
440 wxChar * const langQRY_GT = "column > column | value";
441 wxChar * const langQRY_LE = "column <= column | value";
442 wxChar * const langQRY_GE = "column >= column | value";
443 wxChar * const langQRY_BEGINS = "columns that BEGIN with the string entered";
444 wxChar * const langQRY_CONTAINS = "columns that CONTAIN the string entered";
445 wxChar * const langQRY_LIKE = "% matches 0 or more of any char; _ matches 1 char";
446 wxChar * const langQRY_BETWEEN = "column BETWEEN value AND value";
447
448
449 class CqueryDlg : public wxDialog
450 {
451 private:
452 wxDbColInf *colInf; // Column inf. returned by db->GetColumns()
453 wxDbTable *dbTable; // generic wxDbTable object for attaching to the table to query
454 wxChar *masterTableName; // Name of the table that 'dbTable' will be associated with
455 wxString pWhere; // A pointer to the storage for the resulting where clause
456 wxDb *pDB;
457
458 public:
459 // Used to indicate whether all of the widget pointers (defined
460 // below) have been initialized to point to the memory for
461 // the named widget. Used as a safeguard from using the widget
462 // before it has been initialized.
463 bool widgetPtrsSet;
464
465 // Widget pointers
466 wxStaticText *pQueryCol1Msg;
467 wxChoice *pQueryCol1Choice;
468 wxStaticText *pQueryNotMsg;
469 wxCheckBox *pQueryNotCheck;
470 wxStaticText *pQueryOperatorMsg;
471 wxChoice *pQueryOperatorChoice;
472 wxStaticText *pQueryCol2Msg;
473 wxChoice *pQueryCol2Choice;
474 wxStaticText *pQueryValue1Msg;
475 wxTextCtrl *pQueryValue1Txt;
476 wxStaticText *pQueryValue2Msg;
477 wxTextCtrl *pQueryValue2Txt;
478 wxStaticText *pQuerySqlWhereMsg;
479 wxTextCtrl *pQuerySqlWhereMtxt;
480 wxButton *pQueryAddBtn;
481 wxButton *pQueryAndBtn;
482 wxButton *pQueryOrBtn;
483 wxButton *pQueryLParenBtn;
484 wxButton *pQueryRParenBtn;
485 wxButton *pQueryDoneBtn;
486 wxButton *pQueryClearBtn;
487 wxButton *pQueryCountBtn;
488 wxButton *pQueryHelpBtn;
489 wxStaticBox *pQueryHintGrp;
490 wxStaticText *pQueryHintMsg;
491
492 wxTextCtrl *pFocusTxt;
493
494 CqueryDlg(wxWindow *parent, wxDb *pDb, wxChar *tblName[], const wxString &pWhereArg);
495 ~CqueryDlg();
496
497 void OnButton( wxCommandEvent &event );
498 void OnCommand(wxWindow& win, wxCommandEvent& event);
499 void OnCloseWindow(wxCloseEvent& event);
500 void OnActivate(bool) {}; // necessary for hot keys
501
502 void AppendToWhere(wxChar *s);
503 void ProcessAddBtn();
504 void ProcessCountBtn();
505 bool ValidateWhereClause();
506
507 DECLARE_EVENT_TABLE()
508 }; // CqueryDlg
509
510 #define QUERY_DIALOG 300
511
512 // Parameter dialog control ids
513 #define QUERY_DIALOG_COL_MSG 301
514 #define QUERY_DIALOG_COL_CHOICE 302
515 #define QUERY_DIALOG_NOT_MSG 303
516 #define QUERY_DIALOG_NOT_CHECKBOX 304
517 #define QUERY_DIALOG_OP_MSG 305
518 #define QUERY_DIALOG_OP_CHOICE 306
519 #define QUERY_DIALOG_COL2_MSG 307
520 #define QUERY_DIALOG_COL2_CHOICE 308
521 #define QUERY_DIALOG_WHERE_MSG 309
522 #define QUERY_DIALOG_WHERE_TEXT 310
523 #define QUERY_DIALOG_ADD 311
524 #define QUERY_DIALOG_AND 312
525 #define QUERY_DIALOG_OR 313
526 #define QUERY_DIALOG_LPAREN 314
527 #define QUERY_DIALOG_RPAREN 315
528 #define QUERY_DIALOG_DONE 316
529 #define QUERY_DIALOG_CLEAR 317
530 #define QUERY_DIALOG_COUNT 318
531 #define QUERY_DIALOG_VALUE1_MSG 319
532 #define QUERY_DIALOG_VALUE1_TEXT 320
533 #define QUERY_DIALOG_VALUE2_MSG 321
534 #define QUERY_DIALOG_VALUE2_TEXT 322
535 #define QUERY_DIALOG_HINT_GROUP 323
536 #define QUERY_DIALOG_HINT_MSG 324
537
538 char * const langNO = "No";
539 char * const langYES = "Yes";
540 char * const langDBINF_DB_NAME = "Database Name = ";
541 char * const langDBINF_DB_VER = "Database Version = ";
542 char * const langDBINF_DRIVER_NAME = "Driver Name = ";
543 char * const langDBINF_DRIVER_ODBC_VER = "Driver ODBC Version = ";
544 char * const langDBINF_DRIVER_MGR_ODBC_VER = "Driver Manager ODBC Version = ";
545 char * const langDBINF_DRIVER_VER = "Driver Version = ";
546 char * const langDBINF_SERVER_NAME = "Server Name = ";
547 char * const langDBINF_FILENAME = "Filename = ";
548 char * const langDBINF_OUTER_JOINS = "Outer Joins = ";
549 char * const langDBINF_STORED_PROC = "Stored Procedures = ";
550 char * const langDBINF_MAX_HDBC = "Max # of Db connections = ";
551 char * const langDBINF_MAX_HSTMT = "Max # of cursors (per db connection) = ";
552 char * const langDBINF_UNLIMITED = "Unlimited or Unknown";
553 char * const langDBINF_API_LVL = "ODBC API conformance level = ";
554 char * const langDBINF_CLI_LVL = "Client (SAG) conformance level = ";
555 char * const langDBINF_SQL_LVL = "SQL conformance level = ";
556 char * const langDBINF_COMMIT_BEHAVIOR = "Commit Behavior = ";
557 char * const langDBINF_ROLLBACK_BEHAVIOR = "Rollback Behavior = ";
558 char * const langDBINF_SUPP_NOT_NULL = "Support NOT NULL clause = ";
559 char * const langDBINF_SUPP_IEF = "Support IEF = ";
560 char * const langDBINF_TXN_ISOLATION = "Transaction Isolation Level (default) = ";
561 char * const langDBINF_TXN_ISOLATION_CURR = "Transaction Isolation Level (current) = ";
562 char * const langDBINF_TXN_ISOLATION_OPTS = "Transaction Isolation Options Available = ";
563 char * const langDBINF_FETCH_DIRS = "Fetch Directions = ";
564 char * const langDBINF_LOCK_TYPES = "Lock Types (SQLSetPos) = ";
565 char * const langDBINF_POS_OPERS = "Position Operations (SQLSetPos) = ";
566 char * const langDBINF_POS_STMTS = "Position Statements = ";
567 char * const langDBINF_SCROLL_CONCURR = "Concurrency Options (scrollable cursors) = ";
568 char * const langDBINF_SCROLL_OPTS = "Scroll Options (scrollable cursors) = ";
569 char * const langDBINF_STATIC_SENS = "Static Sensitivity = ";
570 char * const langDBINF_TXN_CAPABLE = "Transaction Support = ";
571 char * const langDBINF_LOGIN_TIMEOUT = "Login Timeout = ";
572 char * const langDBINF_NONE = "None";
573 char * const langDBINF_LEVEL1 = "Level 1";
574 char * const langDBINF_LEVEL2 = "Level 2";
575 char * const langDBINF_NOT_COMPLIANT = "Not Compliant";
576 char * const langDBINF_COMPLIANT = "Compliant";
577 char * const langDBINF_MIN_GRAMMAR = "Minimum Grammer";
578 char * const langDBINF_CORE_GRAMMAR = "Core Grammer";
579 char * const langDBINF_EXT_GRAMMAR = "Extended Grammer";
580 char * const langDBINF_DELETE_CURSORS = "Delete cursors";
581 char * const langDBINF_CLOSE_CURSORS = "Close cursors";
582 char * const langDBINF_PRESERVE_CURSORS = "Preserve cursors";
583 char * const langDBINF_READ_UNCOMMITTED = "Read Uncommitted";
584 char * const langDBINF_READ_COMMITTED = "Read Committed";
585 char * const langDBINF_REPEATABLE_READ = "Repeatable Read";
586 char * const langDBINF_SERIALIZABLE = "Serializable";
587 char * const langDBINF_VERSIONING = "Versioning";
588 char * const langDBINF_NEXT = "Next";
589 char * const langDBINF_PREV = "Prev";
590 char * const langDBINF_FIRST = "First";
591 char * const langDBINF_LAST = "Last";
592 char * const langDBINF_ABSOLUTE = "Absolute";
593 char * const langDBINF_RELATIVE = "Relative";
594 char * const langDBINF_RESUME = "Resume";
595 char * const langDBINF_BOOKMARK = "Bookmark";
596 char * const langDBINF_NO_CHANGE = "No Change";
597 char * const langDBINF_EXCLUSIVE = "Exclusive";
598 char * const langDBINF_UNLOCK = "Unlock";
599 char * const langDBINF_POSITION = "Position";
600 char * const langDBINF_REFRESH = "Refresh";
601 char * const langDBINF_UPD = "Upd";
602 char * const langDBINF_DEL = "Del";
603 char * const langDBINF_ADD = "Add";
604 char * const langDBINF_POS_DEL = "Pos Delete";
605 char * const langDBINF_POS_UPD = "Pos Update";
606 char * const langDBINF_SELECT_FOR_UPD = "Select For Update";
607 char * const langDBINF_READ_ONLY = "Read Only";
608 char * const langDBINF_LOCK = "Lock";
609 char * const langDBINF_OPT_ROWVER = "Opt. Rowver";
610 char * const langDBINF_OPT_VALUES = "Opt. Values";
611 char * const langDBINF_FWD_ONLY = "Fwd Only";
612 char * const langDBINF_STATIC = "Static";
613 char * const langDBINF_KEYSET_DRIVEN = "Keyset Driven";
614 char * const langDBINF_DYNAMIC = "Dynamic";
615 char * const langDBINF_MIXED = "Mixed";
616 char * const langDBINF_ADDITIONS = "Additions";
617 char * const langDBINF_DELETIONS = "Deletions";
618 char * const langDBINF_UPDATES = "Updates";
619 char * const langDBINF_DML_ONLY = "DML Only";
620 char * const langDBINF_DDL_COMMIT = "DDL Commit";
621 char * const langDBINF_DDL_IGNORE = "DDL Ignore";
622 char * const langDBINF_DDL_AND_DML = "DDL and DML";
623 char * const langDBINF_ORACLE_BANNER = ">>> ORACLE STATISTICS AND TUNING INFORMATION <<<";
624 char * const langDBINF_DB_BLOCK_GETS = "DB block gets";
625 char * const langDBINF_CONSISTENT_GETS = "Consistent gets";
626 char * const langDBINF_PHYSICAL_READS = "Physical reads";
627 char * const langDBINF_CACHE_HIT_RATIO = "Cache hit ratio";
628 char * const langDBINF_TABLESPACE_IO = "TABLESPACE I/O LEVELS";
629 char * const langDBINF_PHYSICAL_WRITES = "Physical writes";