KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > internal > localization > i18n > ExceptionLocalizationResource


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, 2006, Oracle. All rights reserved.
22
package oracle.toplink.essentials.internal.localization.i18n;
23
24 import java.util.ListResourceBundle JavaDoc;
25
26 /**
27  * English ResourceBundle for ExceptionLocalization messages.
28  *
29  * @author Shannon Chen
30  * @since TOPLink/Java 5.0
31  */

32 public class ExceptionLocalizationResource extends ListResourceBundle JavaDoc {
33     static final Object JavaDoc[][] contents = {
34                                            { "directory_not_exist", "Directory {0} does not exist." },
35                                            { "jar_not_exist", "Jar file {0} does not exist." },
36                                            { "may_not_contain_xml_entry", "{0} may not contain {1}." },
37                                            { "not_jar_file", "{0} is not a jar file." },
38                                            { "file_not_exist", "File {0} does not exist." },
39                                            { "can_not_move_directory", "Can''t move directories." },
40                                            { "can_not_create_file", "Could not create file {0}." },
41                                            { "can_not_create_directory", "Could not create directory {0}." },
42                                            { "file_exists", "The file {0} already exists." },
43                                            { "create_insertion_failed", "Create insertion failed." },
44                                            { "finder_query_failed", "Finder query failed:" },
45                                            { "bean_not_found_on_database", "The bean ''{0}'' was not found on the database." },
46                                            { "remove_deletion_failed", "Remove deletion failed:" },
47                                            { "error_reading_jar_file", "Error reading jar file: {0} entry: {1}" },
48                                            { "parsing_warning", "parsing warning" },
49                                            { "parsing_error", "parsing error" },
50                                            { "parsing_fatal_error", "parsing fatal error" },
51                                            { "input_source_not_found", "Input Source not found, or null" },
52                                            { "invalid_method_hash", "Invalid method hash" },
53                                            { "interface_hash_mismatch", "Interface hash mismatch" },
54                                            { "error_marshalling_return", "Error marshalling return" },
55                                            { "error_unmarshalling_arguments", "Error unmarshalling arguments" },
56                                            { "invalid_method_number", "Invalid method number" },
57                                            { "undeclared_checked_exception", "Undeclared checked exception" },
58                                            { "error_marshalling_arguments", "Error marshalling arguments" },
59                                            { "error_unmarshalling_return", "error unmarshalling return" },
60                                            { "null_jar_file_names", "Null jar file names" },
61                                            
62     { "error_loading_resources", "Error loading resources {0} from the classpath" },
63                                            { "error_parsing_resources", "Error parsing resources {0}" },
64                                            { "unexpect_argument", "Unexpected input argument {0}" },
65                                            
66     { "error_executing_jar_process", "Error executing jar process" },
67                                            { "error_invoking_deploy", "Error invoking Deploy" },
68                                            { "bean_definition_vector_arguments_are_of_different_sizes", "Bean definition vector arguments are of different sizes" },
69                                            { "missing_toplink_bean_definition_for", "Missing TopLink bean definition for {0}" },
70                                            { "argument_collection_was_null", "Argument collection was null" },
71                                            { "no_entities_retrieved_for_get_single_result", "getSingleResult() did not retrieve any entities." },
72                                            { "no_entities_retrieved_for_get_reference", "Could not find entitiy for id: {0}" },
73                                            { "too_many_results_for_get_single_result", "More than one result was returned from Query.getSingleResult()" },
74                                            { "negative_start_position", "Negative Start Position is not allowed" },
75                                            { "incorrect_hint", "Incorrect object type specified for hint: {0}." },
76                                            { "negative_max_result", "Negative MaxResult is not allowed." },
77                                            { "cant_persist_detatched_object", "Cannot PERSIST detached object, possible duplicate primary key: {0}." },
78                                            { "unknown_entitybean_name", "Unknown Enity Bean name: {0}" },
79                                            { "unknown_bean_class", "Unknown entity bean class: {0}, please verify that this class has been marked with the @Entity annotation." },
80                                            { "new_object_found_during_commit", "During synchronization a new object was found through a relationship that was not marked cascade PERSIST." },
81                                            { "cannot_remove_removed_entity", "Entity is already removed: {0}"},
82                                            { "cannot_remove_detatched_entity", "Entity must be managed to call remove: {0}, try merging the detached and try the remove again."},
83                                            { "cannot_merge_removed_entity", "Cannot merge an entity that has been removed: {0}"},
84                                            { "not_an_entity", "Object: {0} is not a known entity type."},
85                                            { "unable_to_find_named_query", "NamedQuery of name: {0} not found."},
86                                            { "null_values_for_field_result", "Both Attribute Name and Column Name must be provided for a FieldResult"},
87                                            { "null_value_for_column_result", "Column Name must be provided for a ColumnResult"},
88                                            { "null_value_for_entity_result", "Entity Class name must be provided for Entity Result"},
89                                            { "null_value_in_sqlresultsetmapping", "A name must be provided for the SQLResultSetMapping. This name is used to reference the SQLResultSetMapping from a query."},
90                                            { "null_sqlresultsetmapping_in_query", "The ResultSetMappingQuery must have a SQLResultSetMapping set to be valid"},
91                                            { "called_get_entity_manager_from_non_jta", "getEntityManager() is being called from a non-JTA enable EntityManagerFactory. Please ensure JTA is properly set-up on your EntityManagerFactory."},
92                                            { "illegal_state_while_closing", "Attempting to close an EntityManager with a transaction state other than NO_TRANSACTION, COMMITTED, or ROLLEDBACK."},
93                                            { "operation_on_closed_entity_manager", "Attempting to execute an operation on a closed EntityManager."},
94                                            { "wrap_ejbql_exception", "An exception occured while creating a query in EntityManager"},
95                                            { "cant_refresh_not_managed_object", "Can not refresh not managed object: {0}." },
96                                            { "entity_no_longer_exists_in_db", "Entity no longer exists in the database: {0}." },
97                                            { "incorrect_query_for_get_result_list", "You cannot call getResultList() on this query. It is the incorrect query type." },
98                                            { "incorrect_query_for_get_result_collection", "You cannot call getResultCollection() on this query. It is the incorrect query type." },
99                                            { "incorrect_query_for_get_single_result", "You cannot call getSingleResult() on this query. It is the incorrect query type." },
100                                            { "incorrect_query_for_execute_update", "You cannot call executeUpdate() on this query. It is the incorrect query type." },
101                                            { "pk_class_not_found", "Unable to load Primary Key Class {0}"},
102                                            { "null_pk", "An instance of a null PK has been incorrectly provided for this find operation."},
103                                            { "invalid_pk_class", "You have provided an instance of an incorrect PK class for this find operation. Class expected : {0}, Class received : {1}." },
104                                            { "ejb30-wrong-argument-name", "You have attempted to set a parameter value using a name of {0} that does not exist in the query string {1}."},
105                                            { "ejb30-incorrect-parameter-type", "You have attempted to set a value of type {1} for parameter {0} with expected type of {2} from query string {3}."},
106                                            { "ejb30-wrong-argument-index", "You have attempted to set a parameter at position {0} which does not exist in this query string {1}."},
107                                            { "lock_called_without_version_locking", "Calls to entityManager.lock(Object entity, LockModeType lockMode) require that Version Locking be enabled."},
108                                            { "missing_parameter_value", "Query argument {0} not found in the list of parameters provided during query execution."},
109                                            { "operation_on_closed_entity_manager_factory", "Attempting to execute an operation on a closed EntityManagerFactory."},
110                                            { "join_trans_called_on_entity_trans", "joinTransaction has been called on a resource-local EntityManager which is unable to register for a JTA transaction."},
111                                            { "rollback_because_of_rollback_only", "Transaction 'rolled back' because transaction was set to RollbackOnly."},
112                                            { "ejb30-wrong-query-hint-value", "Query {0}, query hint {1} has illegal value {2}"},
113                                            { "ejb30-default-for-unknown-property", "Can't return default value for unknown property {0}"},
114                                            { "ejb30-illegal-property-value", "Property {0} has an illegal value {1}"}
115     };
116     /**
117      * Return the lookup table.
118      */

119     protected Object JavaDoc[][] getContents() {
120         return contents;
121     }
122 }
123
Popular Tags