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