KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > exceptions > i18n > DescriptorExceptionResource


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the "License"). You may not use this file except
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * HEADER in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2005, Oracle. All rights reserved.
22
package oracle.toplink.essentials.exceptions.i18n;
23
24 import java.util.ListResourceBundle JavaDoc;
25
26 /**
27  * INTERNAL:
28  * English ResourceBundle for DescriptorException messages.
29  *
30  * Creation date: (12/8/00 4:47:38 PM)
31  * @author: Rick Barkhouse
32  */

33 public class DescriptorExceptionResource extends ListResourceBundle JavaDoc {
34     static final Object JavaDoc[][] contents = {
35                                            { "1", "The attribute [{0}] is not declared as type ValueHolderInterface, but its mapping uses indirection." },
36                                            { "2", "The attribute [{0}] is declared as type ValueHolderInterface, but its mapping does not use indirection." },
37                                            { "6", "Attribute name is missing." },
38                                            { "7", "The attribute [{0}] should be of type Vector (or a type that implements Map or Collection, if using Java 2)." },
39                                            { "8", "The descriptor [{0}] has been set to use inheritance, but a class indicator field has not been defined. {2}When using inheritance, a class indicator field or class extraction method must be set. {2}Parent Descriptor: [{1}]" },
40                                            { "9", "This mapping does not have a direct field name set." },
41                                            { "10", "This mapping does not have a field name set." },
42                                            { "11", "The foreign key information for this mapping is defined incorrectly." },
43                                            { "12", "Descriptors must use an identity map in order to use the \"Check Cache\" existence checking option." },
44                                            { "13", "The instance variable [{0}] in the object [{1}] is inaccessible." },
45                                            { "14", "Problem in cloning the object [{0}]. The clone method [{1}] is not accessible." },
46                                            { "15", "This class does not define a default constructor, which TopLink requires." },
47                                            { "16", "The descriptor callback method [{0}], with parameter (DescriptorEvent), is inaccessible." },
48                                            { "17", "Trying to access the method [{0}] on the object [{1}]. The underlying method is inaccessible." },
49                                            { "18", "Illegal method access in a Transformation mapping using a ValueHolder." },
50                                            { "19", "Illegal access while invoking the attribute method on a Transformation mapping. The underlying method is inaccessible." },
51                                            { "20", "The method [{0}] is inaccessible." },
52                                            { "21", "Problem in extracting class from row [{0}]. The static method [{1}], with parameter (DatabaseRow), is not accessible." },
53                                            { "22", "Problem in creating new instance. The creation method [{0}] is not accessible." },
54                                            { "23", "The descriptor callback method [{0}], with parameter (Session), is inaccessible." },
55                                            { "24", "The instance variable [{0}] in the object [{1}] is inaccessible. {3}Argument: [{2}]" },
56                                            { "25", "The method [{0}] with argument [{1}] is not accessible." },
57                                            { "26", "Trying to get value for instance variable [{0}] of type [{1}] from the object [{2}]. The specified object is not an instance of the class or interface declaring the underlying field." },
58                                            { "27", "Trying to invoke the method [{0}] on the object [{1}]. The number of actual and formal parameters differs, or an unwrapping conversion has failed." },
59                                            { "28", "Illegal argument while instantiating a method-based proxy in a Transformation mapping." },
60                                            { "29", "The number of actual and formal parameters differs, or an unwrapping conversion has failed." },
61                                            { "30", "The number of actual and formal parameters differs for method [{0}], or an unwrapping conversion has failed." },
62                                            { "31", "The number of actual and formal parameters for the descriptor callback method [{0}] differs, or an unwrapping conversion has failed." },
63                                            { "32", "Trying to set value [{0}] for instance variable [{1}] of type [{2}] in the object. The specified object is not an instance of the class or interface declaring the underlying field, or an unwrapping conversion has failed." },
64                                            { "33", "Trying to invoke [{0}] on the object [{1}]. The number of actual and formal parameters differs, or an unwrapping conversion has failed." },
65                                            { "34", "This class does not define a public default constructor, or the constructor raised an exception." },
66                                            { "35", "Invalid event." },
67                                            { "36", "Invalid event code [{0}]." },
68                                            { "37", "Invalid descriptor event code [{0}]." },
69                                            { "38", "Identity map constructor failed because an invalid identity map was specified." },
70                                            { "39", "This descriptor does not specify a Java class." },
71                                            { "40", "Descriptor is missing for [{0}]. It was probably not added to the Session." },
72                                            { "41", "A non-read-only mapping must be defined for the sequence number field." },
73                                            { "43", "Missing class for indicator field value [{0}] of type [{1}]." },
74                                            { "44", "Missing class indicator field from database row [{0}]." },
75                                            { "45", "Missing mapping for field [{0}]." },
76                                            { "46", "There should be one non-read-only mapping defined for the primary key field [{0}]." },
77                                            { "47", "The multiple table primary key mapping must be specified when a custom multiple table join is used." },
78                                            { "48", "Multiple writable mappings exist for the field [{0}]. Only one may be defined as writable, all others must be specified read-only." },
79                                            { "49", "An attribute transformation method name is not specified for this mapping." },
80                                            { "50", "A field name is not set for this mapping." },
81                                            { "51", "No foreign keys have been specified for this mapping." },
82                                            { "52", "No reference key has been specified for this mapping." },
83                                            { "53", "The relation table name is not set for this mapping." },
84                                            { "54", "There are no source relation keys specified for this mapping." },
85                                            { "55", "The descriptor callback method [{0}] cannot be found. It must take a DescriptorEvent as its argument." },
86                                            { "56", "The method [{0}] with parameters (Record) or (Record, Session) is not found." },
87                                            { "57", "Inaccessible constructor." },
88                                            { "58", "The method [{0}] with parameters () or (Session) not found." },
89                                            { "59", "The instance variable [{0}] is not defined in the domain class [{1}], or it is not accessible." },
90                                            { "60", "The method [{0}] or [{1}] is not defined in the object [{2}]." },
91                                            { "61", "The static class extraction method [{0}], with parameter (Record), does not exist, or is not accessible." },
92                                            { "62", "The clone method [{0}], with no parameters, does not exist, or is not accessible." },
93                                            { "63", "The instance creation method [{0}], with no parameters, does not exist, or is not accessible." },
94                                            { "64", "No target foreign keys have been specified for this mapping." },
95                                            { "65", "No target relation keys have been specified for this mapping." },
96                                            { "66", "Could not deserialize object from byte array." },
97                                            { "67", "Could not serialize object into byte array." },
98                                            { "68", "The value of an aggregate in object [{0}] is null. Null values not allowed for Aggregate mappings unless \"Allow Null\" is specified." },
99                                            { "69", "A NullPointerException was thrown while extracting a value from the instance variable [{0}] in the object [{1}]." },
100                                            { "70", "A NullPointerException was thrown while extracting a value through the method [{0}] in the object [{1}]." },
101                                            { "71", "A NullPointerException was thrown while setting the value of the instance variable [{0}] to the value [{1}]." },
102                                            { "72", "A NullPointerException was thrown while setting a value through the method [{0}] with argument [{1}]." },
103                                            { "73", "Cannot find descriptor for parent class [{0}]." },
104                                            { "74", "The primary key fields are not set for this descriptor." },
105                                            { "75", "The reference class is not specified for this descriptor." },
106                                            { "77", "The reference descriptor for [{0}] should be set to be an Aggregate descriptor." },
107                                            { "78", "The reference field [{0}] for this mapping must exist in the reference table." },
108                                            { "79", "The reference table is not specified for this mapping." },
109                                            { "80", "The relation key field [{0}] for this mapping must exist in the relation table." },
110                                            { "81", "The method [{0}] should return the type of the mapped attribute, not void." },
111                                            { "82", "The descriptor callback method [{0}], with parameter (DescriptorEvent), is not accessible." },
112                                            { "83", "The descriptor callback method [{0}], with parameter (Session), is not accessible." },
113                                            { "84", "The method [{0}], with parameters (Record) or (Record, Session), is not accessible." },
114                                            { "85", "The method [{0}], with parameters () or (Session), is not accessible." },
115                                            { "86", "The instance variable [{0}] in the class [{1}] is not accessible." },
116                                            { "87", "The methods [{0}], [{1}] in the object [{2}] are not accessible" },
117                                            { "88", "The static class extraction method [{0}], with parameter (Record), is not accessible." },
118                                            { "89", "The clone method [{0}], with no parameters, is not accessible." },
119                                            { "90", "The instance creation method [{0}], with no parameters, is not accessible." },
120                                            { "91", "To use sequence-generated IDs, both the \"Sequence Number Name\" and \"Sequence Number Field Name\" properties must be set for this descriptor." },
121                                            { "92", "The size of the target''s primary key does not match the size of the foreign key." },
122                                            { "93", "The table [{0}] is not present in this descriptor." },
123                                            { "94", "Descriptors must have a table name defined." },
124                                            { "96", "The number of target keys does not match the number of source keys." },
125                                            { "97", "Problem cloning the object [{0}]. The clone method [{0}] triggered an exception." },
126                                            { "98", "The underlying descriptor callback method [{0}], with parameter (DescriptorEvent), triggered an exception." },
127                                            { "99", "The method [{0}] on the object [{1}] triggered an exception." },
128                                            { "100", "A method has triggered an exception." },
129                                            { "101", "The underlying method triggered an exception." },
130                                            { "102", "The method [{0}] triggered an exception." },
131                                            { "103", "Problem in extracting class from row [{0}], using static method [{1}], with parameter (DatabaseRow). An exception was triggered." },
132                                            { "104", "Problem in creating new instance using creation method [{0}]. The creation method triggered an exception." },
133                                            { "105", "The underlying descriptor callback method [{0}], with parameter (Session), triggered an exception." },
134                                            { "106", "The method [{0}] on the object is throwing an exception. {2}Argument: [{1}]" },
135                                            { "108", "Cannot find value in class indicator mapping in parent descriptor [{0}]." },
136                                            { "109", "This descriptor should not have a write lock field defined because it is a child descriptor. It inherits its parent descriptor''s write lock field." },
137                                            { "110", "Descriptor is missing for class [{0}]." },
138                                            { "111", "Multiple table primary key field names must be fully qualified." },
139                                            { "112", "Only one table can be added by using setTableName(String). Use addTableName(String) to add multiple tables to a descriptor." },
140                                            { "113", "The constructor was inaccessible." },
141                                            { "114", "Problem in creating new instance using creation method [{0}]. The creation method is not accessible." },
142                                            { "115", "No conversion value provided for the attribute [{0}]." },
143                                            
144     { "116", "No conversion value provided for the value [{0}] in field [{1}]." },
145                                            
146     { "118", "The object [{0}] must not have read-only mappings to its write lock fields." },
147                                            { "119", "The object''s [{0}] mappings to its write lock fields must be read-only." },
148                                            { "120", "The query key [{0}] is defined in the parent descriptor [{1}], but not in the child descriptor [{2}]." },
149                                            { "122", "setExistenceCheck() with argument [{0}] is not understood." },
150                                            { "125", "The mapping for the attribute [{0}] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [{1}]." },
151                                            { "126", "No subclass matches this class [{0}] for this Aggregate mapping with inheritance." },
152                                            { "127", "The get method for the attribute [{0}] does not return a ValueHolderInterface, but the mapping uses indirection." },
153                                            { "128", "The get method for the attribute [{0}] returns a ValueHolderInterface, but the mapping does not use indirection." },
154                                            { "129", "The set method for the attribute [{0}] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection." },
155                                            { "130", "The set method for the attribute [{0}] takes a ValueHolderInterface as its parameter, but the mapping does not use indirection." },
156                                            { "131", "The get method for the attribute [{0}] should return a Vector (or a type that implements Map or Collection, if using Java 2)." },
157                                            { "133", "The set method for the attribute [{0}] should take a Vector as its parameter (or a type that implements Map or Collection, if using Java 2)." },
158                                            { "135", "The multiple table foreign key relationship refers to an unknown table [{0}]." },
159                                            { "138", "The attribute [{0}] is not declared as a superclass of [{1}], but the mapping uses transparent indirection." },
160                                            { "139", "The get method for the attribute [{0}] does not return a superclass of [{1}], but the mapping uses transparent indirection." },
161                                            { "140", "The set method for the attribute [{0}] does not take a superclass of [{1}] as its parameter, but the mapping uses transparent indirection." },
162                                            { "141", "The field [{0}] is not present in the table [{1}] in the database." },
163                                            { "142", "The table [{0}] is not present in the database." },
164                                            { "143", "The multiple table insert order Vector specified, [{0}], has more or fewer tables than are specified in the descriptor. {2}All of the tables [{1}] must be included in the insert order Vector." },
165                                            { "144", "Transparent indirection can only be used with CollectionMappings." },
166                                            { "145", "The indirect container class [{0}] must implement the constructor [{1}] with parameter (ValueHolderInterface)." },
167                                            { "146", "The indirect container class [{0}] could not be instantiated using the constructor {1}(ValueHolderInterface)." },
168                                            { "147", "The container policy [{0}] should only be used in JDK 1.1.x. It was instantiated for [{1}]." },
169                                            { "148", "The container policy [{0}] is not compatible with transparent indirection." },
170                                            { "149", "NoIndirectionPolicy objects should not receive this message." },
171                                            { "150", "The mapping for the attribute [{0}] uses transparent indirection so the attribute [{0}] must be initialized to an appropriate container. Currently the value is [{1}]. {2} - JDK 1.1.x: an instance of IndirectList, IndirectMap or Hashtable, or one of their subclasses. {2} - JDK 1.2 or higher: an instance of an implementor of Collection or Map." },
172                                            { "151", "The operation [{0}] is invalid for this mapping." },
173                                            { "152", "The operation [{1}] is invalid for this indirection policy [{0}]." },
174                                            { "153", "The reference descriptor for [{0}] should be set to be an Aggregate Collection descriptor." },
175                                            { "154", "The indirection container class [{0}] does not implement IndirectContainer." },
176                                            { "155", "This mapping does not include a foreign key field linked to the primary key field [{0}]." },
177                                            { "156", "The structure name is not set for this mapping." },
178                                            { "157", "Normal descriptors do not support non-relational extensions." },
179                                            { "158", "This descriptor''s parent class has been set to itself." },
180                                            { "159", "Proxy indirection is available only in JDK 1.3-compliant or higher virtual machines." },
181                                            { "160", "The attribute [{0}] of class [{1}] is typed as [{2}], which was not specified in the list of interfaces given to the useProxyIndirection() method. {4}Valid interfaces are: [{3}]." },
182                                            { "161", "The method [{0}] in class [{1}] returns a value of type [{2}], which was not specified in the list of interfaces given to the useProxyIndirection() method. {4}Valid interfaces are: [{3}]." },
183                                            { "162", "The method [{0}] in class [{1}] takes a parameter of type [{2}], which was not specified in the list of interfaces given to the useProxyIndirection() method.{4}Valid interfaces are: [{3}]." },
184                                            { "163", "This mapping''s attribute class does not match the collection class. [{1}] cannot be assigned to [{0}]." },
185                                            { "164", "The amendment method [{1}], in amendment class [{0}], is invalid, not public, or cannot be found. {2}Descriptor amendment methods must be declared \"public static void\" with (ClassDescriptor) as the single parameter." },
186                                            { "165", "This descriptor''s amendment method triggered an exception." },
187                                            { "166", "There is no mapping for the attribute [{0}]." },
188                                            { "167", "A valid constructor was not found for the indirection container class [{0}]." },
189                                            { "168", "Problem in creating new instance using the default constructor. The default constructor triggered an exception." },
190                                            { "169", "Problem in creating new instance of factory using the default constructor. The default constructor triggered an exception." },
191                                            { "170", "Problem (illegal access) in creating new instance of factory using the default constructor." },
192                                            { "171", "The factory class does not define a public default constructor, or the constructor raised an exception." },
193                                            { "172", "Factory constructor not found." },
194                                            { "173", "The factory constructor was inaccessible." },
195                                            { "174", "Problem in creating factory. The creation method [{0}] is not accessible." },
196                                            { "175", "Problem creating factory using creation method [{0}]. The creation method triggered an exception." },
197                                            { "176", "Problem in creating factory using creation method [{0}]. The creation method is not accessible." },
198                                            { "177", "Mapping is missing for the attribute: [{0}]." },
199                                            { "178", "Cannot find mapping for attribute [{0}] in entity bean [{1}]. The attribute must mapped." },
200                                            { "179", "The attribute, [{0}] uses Bidirectional Relationship Maintenance, but has ContainerPolicy, [{1}] which does not support it. The attribute should be mapped with a different collection type." },
201                                            { "181", "The AttributeTransformer class, [{0}] cannot be found." },
202                                            { "182", "The FieldTransformer class, [{0}] cannot be found." },
203                                            { "183", "The class, [{0}] cannot be used as an AttributeTransformer." },
204                                            { "184", "The class, [{0}] cannot be used as a FieldTransformer." },
205                                            { "185", "ReturningPolicy contains field, [{0}] with two different types: [{1}] and [{2}]." },
206                                            { "186", "ReturningPolicy contains field, [{0}] added twice: using addInsertField and addInsertFieldReturnOnly." },
207                                            { "187", "ReturningPolicy contains field, [{0}] with type [{1}], but the same field in descriptor has type [{2}]." },
208                                            { "188", "ReturningPolicy contains unmapped field, [{0}] which requires type." },
209                                            { "189", "ReturningPolicy contains mapped field, [{0}] which requires type." },
210                                            { "190", "ReturningPolicy contains field, [{0}] mapped with [{1}] mapping which is not supported." },
211                                            { "191", "ReturningPolicy contains field, [{0}] which is not supported: it is either sequence field, or class type indicator, or used for locking." },
212                                            { "192", "ReturningPolicy contains field, [{0}] but custom [{1}] doesn't output it." },
213                                            { "193", "There is no custom [{0}] set, but ReturningPolicy contains field(s) to be returned and [{1}] doesn't support generating call with returning." },
214                                            { "194", "The class extraction method [{0}], must be a static method on the descriptor's class." },
215                                            { "195", "The shared class {1} must not reference the isolated class {0}." },
216                                            { "196", "UpdateAllFields has not been set or has been set to false. When using CMPPolicy.setForceUpdate(true) you must also call CMPPolicy.setUpdateAllFields(true)" },
217                                            { "197", "The mapping [{0}] is not the appropriate type for this descriptor" },
218                                            { "198", "In order to use ObjectChangeTrackingPolicy or AttributeChangeTrackingPolicy, {0} has to implement ChangeTracker interface." },
219                                            { "199", "In order to use Fetch Group, the domain class ({0}) has to implement FetchGroupTracker interface." },
220                                            { "200", "Attempt to register an object with dead indirection as a new object. Possibly the object was deleted or removed from the cache during a merge of a serialized clone. This is a concurrency violation, consider a locking strategy." },
221                                            { "201", "An internal error occurred accessing the primary key object [{0}]." }
222     };
223
224     /**
225      * Return the lookup table.
226      */

227     protected Object JavaDoc[][] getContents() {
228         return contents;
229     }
230 }
231
Popular Tags