001: /*
002:
003: Derby - Class org.apache.derby.shared.common.reference.MessageId
004:
005: Licensed to the Apache Software Foundation (ASF) under one or more
006: contributor license agreements. See the NOTICE file distributed with
007: this work for additional information regarding copyright ownership.
008: The ASF licenses this file to you under the Apache License, Version 2.0
009: (the "License"); you may not use this file except in compliance with
010: the License. You may obtain a copy of the License at
011:
012: http://www.apache.org/licenses/LICENSE-2.0
013:
014: Unless required by applicable law or agreed to in writing, software
015: distributed under the License is distributed on an "AS IS" BASIS,
016: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: See the License for the specific language governing permissions and
018: limitations under the License.
019:
020: */
021:
022: package org.apache.derby.shared.common.reference;
023:
024: /**
025: This class contains message identifiers for
026: strings that are not converted to SQL exceptions.
027:
028: A* - Authentication
029: C* - Class Manager
030: D* - Raw Store Data
031: I* - Interface in com.ibm.db2j.core.*
032: J* - Connectivity (JDBC)
033: L* - Raw Store Log
034: M* - Message service
035: */
036:
037: public interface MessageId {
038:
039: /*
040: ** Raw Store log
041: */
042:
043: String LOG_BEGIN_ERROR = "L001";
044: String LOG_END_ERROR = "L002";
045: String LOG_BEGIN_CORRUPT_STACK = "L003";
046: String LOG_END_CORRUPT_STACK = "L004";
047: String LOG_BEGIN_ERROR_STACK = "L005";
048: String LOG_END_ERROR_STACK = "L006";
049: String LOG_LOG_NOT_FOUND = "L007";
050: String LOG_DELETE_INCOMPATIBLE_FILE = "L008";
051: String LOG_DELETE_OLD_FILE = "L009";
052: String LOG_INCOMPLETE_LOG_RECORD = "L010";
053: String LOG_CHECKPOINT_EXCEPTION = "L011";
054: String LOG_RECORD_NOT_FIRST = "L012";
055: String LOG_RECORD_FIRST = "L013";
056: String LOG_BAD_START_INSTANT = "L014";
057: String LOG_NEW_LOGFILE_EXIST = "L015";
058: String LOG_CANNOT_CREATE_NEW = "L016";
059: String LOG_CANNOT_CREATE_NEW_DUETO = "L017";
060: String LOG_MAYBE_INCONSISTENT = "L018";
061: String LOG_WAS_IN_DURABILITY_TESTMODE_NO_SYNC = "L020"; // database was running in
062: // derby.system.durability set to test
063: String LOG_DURABILITY_TESTMODE_NO_SYNC_ERR = "L021"; // hint that error could be because
064: // derby.system.durability was set to test
065:
066: /*
067: * Raw Store data
068: */
069:
070: String STORE_BOOT_MSG = "D001";
071: String STORE_SHUTDOWN_MSG = "D002";
072: String STORE_BACKUP_STARTED = "D004";
073: String STORE_MOVED_BACKUP = "D005";
074: String STORE_DATA_SEG_BACKUP_COMPLETED = "D006";
075: String STORE_EDITED_SERVICEPROPS = "D007";
076: String STORE_ERROR_EDIT_SERVICEPROPS = "D008";
077: String STORE_COPIED_LOG = "D009";
078: String STORE_BACKUP_ABORTED = "D010";
079: String STORE_REMOVED_BACKUP = "D011";
080: String STORE_BACKUP_COMPLETED = "D012";
081: String STORE_DURABILITY_TESTMODE_NO_SYNC = "D013"; // for derby.system.durability is
082: // set to test
083: String STORE_BOOT_READONLY_MSG = "D014";
084:
085: /*
086: ** ClassManager
087: */
088: String CM_WROTE_CLASS_FILE = "C000";
089: String CM_UNKNOWN_CERTIFICATE = "C001";
090: String CM_SECURITY_EXCEPTION = "C002";
091: String CM_LOAD_JAR_EXCEPTION = "C003";
092: String CM_STALE_LOADER = "C004";
093: String CM_CLASS_LOADER_START = "C005";
094: String CM_CLASS_LOAD = "C006";
095: String CM_CLASS_LOAD_EXCEPTION = "C007";
096:
097: /*
098: ** Connectivity
099: */
100: String CONN_DATABASE_IDENTITY = "J004"; // database identity
101: String CONN_SHUT_DOWN_CLOUDSCAPE = "J005"; // shut down Cloudscape
102: String CONN_CREATE_DATABASE = "J007"; // create database
103: String CONN_NO_DETAILS = "J008"; // no details
104: String CONN_DATA_ENCRYPTION = "J010"; // encrypt database on disk
105: String CONN_UPGRADE_DATABASE = "J013"; // upgrade database
106: String CONN_CRYPTO_PROVIDER = "J016"; // cryptographic service provider
107: String CONN_CRYPTO_ALGORITHM = "J017"; // cryptographic algorithm
108: String CONN_CRYPTO_KEY_LENGTH = "J018"; // cryptographic key length
109: String CONN_CRYPTO_EXTERNAL_KEY = "J019"; // external cryptographic key
110: String CONN_BOOT_PASSWORD = "J020"; // secret cryptographic key
111: String CONN_LOCALE = "J021"; // locale for the database
112: String CONN_USERNAME_ATTR = "J022"; // user name
113: String CONN_PASSWORD_ATTR = "J023"; // user password
114: String CONN_LOG_DEVICE = "J025"; // log directory path
115: String CONN_ROLL_FORWARD_RECOVERY_FROM = "J028"; //backup path for roll-forward recovery
116: String CONN_CREATE_FROM = "J029"; //backup path for creating database from backup
117: String CONN_RESTORE_FROM = "J030"; //backup path for restoring database from backup
118: String CONN_NETWORK_SERVER_CLASS_FIND = "J100"; // Cannot find the network server starterclass
119: String CONN_NETWORK_SERVER_CLASS_LOAD = "J101"; // Cannot load the network server constructor
120: String CONN_NETWORK_SERVER_START_EXCEPTION = "J102";
121: String CONN_NETWORK_SERVER_SHUTDOWN_EXCEPTION = "J103";
122: String CONN_ALREADY_CLOSED = "J104";
123: String CONN_PRECISION_TOO_LARGE = "J105";
124: String CONN_SECMECH_NOT_SUPPORTED = "J110";
125: String CONN_PASSWORD_MISSING = "J111";
126: String CONN_USERID_MISSING = "J112";
127: String CONN_USERID_OR_PASSWORD_INVALID = "J113";
128: String CONN_USERID_REVOKED = "J114";
129: String CONN_NEW_PASSWORD_INVALID = "J115";
130: String CONN_SECSVC_NONRETRYABLE_ERR = "J116";
131: String CONN_SECTKN_MISSING_OR_INVALID = "J117";
132: String CONN_PASSWORD_EXPIRED = "J118";
133: String CONN_NOT_SPECIFIED = "J120";
134: String CONN_USER_NOT_AUTHORIZED_TO_DB = "J121";
135: String CONN_DRDA_RDBNACRM = "J122";
136: String CONN_DRDA_CMDCHKRM = "J123";
137: String CONN_DRDA_RDBACCRM = "J124";
138: String CONN_DRDA_DTARMCHRM = "J125";
139: String CONN_DRDA_PRCCNVRM = "J126";
140: String CONN_PARSE_SQLDIAGGRP_NOT_IMPLEMENTED = "J127";
141: String CONN_CURSOR_NOT_OPEN = "J128";
142: String CONN_DRDA_QRYOPEN = "J129";
143: String CONN_DRDA_INVALIDFDOCA = "J130";
144: String CONN_DRDA_DATASTREAM_SYNTAX_ERROR = "J131";
145: String CONN_USERNAME_DESCRIPTION = "J132";
146: String CONN_PASSWORD_DESCRIPTION = "J133";
147:
148: /*
149: ** Authentication
150: */
151: String AUTH_NO_SERVICE_FOR_SYSTEM = "A001"; // FATAL: There is no Authentication Service for the system
152: String AUTH_NO_SERVICE_FOR_DB = "A002"; // FATAL: There is no Authentication Service for the database
153: String AUTH_NO_LDAP_HOST_MENTIONED = "A011"; // No LDAP Server/Host name mentioned ...
154: String AUTH_INVALID = "A020"; // authentication failed due to invalid password or whatever
155:
156: /*
157: ** cloudscape Interface in com.ibm.db2j.core.*
158: ** These messages are thrown in both the server and the client side.
159: */
160: String CORE_JDBC_DRIVER_UNREGISTERED = "I015"; // JDBCDriver is not registered with the JDBC driver manager
161: String CORE_DATABASE_NOT_AVAILABLE = "I024"; // Database not available
162: String CORE_DRIVER_NOT_AVAILABLE = "I025"; // JDBC Driver not available
163: String JDBC_DRIVER_REGISTER_ERROR = "I026"; // Error while registering driver
164:
165: /*
166: * Monitor
167: */
168: String SERVICE_PROPERTIES_DONT_EDIT = "M001"; // Tell user not to edit service.properties
169:
170: }
|