1*d34edd0aSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d34edd0aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d34edd0aSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d34edd0aSAndrew Rist * distributed with this work for additional information
6*d34edd0aSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d34edd0aSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d34edd0aSAndrew Rist * "License"); you may not use this file except in compliance
9*d34edd0aSAndrew Rist * with the License.  You may obtain a copy of the License at
10*d34edd0aSAndrew Rist *
11*d34edd0aSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d34edd0aSAndrew Rist *
13*d34edd0aSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d34edd0aSAndrew Rist * software distributed under the License is distributed on an
15*d34edd0aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d34edd0aSAndrew Rist * KIND, either express or implied.  See the License for the
17*d34edd0aSAndrew Rist * specific language governing permissions and limitations
18*d34edd0aSAndrew Rist * under the License.
19*d34edd0aSAndrew Rist *
20*d34edd0aSAndrew Rist *************************************************************/
21*d34edd0aSAndrew Rist
22*d34edd0aSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "resource/jdbc_log.hrc"
25cdf0e10cSrcweir
26cdf0e10cSrcweir// ============================================================================
27cdf0e10cSrcweir// = log messages for the JDBC driver
28cdf0e10cSrcweir// ============================================================================
29cdf0e10cSrcweir
30cdf0e10cSrcweirString STR_LOG_DRIVER_CONNECTING_URL
31cdf0e10cSrcweir{
32cdf0e10cSrcweir    Text = "jdbcBridge: connecting to URL '$1$'";
33cdf0e10cSrcweir};
34cdf0e10cSrcweir
35cdf0e10cSrcweirString STR_LOG_DRIVER_SUCCESS
36cdf0e10cSrcweir{
37cdf0e10cSrcweir    Text = "jdbcBridge: success";
38cdf0e10cSrcweir};
39cdf0e10cSrcweir
40cdf0e10cSrcweirString STR_LOG_CREATE_STATEMENT
41cdf0e10cSrcweir{
42cdf0e10cSrcweir    Text = "c$1$: creating statement";
43cdf0e10cSrcweir};
44cdf0e10cSrcweir
45cdf0e10cSrcweirString STR_LOG_CREATED_STATEMENT_ID
46cdf0e10cSrcweir{
47cdf0e10cSrcweir    Text = "c$1$: created statement, statement id: s$2$";
48cdf0e10cSrcweir};
49cdf0e10cSrcweir
50cdf0e10cSrcweirString STR_LOG_PREPARE_STATEMENT
51cdf0e10cSrcweir{
52cdf0e10cSrcweir    Text = "c$1$: preparing statement: $2$";
53cdf0e10cSrcweir};
54cdf0e10cSrcweir
55cdf0e10cSrcweirString STR_LOG_PREPARED_STATEMENT_ID
56cdf0e10cSrcweir{
57cdf0e10cSrcweir    Text = "c$1$: prepared statement, statement id: s$2$";
58cdf0e10cSrcweir};
59cdf0e10cSrcweir
60cdf0e10cSrcweirString STR_LOG_PREPARE_CALL
61cdf0e10cSrcweir{
62cdf0e10cSrcweir    Text = "c$1$: preparing call: $2$";
63cdf0e10cSrcweir};
64cdf0e10cSrcweir
65cdf0e10cSrcweirString STR_LOG_PREPARED_CALL_ID
66cdf0e10cSrcweir{
67cdf0e10cSrcweir    Text = "c$1$: prepared call, statement id: s$2$";
68cdf0e10cSrcweir};
69cdf0e10cSrcweir
70cdf0e10cSrcweirString STR_LOG_NATIVE_SQL
71cdf0e10cSrcweir{
72cdf0e10cSrcweir    Text = "c$1$: native SQL: $2$ -> $3$";
73cdf0e10cSrcweir};
74cdf0e10cSrcweir
75cdf0e10cSrcweirString STR_LOG_LOADING_DRIVER
76cdf0e10cSrcweir{
77cdf0e10cSrcweir    Text = "c$1$: attempting to load driver class $2$";
78cdf0e10cSrcweir};
79cdf0e10cSrcweir
80cdf0e10cSrcweirString STR_LOG_NO_DRIVER_CLASS
81cdf0e10cSrcweir{
82cdf0e10cSrcweir    Text = "c$1$: no Java Driver Class was provided";
83cdf0e10cSrcweir};
84cdf0e10cSrcweir
85cdf0e10cSrcweirString STR_LOG_CONN_SUCCESS
86cdf0e10cSrcweir{
87cdf0e10cSrcweir    Text = "c$1$: success";
88cdf0e10cSrcweir};
89cdf0e10cSrcweir
90cdf0e10cSrcweirString STR_LOG_NO_SYSTEM_CONNECTION
91cdf0e10cSrcweir{
92cdf0e10cSrcweir    Text = "c$1$: JDBC driver did not provide a JDBC connection";
93cdf0e10cSrcweir};
94cdf0e10cSrcweir
95cdf0e10cSrcweirString STR_LOG_GOT_JDBC_CONNECTION
96cdf0e10cSrcweir{
97cdf0e10cSrcweir    Text = "c$1$: obtained a JDBC connection for $2$";
98cdf0e10cSrcweir};
99cdf0e10cSrcweir
100cdf0e10cSrcweirString STR_LOG_SHUTDOWN_CONNECTION
101cdf0e10cSrcweir{
102cdf0e10cSrcweir    Text = "c$1$: shutting down connection";
103cdf0e10cSrcweir};
104cdf0e10cSrcweir
105cdf0e10cSrcweirString STR_LOG_GENERATED_VALUES
106cdf0e10cSrcweir{
107cdf0e10cSrcweir    Text = "s$1$: retrieving generated values";
108cdf0e10cSrcweir};
109cdf0e10cSrcweir
110cdf0e10cSrcweirString STR_LOG_GENERATED_VALUES_FALLBACK
111cdf0e10cSrcweir{
112cdf0e10cSrcweir    Text = "s$1$: getGeneratedValues: falling back to statement: $2$";
113cdf0e10cSrcweir};
114cdf0e10cSrcweir
115cdf0e10cSrcweirString STR_LOG_EXECUTE_STATEMENT
116cdf0e10cSrcweir{
117cdf0e10cSrcweir    Text = "s$1$: going to execute: $2$";
118cdf0e10cSrcweir};
119cdf0e10cSrcweir
120cdf0e10cSrcweirString STR_LOG_EXECUTE_QUERY
121cdf0e10cSrcweir{
122cdf0e10cSrcweir    Text = "s$1$: going to execute query: $2$";
123cdf0e10cSrcweir};
124cdf0e10cSrcweir
125cdf0e10cSrcweirString STR_LOG_CLOSING_STATEMENT
126cdf0e10cSrcweir{
127cdf0e10cSrcweir    Text = "s$1$: closing/disposing statement";
128cdf0e10cSrcweir};
129cdf0e10cSrcweir
130cdf0e10cSrcweirString STR_LOG_EXECUTE_UPDATE
131cdf0e10cSrcweir{
132cdf0e10cSrcweir    Text = "s$1$: going to execute update: $2$";
133cdf0e10cSrcweir};
134cdf0e10cSrcweir
135cdf0e10cSrcweirString STR_LOG_UPDATE_COUNT
136cdf0e10cSrcweir{
137cdf0e10cSrcweir    Text = "s$1$: update count: $2$";
138cdf0e10cSrcweir};
139cdf0e10cSrcweir
140cdf0e10cSrcweirString STR_LOG_RESULT_SET_CONCURRENCY
141cdf0e10cSrcweir{
142cdf0e10cSrcweir    Text = "s$1$: going to set result set concurrency: $2$";
143cdf0e10cSrcweir};
144cdf0e10cSrcweir
145cdf0e10cSrcweirString STR_LOG_RESULT_SET_TYPE
146cdf0e10cSrcweir{
147cdf0e10cSrcweir    Text = "s$1$: going to set result set type: $2$";
148cdf0e10cSrcweir};
149cdf0e10cSrcweir
150cdf0e10cSrcweirString STR_LOG_FETCH_DIRECTION
151cdf0e10cSrcweir{
152cdf0e10cSrcweir    Text = "s$1$: fetch direction: $2$";
153cdf0e10cSrcweir};
154cdf0e10cSrcweir
155cdf0e10cSrcweirString STR_LOG_FETCH_SIZE
156cdf0e10cSrcweir{
157cdf0e10cSrcweir    Text = "s$1$: fetch size: $2$";
158cdf0e10cSrcweir};
159cdf0e10cSrcweir
160cdf0e10cSrcweirString STR_LOG_SET_ESCAPE_PROCESSING
161cdf0e10cSrcweir{
162cdf0e10cSrcweir    Text = "s$1$: going to set escape processing: $2$";
163cdf0e10cSrcweir};
164cdf0e10cSrcweir
165cdf0e10cSrcweirString STR_LOG_EXECUTING_PREPARED
166cdf0e10cSrcweir{
167cdf0e10cSrcweir    Text = "s$1$: executing previously prepared statement";
168cdf0e10cSrcweir};
169cdf0e10cSrcweir
170cdf0e10cSrcweirString STR_LOG_EXECUTING_PREPARED_UPDATE
171cdf0e10cSrcweir{
172cdf0e10cSrcweir    Text = "s$1$: executing previously prepared update statement";
173cdf0e10cSrcweir};
174cdf0e10cSrcweir
175cdf0e10cSrcweirString STR_LOG_EXECUTING_PREPARED_QUERY
176cdf0e10cSrcweir{
177cdf0e10cSrcweir    Text = "s$1$: executing previously prepared query";
178cdf0e10cSrcweir};
179cdf0e10cSrcweir
180cdf0e10cSrcweirString STR_LOG_STRING_PARAMETER
181cdf0e10cSrcweir{
182cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: string; value: $3$";
183cdf0e10cSrcweir};
184cdf0e10cSrcweir
185cdf0e10cSrcweirString STR_LOG_BOOLEAN_PARAMETER
186cdf0e10cSrcweir{
187cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: boolean; value: $3$";
188cdf0e10cSrcweir};
189cdf0e10cSrcweir
190cdf0e10cSrcweirString STR_LOG_BYTE_PARAMETER
191cdf0e10cSrcweir{
192cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: byte; value: $3$";
193cdf0e10cSrcweir};
194cdf0e10cSrcweir
195cdf0e10cSrcweirString STR_LOG_DATE_PARAMETER
196cdf0e10cSrcweir{
197cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: date; value: $3$";
198cdf0e10cSrcweir};
199cdf0e10cSrcweir
200cdf0e10cSrcweirString STR_LOG_TIME_PARAMETER
201cdf0e10cSrcweir{
202cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: time; value: $3$";
203cdf0e10cSrcweir};
204cdf0e10cSrcweir
205cdf0e10cSrcweirString STR_LOG_TIMESTAMP_PARAMETER
206cdf0e10cSrcweir{
207cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: timestamp; value: $3$";
208cdf0e10cSrcweir};
209cdf0e10cSrcweir
210cdf0e10cSrcweirString STR_LOG_DOUBLE_PARAMETER
211cdf0e10cSrcweir{
212cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: double; value: $3$";
213cdf0e10cSrcweir};
214cdf0e10cSrcweir
215cdf0e10cSrcweirString STR_LOG_FLOAT_PARAMETER
216cdf0e10cSrcweir{
217cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: float; value: $3$";
218cdf0e10cSrcweir};
219cdf0e10cSrcweir
220cdf0e10cSrcweirString STR_LOG_INT_PARAMETER
221cdf0e10cSrcweir{
222cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: int; value: $3$";
223cdf0e10cSrcweir};
224cdf0e10cSrcweir
225cdf0e10cSrcweirString STR_LOG_LONG_PARAMETER
226cdf0e10cSrcweir{
227cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: long; value: $3$";
228cdf0e10cSrcweir};
229cdf0e10cSrcweir
230cdf0e10cSrcweirString STR_LOG_NULL_PARAMETER
231cdf0e10cSrcweir{
232cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: sql-type: $3$; value: null";
233cdf0e10cSrcweir};
234cdf0e10cSrcweir
235cdf0e10cSrcweirString STR_LOG_OBJECT_NULL_PARAMETER
236cdf0e10cSrcweir{
237cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: setting to null";
238cdf0e10cSrcweir};
239cdf0e10cSrcweir
240cdf0e10cSrcweirString STR_LOG_SHORT_PARAMETER
241cdf0e10cSrcweir{
242cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: short; value: $3$";
243cdf0e10cSrcweir};
244cdf0e10cSrcweir
245cdf0e10cSrcweirString STR_LOG_BYTES_PARAMETER
246cdf0e10cSrcweir{
247cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: byte[]";
248cdf0e10cSrcweir};
249cdf0e10cSrcweir
250cdf0e10cSrcweirString STR_LOG_CHARSTREAM_PARAMETER
251cdf0e10cSrcweir{
252cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: character stream";
253cdf0e10cSrcweir};
254cdf0e10cSrcweir
255cdf0e10cSrcweirString STR_LOG_BINARYSTREAM_PARAMETER
256cdf0e10cSrcweir{
257cdf0e10cSrcweir    Text = "s$1$: parameter no. $2$: type: binary stream";
258cdf0e10cSrcweir};
259cdf0e10cSrcweir
260cdf0e10cSrcweirString STR_LOG_CLEAR_PARAMETERS
261cdf0e10cSrcweir{
262cdf0e10cSrcweir    Text = "s$1$: clearing all parameters";
263cdf0e10cSrcweir};
264cdf0e10cSrcweir
265cdf0e10cSrcweirString STR_LOG_META_DATA_METHOD
266cdf0e10cSrcweir{
267cdf0e10cSrcweir    Text = "c$1$: entering XDatabaseMetaData::$2$";
268cdf0e10cSrcweir};
269cdf0e10cSrcweir
270cdf0e10cSrcweirString STR_LOG_META_DATA_METHOD_ARG1
271cdf0e10cSrcweir{
272cdf0e10cSrcweir    Text = "c$1$: entering XDatabaseMetaData::$2$( '$3$' )";
273cdf0e10cSrcweir};
274cdf0e10cSrcweir
275cdf0e10cSrcweirString STR_LOG_META_DATA_METHOD_ARG2
276cdf0e10cSrcweir{
277cdf0e10cSrcweir    Text = "c$1$: entering XDatabaseMetaData::$2$( '$3$', '$4$' )";
278cdf0e10cSrcweir};
279cdf0e10cSrcweir
280cdf0e10cSrcweirString STR_LOG_META_DATA_METHOD_ARG3
281cdf0e10cSrcweir{
282cdf0e10cSrcweir    Text = "c$1$: entering XDatabaseMetaData::$2$( '$3$', '$4$', '$5$' )";
283cdf0e10cSrcweir};
284cdf0e10cSrcweir
285cdf0e10cSrcweirString STR_LOG_META_DATA_METHOD_ARG4
286cdf0e10cSrcweir{
287cdf0e10cSrcweir    Text = "c$1$: entering XDatabaseMetaData::$2$( '$3$', '$4$', '$5$', '$6$' )";
288cdf0e10cSrcweir};
289cdf0e10cSrcweir
290cdf0e10cSrcweirString STR_LOG_META_DATA_RESULT
291cdf0e10cSrcweir{
292cdf0e10cSrcweir    Text = "c$1$: leaving XDatabaseMetaData::$2$: success-with-result: $3$";
293cdf0e10cSrcweir};
294cdf0e10cSrcweir
295cdf0e10cSrcweirString STR_LOG_META_DATA_SUCCESS
296cdf0e10cSrcweir{
297cdf0e10cSrcweir    Text = "c$1$: leaving XDatabaseMetaData::$2$: success";
298cdf0e10cSrcweir};
299cdf0e10cSrcweir
300cdf0e10cSrcweirString STR_LOG_THROWING_EXCEPTION
301cdf0e10cSrcweir{
302cdf0e10cSrcweir    Text = "SQLException to be thrown: message: '$1$', SQLState: $2$, ErrorCode: $3$";
303cdf0e10cSrcweir};
304cdf0e10cSrcweir
305cdf0e10cSrcweirString STR_LOG_SETTING_SYSTEM_PROPERTY
306cdf0e10cSrcweir{
307cdf0e10cSrcweir    Text = "setting system property \"$1$\" to value \"$2$\"";
308cdf0e10cSrcweir};