1 /*
2 * Copyright 2008 Lukas Lang
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17 package org.castor.core.constants.cpa;
18
19 /**
20 * Defines CPA/JDO specific constants.
21 *
22 * @author Lukas Lang
23 * @since 1.2.1
24 *
25 */
26 public interface JDOConstants {
27
28 /**
29 * File name suffix used for JDO-specific descriptor classes.
30 */
31 String JDO_DESCRIPTOR_SUFFIX = "JDODescriptor";
32
33 /**
34 * Package name of the sub-package where descriptors can be found.
35 */
36 String JDO_DESCRIPTOR_PACKAGE = "jdo_descriptors";
37
38 /**
39 * JDO namespace (as used by the extensions for the XML code generator).
40 */
41 String JDO_NAMESPACE = "http://www.castor.org/binding/persistence";
42
43 /**
44 * Name of the table annotation element.
45 */
46 String ANNOTATIONS_TABLE_NAME = "table";
47
48 /**
49 * Name of the column annotation element.
50 */
51 String ANNOTATIONS_COLUMN_NAME = "column";
52
53 /**
54 * Name of the one-to-one annotation element.
55 */
56 String ANNOTATIONS_ONE_TO_ONE_NAME = "one-to-one";
57
58 /**
59 * Name of the one-to-many annotation element.
60 */
61 String ANNOTATIONS_ONE_TO_MANY = "one-to-many";
62
63 /**
64 * Name of the many-to-many annotation element.
65 */
66 String ANNOTATIONS_MANY_TO_MANY = "many-to-many";
67
68 /**
69 * Package where to find generated JDO classes to unmarshal annotations.
70 */
71 String GENERATED_ANNOTATION_CLASSES_PACKAGE = "org.exolab.castor.xml.schema.annotations.jdo";
72
73 /**
74 * Name of the JDP-specific CDR file.
75 */
76 String PKG_CDR_LIST_FILE = ".castor.jdo.cdr";
77
78 }