KickJava   Java API By Example, From Geeks To Geeks.

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


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 DefaultMappingException messages.
29  *
30  * @author: King Wang
31  * @since: OracleAS TopLink 10<i>g</i> (10.0.3)
32  */

33 public class DefaultMappingExceptionResource extends ListResourceBundle JavaDoc {
34     static final Object JavaDoc[][] contents = {
35                                            { "20001", "Could not find the parameter type: [{2}], defined in the ejb-jar.xml, of the finder: [{1}] in the entity bean: [{0}]." },
36                                            { "20002", "The finder method: [{1}] with the parameters as: [{2}], defined in the ejb-jar.xml, is not found in the home of bean: [{0}]." },
37                                            { "20003", "The ejbSelect method: [{1}] with the parameters as: [{2}], defined in the ejb-jar.xml, is not found in the bean class of bean: [{0}]." },
38                                            { "20004", "The finder method: [{1}] of bean: [{0}] in ejb-jar.xml file is not well defined. It should start with either 'find' or 'ejbSelect'." },
39                                            { "20005", "The abstract getter method: [{0}] is not defined in the bean: [{1}]." },
40                                            { "20006", "The cmp field: [{0}] is not defined in the bean: [{1}]." }
41     };
42
43     /**
44      * Return the lookup table.
45      */

46     protected Object JavaDoc[][] getContents() {
47         return contents;
48     }
49 }
50
Popular Tags