1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 package org.apache.openoffice.comp.sdbc.dbtools.util;
23 
24 public class Resources {
25     public static final int STR_COMMON_BASE = 1200;
26     // = resource ids for log messages
27     public static final int STR_LOG_MESSAGE_BASE = 10000;
28     public static final int STR_JDBC_LOG_MESSAGE_BASE = STR_LOG_MESSAGE_BASE + 500;
29 
30     public static final int STR_STRING_LENGTH_EXCEEDED = (STR_COMMON_BASE + 1);
31     public static final int STR_CANNOT_CONVERT_STRING = (STR_COMMON_BASE + 2);
32     public static final int STR_URI_SYNTAX_ERROR = (STR_COMMON_BASE + 3);
33     public static final int STR_COULD_NOT_LOAD_FILE = (STR_COMMON_BASE + 4);
34     public static final int STR_QUERY_TOO_COMPLEX = (STR_COMMON_BASE + 5);
35     public static final int STR_OPERATOR_TOO_COMPLEX = (STR_COMMON_BASE + 6);
36     public static final int STR_QUERY_INVALID_LIKE_COLUMN = (STR_COMMON_BASE + 7);
37     public static final int STR_QUERY_INVALID_LIKE_STRING = (STR_COMMON_BASE + 8);
38     public static final int STR_QUERY_NOT_LIKE_TOO_COMPLEX = (STR_COMMON_BASE + 9);
39     public static final int STR_QUERY_LIKE_WILDCARD = (STR_COMMON_BASE + 10);
40     public static final int STR_QUERY_LIKE_WILDCARD_MANY = (STR_COMMON_BASE + 11);
41     public static final int STR_INVALID_COLUMNNAME = (STR_COMMON_BASE + 12);
42     public static final int STR_NO_CLASSNAME = (STR_COMMON_BASE + 13);
43     public static final int STR_NO_CLASSNAME_PATH = (STR_COMMON_BASE + 14);
44     public static final int STR_UNKNOWN_PARA_TYPE = (STR_COMMON_BASE + 15);
45     public static final int STR_INVALID_COLUMN_SELECTION = (STR_COMMON_BASE + 16);
46     public static final int STR_PARA_ONLY_PREPARED = (STR_COMMON_BASE + 17);
47     public static final int STR_COLUMN_NOT_UPDATEABLE = (STR_COMMON_BASE + 18);
48     public static final int STR_ROW_ALREADY_DELETED = (STR_COMMON_BASE + 19);
49     public static final int STR_UNKNOWN_COLUMN_TYPE = (STR_COMMON_BASE + 20);
50     public static final int STR_FORMULA_WRONG = (STR_COMMON_BASE + 21);
51     public static final int STR_NO_JAVA = (STR_COMMON_BASE + 22);
52     public static final int STR_NO_RESULTSET = (STR_COMMON_BASE + 23);
53     public static final int STR_NO_ROWCOUNT = (STR_COMMON_BASE + 24);
54     public static final int STR_ERRORMSG_SEQUENCE = (STR_COMMON_BASE + 25);
55     public static final int STR_INVALID_INDEX = (STR_COMMON_BASE + 26);
56     public static final int STR_UNSUPPORTED_FUNCTION = (STR_COMMON_BASE + 27);
57     public static final int STR_UNSUPPORTED_FEATURE = (STR_COMMON_BASE + 28);
58     public static final int STR_UNKNOWN_COLUMN_NAME = (STR_COMMON_BASE + 29);
59     public static final int STR_INVALID_PARA_COUNT = (STR_COMMON_BASE + 30);
60     public static final int STR_PRIVILEGE_NOT_GRANTED = (STR_COMMON_BASE + 31);
61     public static final int STR_PRIVILEGE_NOT_REVOKED = (STR_COMMON_BASE + 32);
62     public static final int STR_INVALID_BOOKMARK = (STR_COMMON_BASE + 33);
63     public static final int STR_NO_ELEMENT_NAME = (STR_COMMON_BASE + 34);
64     public static final int STR_NO_INPUTSTREAM = (STR_COMMON_BASE + 35);
65     public static final int STR_INPUTSTREAM_WRONG_LEN = (STR_COMMON_BASE + 36);
66     public static final int STR_WRONG_PARAM_INDEX = (STR_COMMON_BASE + 37);
67     public static final int STR_NO_CONNECTION_GIVEN = (STR_COMMON_BASE + 38);
68 
69     public static final int STR_LOG_DRIVER_CONNECTING_URL      = ( STR_JDBC_LOG_MESSAGE_BASE +  1 );
70     public static final int STR_LOG_DRIVER_SUCCESS             = ( STR_JDBC_LOG_MESSAGE_BASE +  2 );
71     public static final int STR_LOG_CREATE_STATEMENT           = ( STR_JDBC_LOG_MESSAGE_BASE +  3 );
72     public static final int STR_LOG_CREATED_STATEMENT_ID       = ( STR_JDBC_LOG_MESSAGE_BASE +  4 );
73     public static final int STR_LOG_PREPARE_STATEMENT          = ( STR_JDBC_LOG_MESSAGE_BASE +  5 );
74     public static final int STR_LOG_PREPARED_STATEMENT_ID      = ( STR_JDBC_LOG_MESSAGE_BASE +  6 );
75     public static final int STR_LOG_PREPARE_CALL               = ( STR_JDBC_LOG_MESSAGE_BASE +  7 );
76     public static final int STR_LOG_PREPARED_CALL_ID           = ( STR_JDBC_LOG_MESSAGE_BASE +  8 );
77     public static final int STR_LOG_NATIVE_SQL                 = ( STR_JDBC_LOG_MESSAGE_BASE +  9 );
78     public static final int STR_LOG_LOADING_DRIVER             = ( STR_JDBC_LOG_MESSAGE_BASE + 10 );
79     public static final int STR_LOG_NO_DRIVER_CLASS            = ( STR_JDBC_LOG_MESSAGE_BASE + 11 );
80     public static final int STR_LOG_CONN_SUCCESS               = ( STR_JDBC_LOG_MESSAGE_BASE + 12 );
81     public static final int STR_LOG_NO_SYSTEM_CONNECTION       = ( STR_JDBC_LOG_MESSAGE_BASE + 13 );
82     public static final int STR_LOG_GOT_JDBC_CONNECTION        = ( STR_JDBC_LOG_MESSAGE_BASE + 14 );
83     public static final int STR_LOG_SHUTDOWN_CONNECTION        = ( STR_JDBC_LOG_MESSAGE_BASE + 15 );
84     public static final int STR_LOG_GENERATED_VALUES            =( STR_JDBC_LOG_MESSAGE_BASE + 16 );
85     public static final int STR_LOG_GENERATED_VALUES_FALLBACK  = ( STR_JDBC_LOG_MESSAGE_BASE + 17 );
86     public static final int STR_LOG_EXECUTE_STATEMENT          = ( STR_JDBC_LOG_MESSAGE_BASE + 18 );
87     public static final int STR_LOG_EXECUTE_QUERY              = ( STR_JDBC_LOG_MESSAGE_BASE + 19 );
88     public static final int STR_LOG_CLOSING_STATEMENT          = ( STR_JDBC_LOG_MESSAGE_BASE + 20 );
89     public static final int STR_LOG_EXECUTE_UPDATE             = ( STR_JDBC_LOG_MESSAGE_BASE + 21 );
90     public static final int STR_LOG_UPDATE_COUNT               = ( STR_JDBC_LOG_MESSAGE_BASE + 22 );
91     public static final int STR_LOG_RESULT_SET_CONCURRENCY     = ( STR_JDBC_LOG_MESSAGE_BASE + 23 );
92     public static final int STR_LOG_RESULT_SET_TYPE            = ( STR_JDBC_LOG_MESSAGE_BASE + 24 );
93     public static final int STR_LOG_FETCH_DIRECTION            = ( STR_JDBC_LOG_MESSAGE_BASE + 25 );
94     public static final int STR_LOG_FETCH_SIZE                 = ( STR_JDBC_LOG_MESSAGE_BASE + 26 );
95     public static final int STR_LOG_SET_ESCAPE_PROCESSING      = ( STR_JDBC_LOG_MESSAGE_BASE + 27 );
96     public static final int STR_LOG_EXECUTING_PREPARED         = ( STR_JDBC_LOG_MESSAGE_BASE + 28 );
97     public static final int STR_LOG_EXECUTING_PREPARED_UPDATE  = ( STR_JDBC_LOG_MESSAGE_BASE + 29 );
98     public static final int STR_LOG_EXECUTING_PREPARED_QUERY   = ( STR_JDBC_LOG_MESSAGE_BASE + 30 );
99     public static final int STR_LOG_STRING_PARAMETER           = ( STR_JDBC_LOG_MESSAGE_BASE + 31 );
100     public static final int STR_LOG_BOOLEAN_PARAMETER          = ( STR_JDBC_LOG_MESSAGE_BASE + 32 );
101     public static final int STR_LOG_BYTE_PARAMETER             = ( STR_JDBC_LOG_MESSAGE_BASE + 33 );
102     public static final int STR_LOG_DATE_PARAMETER             = ( STR_JDBC_LOG_MESSAGE_BASE + 34 );
103     public static final int STR_LOG_TIME_PARAMETER             = ( STR_JDBC_LOG_MESSAGE_BASE + 35 );
104     public static final int STR_LOG_TIMESTAMP_PARAMETER        = ( STR_JDBC_LOG_MESSAGE_BASE + 36 );
105     public static final int STR_LOG_DOUBLE_PARAMETER           = ( STR_JDBC_LOG_MESSAGE_BASE + 37 );
106     public static final int STR_LOG_FLOAT_PARAMETER            = ( STR_JDBC_LOG_MESSAGE_BASE + 38 );
107     public static final int STR_LOG_INT_PARAMETER              = ( STR_JDBC_LOG_MESSAGE_BASE + 39 );
108     public static final int STR_LOG_LONG_PARAMETER             = ( STR_JDBC_LOG_MESSAGE_BASE + 40 );
109     public static final int STR_LOG_NULL_PARAMETER             = ( STR_JDBC_LOG_MESSAGE_BASE + 41 );
110     public static final int STR_LOG_OBJECT_NULL_PARAMETER      = ( STR_JDBC_LOG_MESSAGE_BASE + 42 );
111     public static final int STR_LOG_SHORT_PARAMETER            = ( STR_JDBC_LOG_MESSAGE_BASE + 43 );
112     public static final int STR_LOG_BYTES_PARAMETER            = ( STR_JDBC_LOG_MESSAGE_BASE + 44 );
113     public static final int STR_LOG_CHARSTREAM_PARAMETER       = ( STR_JDBC_LOG_MESSAGE_BASE + 45 );
114     public static final int STR_LOG_BINARYSTREAM_PARAMETER     = ( STR_JDBC_LOG_MESSAGE_BASE + 46 );
115     public static final int STR_LOG_CLEAR_PARAMETERS           = ( STR_JDBC_LOG_MESSAGE_BASE + 47 );
116     public static final int STR_LOG_META_DATA_METHOD           = ( STR_JDBC_LOG_MESSAGE_BASE + 48 );
117     public static final int STR_LOG_META_DATA_METHOD_ARG1      = ( STR_JDBC_LOG_MESSAGE_BASE + 49 );
118     public static final int STR_LOG_META_DATA_METHOD_ARG2      = ( STR_JDBC_LOG_MESSAGE_BASE + 50 );
119     public static final int STR_LOG_META_DATA_METHOD_ARG3      = ( STR_JDBC_LOG_MESSAGE_BASE + 51 );
120     public static final int STR_LOG_META_DATA_METHOD_ARG4      = ( STR_JDBC_LOG_MESSAGE_BASE + 52 );
121     public static final int STR_LOG_META_DATA_RESULT           = ( STR_JDBC_LOG_MESSAGE_BASE + 53 );
122     public static final int STR_LOG_META_DATA_SUCCESS          = ( STR_JDBC_LOG_MESSAGE_BASE + 54 );
123     public static final int STR_LOG_THROWING_EXCEPTION         = ( STR_JDBC_LOG_MESSAGE_BASE + 55 );
124     public static final int STR_LOG_SETTING_SYSTEM_PROPERTY    = ( STR_JDBC_LOG_MESSAGE_BASE + 56 );
125 }
126