KickJava   Java API By Example, From Geeks To Geeks.

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


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 OptimisticLockException messages.
29  *
30  * Creation date: (12/6/00 9:47:38 AM)
31  * @author: Xi Chen
32  */

33 public class OptimisticLockExceptionResource extends ListResourceBundle JavaDoc {
34     static final Object JavaDoc[][] contents = {
35                                            { "5001", "An attempt was made to delete the object [{0}], but it has no version number in the identity map. {3}It may not have been read before the delete was attempted. {3}Class> {1} Primary Key> {2}" },
36                                            { "5003", "The object [{0}] cannot be deleted because it has changed or been deleted since it was last read. {3}Class> {1} Primary Key> {2}" },
37                                            { "5004", "An attempt was made to update the object [{0}], but it has no version number in the identity map. {3}It may not have been read before the update was attempted. {3}Class> {1} Primary Key> {2}" },
38                                            { "5006", "The object [{0}] cannot be updated because it has changed or been deleted since it was last read. {3}Class> {1} Primary Key> {2}" },
39                                            { "5007", "The object [{0}] must have a non-read-only mapping to the version lock field." },
40                                            { "5008", "Must map the version lock field to java.sql.Timestamp when using Timestamp Locking" },
41                                            { "5009", "The object of class [{1}] of class [{0}] cannot be unwrapped because it was deleted since it was last read." },
42                                            { "5010", "The object [{0}] cannot be merged because it has changed or been deleted since it was last read. {3}Class> {1}" }
43                                            
44     };
45
46     /**
47      * Return the lookup table.
48      */

49     protected Object JavaDoc[][] getContents() {
50         return contents;
51     }
52 }
53
Popular Tags