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