├── api └── src │ ├── test │ ├── resources │ │ ├── enhancer-test-dir │ │ │ ├── file2.class │ │ │ ├── file3.jar │ │ │ ├── enhancer-test-subdir │ │ │ │ ├── file5.class │ │ │ │ ├── file6.jar │ │ │ │ └── file4.jdo │ │ │ └── file1.jdo │ │ ├── META-INF │ │ │ └── services │ │ │ │ └── javax.jdo.JDOEnhancer │ │ ├── jdoconfig │ │ │ ├── Negative07 │ │ │ │ └── META-INF │ │ │ │ │ └── services │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ ├── Negative00 │ │ │ │ └── META-INF │ │ │ │ │ └── jdoconfig.xml │ │ │ ├── Positive03 │ │ │ │ └── META-INF │ │ │ │ │ ├── services │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ │ │ └── jdoconfig.xml │ │ │ ├── Negative09 │ │ │ │ ├── 9a │ │ │ │ │ └── META-INF │ │ │ │ │ │ └── services │ │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ │ └── 9b │ │ │ │ │ └── META-INF │ │ │ │ │ └── services │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ ├── Negative08 │ │ │ │ └── META-INF │ │ │ │ │ └── services │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ ├── Positive04 │ │ │ │ └── META-INF │ │ │ │ │ ├── services │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ │ │ └── jdoconfig.xml │ │ │ ├── Pmfmapmap02 │ │ │ │ └── propsfile.props │ │ │ ├── Positive05 │ │ │ │ └── META-INF │ │ │ │ │ ├── services │ │ │ │ │ └── javax.jdo.PersistenceManagerFactory │ │ │ │ │ └── jdoconfig.xml │ │ │ ├── Negative01 │ │ │ │ └── META-INF │ │ │ │ │ └── jdoconfig.xml │ │ │ ├── Negative02 │ │ │ │ └── META-INF │ │ │ │ │ └── jdoconfig.xml │ │ │ └── Positive02 │ │ │ │ └── META-INF │ │ │ │ └── jdoconfig.xml │ │ ├── Negative0-dtd.jdo │ │ ├── Negative0-dtd.orm │ │ ├── Negative0-dtd.jdoquery │ │ ├── Positive0-dtd.jdo │ │ ├── Positive0-dtd.orm │ │ ├── Negative0-xsd.jdo │ │ ├── Negative0-xsd.orm │ │ ├── Positive0-xsd.jdo │ │ ├── Positive0-xsd.orm │ │ ├── Negative0-xsd.jdoquery │ │ ├── Positive0-dtd.jdoquery │ │ ├── Positive0-xsd.jdoquery │ │ ├── Positive15.3.1-dtd.orm │ │ ├── Positive15.3.3-dtd.orm │ │ └── Positive15.3.2-dtd.orm │ └── java │ │ └── javax │ │ └── jdo │ │ └── annotations │ │ ├── Point.java │ │ └── Line.java │ └── main │ └── java │ └── javax │ └── jdo │ ├── query │ ├── SubqueryExpression.java │ ├── ByteExpression.java │ ├── ObjectExpression.java │ ├── EnumExpression.java │ └── OptionalExpression.java │ ├── metadata │ ├── FieldMetadata.java │ ├── InterfaceMetadata.java │ ├── Indexed.java │ ├── ClassPersistenceModifier.java │ ├── package.html │ └── PropertyMetadata.java │ ├── annotations │ ├── IdentityType.java │ ├── SequenceStrategy.java │ ├── DiscriminatorStrategy.java │ ├── VersionStrategy.java │ ├── ForeignKeyAction.java │ ├── InheritanceStrategy.java │ ├── IdGeneratorStrategy.java │ ├── NullValue.java │ ├── PersistenceModifier.java │ ├── Indices.java │ ├── EmbeddedOnly.java │ ├── Queries.java │ ├── FetchPlans.java │ ├── FetchGroups.java │ ├── Uniques.java │ ├── ForeignKeys.java │ └── Extensions.java │ ├── datastore │ └── package.html │ ├── identity │ └── package.html │ └── listener │ └── InstanceLifecycleListener.java ├── tck └── src │ └── main │ ├── resources │ ├── meta │ │ └── META-INF │ │ │ └── services │ │ │ └── org.junit.platform.launcher.TestExecutionListener │ ├── conf │ │ ├── exclude.list │ │ ├── detach.list │ │ ├── datastoreidentity.conf │ │ ├── applicationidentity.conf │ │ ├── fetchgroup.conf │ │ ├── cancel.conf │ │ ├── models1.conf │ │ ├── jndi.properties │ │ ├── embeddedInheritance.conf │ │ ├── jdoql1.conf │ │ ├── converter.conf │ │ ├── companyNoRelationships.conf │ │ ├── company1-1Relationships.conf │ │ ├── company1-MRelationships.conf │ │ ├── companyM-MRelationships.conf │ │ ├── throwOnUnknownStandardProperties.conf │ │ ├── companyEmbedded.conf │ │ ├── runonce.conf │ │ ├── companyAllRelationships.conf │ │ ├── enhancement.conf │ │ ├── compoundIdentity.conf │ │ ├── companyMapWithoutJoin.conf │ │ ├── companyListWithoutJoin.conf │ │ ├── companyPMClass.conf │ │ ├── companyPMInterface.conf │ │ ├── companyAnnotatedNoRelationshipsFCPM.conf │ │ ├── companyAnnotatedNoRelationshipsPCPM.conf │ │ ├── companyAnnotatedNoRelationshipsPIPM.conf │ │ ├── companyAnnotatedAllRelationshipsPIPM.conf │ │ ├── companyAnnotatedEmbeddedJPAConcrete.conf │ │ ├── companyAnnotated1-1RelationshipsFCPM.conf │ │ ├── companyAnnotated1-MRelationshipsFCPM.conf │ │ ├── companyAnnotatedM-MRelationshipsFCPM.conf │ │ ├── companyAnnotatedNoRelationshipsFCConcrete.conf │ │ ├── companyAnnotatedNoRelationshipsPCConcrete.conf │ │ ├── companyAnnotatedAllRelationshipsJPAConcrete.conf │ │ ├── companyAnnotatedEmbeddedFCPM.conf │ │ ├── companyAnnotatedM-MRelationshipsFCConcrete.conf │ │ ├── companyAnnotatedEmbeddedJPAPM.conf │ │ ├── companyAnnotatedAllRelationshipsFCPM.conf │ │ ├── companyAnnotatedAllRelationshipsJPAPM.conf │ │ ├── companyAnnotatedAllRelationshipsPCPM.conf │ │ ├── companyAnnotatedAllRelationshipsFCConcrete.conf │ │ ├── companyAnnotatedAllRelationshipsPCConcrete.conf │ │ ├── schemaAttributeClass.conf │ │ ├── schemaAttributeOrm.conf │ │ ├── companyOverrideAnnotatedAllRelationshipsFCPM.conf │ │ ├── schemaAttributePackage.conf │ │ ├── inheritance4.conf │ │ ├── inheritance1.conf │ │ ├── enhancement-test.properties │ │ ├── relationshipNoRelationships.conf │ │ └── relationshipAllRelationships.conf │ ├── jdo │ │ └── datastoreidentity │ │ │ └── org │ │ │ └── apache │ │ │ └── jdo │ │ │ └── tck │ │ │ └── pc │ │ │ ├── fieldtypes │ │ │ └── AllTypes.jdo │ │ │ ├── lifecycle │ │ │ └── StateTransitionObj.jdo │ │ │ └── order │ │ │ └── package.jdo │ ├── sql │ │ └── derby │ │ │ ├── applicationidentity │ │ │ ├── schema5.sql │ │ │ ├── schema6.sql │ │ │ ├── schema7.sql │ │ │ └── schema12.sql │ │ │ └── datastoreidentity │ │ │ ├── schema5.sql │ │ │ ├── schema6.sql │ │ │ └── schema7.sql │ └── orm │ │ └── applicationidentity │ │ └── org │ │ └── apache │ │ └── jdo │ │ └── tck │ │ └── pc │ │ └── lifecycle │ │ └── StateTransitionObj-standard.orm │ └── java │ └── org │ └── apache │ └── jdo │ └── tck │ ├── pc │ ├── company │ │ ├── company.jpg │ │ ├── data │ │ │ └── CompanyDataSource.java │ │ ├── IPartTimeEmployee.java │ │ ├── IFullTimeEmployee.java │ │ ├── IMedicalInsurance.java │ │ ├── PIPartTimeEmployee.java │ │ ├── PIFullTimeEmployee.java │ │ ├── PIMedicalInsurance.java │ │ ├── IMeetingRoom.java │ │ ├── PIMeetingRoom.java │ │ ├── IDentalInsurance.java │ │ ├── PIDentalInsurance.java │ │ ├── IInsurance.java │ │ ├── PIInsurance.java │ │ └── CompanyFactoryNewInstance.java │ ├── building │ │ └── package.html │ ├── fieldtypes │ │ └── SimpleInterface.java │ ├── inheritance │ │ ├── TopNonPersist.java │ │ ├── TopNonPersistC.java │ │ ├── TopPersistC.java │ │ ├── TopNonPersistD.java │ │ ├── TopPersistD.java │ │ ├── TopNonPersistE.java │ │ └── TopPersistE.java │ ├── converter │ │ ├── IPCPoint.java │ │ └── IPCRect.java │ ├── query │ │ ├── NoExtent.java │ │ └── JDOQLKeywordsAsFieldNames.java │ ├── companyMapWithoutJoin │ │ ├── IPartTimeEmployee.java │ │ └── IFullTimeEmployee.java │ └── companyListWithoutJoin │ │ ├── IPartTimeEmployee.java │ │ └── IFullTimeEmployee.java │ ├── util │ └── TCKSummaryGeneratingListener.java │ └── query │ └── result │ └── classes │ └── NoFieldsNoMethods.java ├── lib └── ext │ └── README.txt ├── .gitignore ├── specification └── README.md ├── NOTICE └── .rat-excludes /api/src/test/resources/enhancer-test-dir/file2.class: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/src/test/resources/enhancer-test-dir/file3.jar: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/src/test/resources/enhancer-test-dir/enhancer-test-subdir/file5.class: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/src/test/resources/enhancer-test-dir/enhancer-test-subdir/file6.jar: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tck/src/main/resources/meta/META-INF/services/org.junit.platform.launcher.TestExecutionListener: -------------------------------------------------------------------------------- 1 | org.apache.jdo.tck.util.TCKSummaryGeneratingListener -------------------------------------------------------------------------------- /lib/ext/README.txt: -------------------------------------------------------------------------------- 1 | This directory is added to the classpath when running the JDO TCK. 2 | It contains libraries that are not distributed as part of JDO. 3 | 4 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/company.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/db-jdo/HEAD/tck/src/main/java/org/apache/jdo/tck/pc/company/company.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .classpath 3 | .settings 4 | .idea 5 | *.iml 6 | .externalToolBuilders 7 | target 8 | lib 9 | query.ser 10 | datanucleus.txt 11 | tck.txt 12 | -------------------------------------------------------------------------------- /specification/README.md: -------------------------------------------------------------------------------- 1 | The specification is no longer being maintained in this repository. 2 | 3 | The specification has been moved to https://github.com/clr-apache/jdo-specification. 4 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache Java Data Objects (JDO) 2 | Copyright 2005-2023 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (https://www.apache.org/). 6 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/exclude.list: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.exclude = 17 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/detach.list: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.cfglist = \ 17 | detach.conf 18 | 19 | -------------------------------------------------------------------------------- /api/src/test/resources/META-INF/services/javax.jdo.JDOEnhancer: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | javax.jdo.MockEnhancer 18 | -------------------------------------------------------------------------------- /api/src/test/resources/enhancer-test-dir/file1.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative07/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | -------------------------------------------------------------------------------- /api/src/test/resources/enhancer-test-dir/enhancer-test-subdir/file4.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative00/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive03/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | class.positive03.pmf0 18 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/util/TCKSummaryGeneratingListener.java: -------------------------------------------------------------------------------- 1 | package org.apache.jdo.tck.util; 2 | 3 | import org.junit.platform.launcher.TestPlan; 4 | import org.junit.platform.launcher.listeners.SummaryGeneratingListener; 5 | 6 | public class TCKSummaryGeneratingListener extends SummaryGeneratingListener { 7 | 8 | private static final String IDTYPE_PROPERTY = "jdo.tck.identitytype"; 9 | 10 | private static final String CONFIG_PROPERTY = "jdo.tck.cfg"; 11 | 12 | private static final String LOGDIR_PROPERTY = "jdo.tck.log.directory"; 13 | 14 | @Override 15 | public void testPlanExecutionFinished(TestPlan testPlan) { 16 | super.testPlanExecutionFinished(testPlan); 17 | ResultSummary.save( 18 | System.getProperty(LOGDIR_PROPERTY, "."), 19 | System.getProperty(IDTYPE_PROPERTY, "Missing identitytype"), 20 | System.getProperty(CONFIG_PROPERTY, "Missing configuration name"), 21 | getSummary()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative09/9a/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | javax.jdo.JDOHelperTest$BadPMFNoGetPMFMethod 18 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative08/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # there are 18 | # only comments 19 | # in this file 20 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive04/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | #this is a comment 18 | class.positive04.pmf0 # this is another comment 19 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative09/9b/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | javax.jdo.JDOHelperTest$BadPMFGetPMFMethodThrowsJDOFatalInternalException 18 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Pmfmapmap02/propsfile.props: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | javax.jdo.PersistenceManagerFactoryClass javax.jdo.stub.StubPMF 18 | javax.jdo.option.ConnectionFactory2Name Jane Doe 19 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/query/SubqueryExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.query; 18 | 19 | /** Representation of a subquery in a query. */ 20 | public interface SubqueryExpression {} 21 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive05/META-INF/services/javax.jdo.PersistenceManagerFactory: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | class.positive05.pmf0# this is a comment without whitespace separating it from the uncommented text 18 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/query/ByteExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.query; 18 | 19 | /** Representation of a byte expression. */ 20 | public interface ByteExpression extends ComparableExpression {} 21 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/building/package.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | Package providing a simple model for testing embedding of objects and, in particular, 20 | the use of inheritance of the embedded objects. 21 | 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/datastoreidentity.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | # either datastoreidentity or applicationidentity 17 | jdo.tck.identitytype = datastoreidentity 18 | jdo.tck.testclasses = ${jdo.tck.alltests} 19 | jdo.tck.schema = schema2.sql 20 | jdo.tck.requiredOptions = 21 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/metadata/FieldMetadata.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.metadata; 18 | 19 | /** 20 | * Represents a field in a class. 21 | * 22 | * @since 3.0 23 | */ 24 | public interface FieldMetadata extends MemberMetadata {} 25 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/applicationidentity.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | # either datastoreidentity or applicationidentity 17 | jdo.tck.identitytype = applicationidentity 18 | jdo.tck.testclasses = ${jdo.tck.alltests} 19 | jdo.tck.schema = schema1.sql 20 | jdo.tck.requiredOptions = 21 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/metadata/InterfaceMetadata.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.metadata; 18 | 19 | /** 20 | * Represents a persistent-interface. 21 | * 22 | * @since 3.0 23 | */ 24 | public interface InterfaceMetadata extends TypeMetadata {} 25 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/query/result/classes/NoFieldsNoMethods.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.query.result.classes; 19 | 20 | /** JDOQL result class not having any fields and methods. */ 21 | public class NoFieldsNoMethods {} 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/fetchgroup.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = FetchGroup test. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 0 20 | jdo.tck.requiredOptions = 21 | jdo.tck.classes = \ 22 | org.apache.jdo.tck.api.fetchgroup.FetchGroupTest 23 | 24 | 25 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/cancel.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. 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 | jdo.tck.description = All query tests with standard mapping, no testdata. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 0 20 | jdo.tck.requiredOptions = 21 | jdo.tck.classes = \ 22 | org.apache.jdo.tck.query.api.QueryCancel 23 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/metadata/Indexed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.metadata; 18 | 19 | /** 20 | * Enumeration of the indexed values. 21 | * 22 | * @version 3.0 23 | * @since 3.0 24 | */ 25 | public enum Indexed { 26 | UNSPECIFIED, 27 | TRUE, 28 | FALSE, 29 | UNIQUE 30 | } 31 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/models1.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = All model tests with standard mapping, no testdata. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 1 20 | jdo.tck.requiredOptions = 21 | jdo.tck.classes = \ 22 | org.apache.jdo.tck.models.fieldtypes.TestFieldsOfSimpleEnum 23 | -------------------------------------------------------------------------------- /api/src/test/resources/Negative0-dtd.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/jndi.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # This is the factory name for Oracle's full JNDI implementation that was used 18 | # previously in the TCK. 19 | # java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory 20 | 21 | java.naming.factory.initial=org.apache.jdo.tck.util.jndi.MockContextFactory 22 | -------------------------------------------------------------------------------- /api/src/test/resources/Negative0-dtd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/embeddedInheritance.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Detachment tests with standard mapping, no testdata. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 12 20 | jdo.tck.classes = \ 21 | org.apache.jdo.tck.models.embedded.EmbeddedInheritance 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/jdoql1.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Special jdoql test with mapping 1 which maps Enums to integer columns 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 1 20 | jdo.tck.requiredOptions = 21 | jdo.tck.classes = \ 22 | org.apache.jdo.tck.query.jdoql.methods.EnumMethodOrdinal 23 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/IdentityType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the identity type values. 21 | * 22 | * @version 2.1 23 | * @since 2.1 24 | */ 25 | public enum IdentityType { 26 | UNSPECIFIED, 27 | APPLICATION, 28 | DATASTORE, 29 | NONDURABLE 30 | } 31 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/data/CompanyDataSource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company.data; 19 | 20 | import org.apache.jdo.tck.pc.company.CompanyFactory; 21 | import org.apache.jdo.tck.util.DataSource; 22 | 23 | public interface CompanyDataSource extends DataSource {} 24 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/SequenceStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the sequence strategy values. 21 | * 22 | * @version 2.1 23 | * @since 2.1 24 | */ 25 | public enum SequenceStrategy { 26 | NONTRANSACTIONAL, 27 | CONTIGUOUS, 28 | NONCONTIGUOUS 29 | } 30 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/datastore/package.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | Datastore package 22 | 23 | 24 | 25 | 26 | This package contains the JDO specification datastore interfaces. 27 | 28 | 29 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/identity/package.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | Identity package 22 | 23 | 24 | 25 | 26 | This package contains the JDO specification identity interfaces and classes. 27 | 28 | 29 | -------------------------------------------------------------------------------- /api/src/test/java/javax/jdo/annotations/Point.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package javax.jdo.annotations; 19 | 20 | /* 21 | * Point.java 22 | * 23 | * Created on July 18, 2007, 9:41 AM 24 | * 25 | */ 26 | public class Point { 27 | 28 | /** Creates a new instance of Point */ 29 | public Point() {} 30 | 31 | int x; 32 | Integer y; 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/fieldtypes/SimpleInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.fieldtypes; 19 | 20 | public interface SimpleInterface { 21 | void setIntValue(int intField); 22 | 23 | int getIntValue(); 24 | 25 | void setStringValue(String stringField); 26 | 27 | String getStringValue(); 28 | } 29 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/DiscriminatorStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the discriminator strategy values. 21 | * 22 | * @version 2.1 23 | * @since 2.1 24 | */ 25 | public enum DiscriminatorStrategy { 26 | UNSPECIFIED, 27 | NONE, 28 | VALUE_MAP, 29 | CLASS_NAME 30 | } 31 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/metadata/ClassPersistenceModifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.metadata; 18 | 19 | /** 20 | * Enumeration of the persistence-modifier values for a class. 21 | * 22 | * @since 3.0 23 | */ 24 | public enum ClassPersistenceModifier { 25 | PERSISTENCE_CAPABLE, 26 | PERSISTENCE_AWARE, 27 | NON_PERSISTENT 28 | } 29 | -------------------------------------------------------------------------------- /api/src/test/java/javax/jdo/annotations/Line.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package javax.jdo.annotations; 19 | 20 | /* 21 | * Line.java 22 | * 23 | * Created on July 18, 2007, 9:41 AM 24 | * 25 | */ 26 | public class Line { 27 | 28 | /** Creates a new instance of Line */ 29 | public Line() {} 30 | 31 | Point point1; 32 | Point point2; 33 | } 34 | -------------------------------------------------------------------------------- /api/src/test/resources/Negative0-dtd.jdoquery: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive0-dtd.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/VersionStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the version strategy values. 21 | * 22 | * @version 2.1 23 | * @since 2.1 24 | */ 25 | public enum VersionStrategy { 26 | UNSPECIFIED, 27 | NONE, 28 | STATE_IMAGE, 29 | DATE_TIME, 30 | VERSION_NUMBER 31 | } 32 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive0-dtd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/ForeignKeyAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the foreign-key delete/update action values. 21 | * 22 | * @version 2.1 23 | * @since 2.1 24 | */ 25 | public enum ForeignKeyAction { 26 | UNSPECIFIED, 27 | RESTRICT, 28 | CASCADE, 29 | NULL, 30 | DEFAULT, 31 | NONE 32 | } 33 | -------------------------------------------------------------------------------- /api/src/test/resources/Negative0-xsd.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 23 | 24 | -------------------------------------------------------------------------------- /api/src/test/resources/Negative0-xsd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 23 | 24 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/converter.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Converter test, standard mapping, no testdata. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 0 20 | jdo.tck.requiredOptions = 21 | jdo.tck.classes = \ 22 | org.apache.jdo.tck.api.converter.PointAttributeConverterTest \ 23 | org.apache.jdo.tck.api.converter.IntAttributeConverterTest 24 | 25 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyNoRelationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/InheritanceStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the inheritance strategy values. 21 | * 22 | * @version 3.1 23 | * @since 2.1 24 | */ 25 | public enum InheritanceStrategy { 26 | UNSPECIFIED, 27 | NEW_TABLE, 28 | SUBCLASS_TABLE, 29 | SUPERCLASS_TABLE, 30 | COMPLETE_TABLE 31 | } 32 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/query/ObjectExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.query; 18 | 19 | /** 20 | * Representation of an Object as an expression. This handles all remaining Java types not handled 21 | * by String, Numeric, Enum, Boolean, Collection, Map, etc. 22 | * 23 | * @param Java type 24 | */ 25 | public interface ObjectExpression extends Expression {} 26 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopNonPersist.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopNonPersist { // not persistent 22 | 23 | public int intA; 24 | 25 | public TopNonPersist() { 26 | intA = -1; 27 | } 28 | 29 | public TopNonPersist(int intA) { 30 | this.intA = intA; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/company1-1Relationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with 1-1 relationships. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.Relationships1_1Data 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/company1-MRelationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with 1-M relationships. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.Relationships1_MData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyM-MRelationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with M-M relationships. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsM_MData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/throwOnUnknownStandardProperties.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Checks that the implementation throws JDOUserException on unknown JDO standard properties. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.api.persistencemanagerfactory.config.ThrowOnUnknownStandardProperties 19 | jdo.tck.testdata = 20 | jdo.tck.mapping = 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/IdGeneratorStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the id generator strategy values. 21 | * 22 | * @version 2.1 23 | * @since 2.1 24 | */ 25 | public enum IdGeneratorStrategy { 26 | UNSPECIFIED, 27 | NATIVE, 28 | SEQUENCE, 29 | IDENTITY, 30 | INCREMENT, 31 | UUIDSTRING, 32 | UUIDHEX 33 | } 34 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/NullValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the "null-value" behavior values. This corresponds to the "null-value" attribute 21 | * of the "field" and "property" elements. 22 | * 23 | * @version 2.1 24 | * @since 2.1 25 | */ 26 | public enum NullValue { 27 | NONE, 28 | EXCEPTION, 29 | DEFAULT 30 | } 31 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative01/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyEmbedded.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships \ 17 | and embedded objects. 18 | jdo.tck.mapping.companyfactory = 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.EmbeddedTestData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/runonce.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Verification of the JDO API classes and interfaces 17 | jdo.tck.testdata = 18 | jdo.tck.mapping = 0 19 | jdo.tck.requiredOptions = 20 | # The runOnce flag must only be set in this configuration and no others 21 | runOnce = true 22 | jdo.tck.classes = \ 23 | org.apache.jdo.tck.api.SignatureTest \ 24 | org.apache.jdo.tck.api.exceptions.ExceptionConstructor 25 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAllRelationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects. 18 | jdo.tck.mapping.companyfactory = 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/metadata/package.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | Metadata package 22 | 23 | 24 | 25 | 26 | This package contains classes representing the different components of the JDO Metadata. 27 | It mirrors the structure of the XML schema. 28 | 29 | 30 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive0-xsd.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive0-xsd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/enhancement.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = All enhancement, persistencecapable tests with standard mapping, no testdata. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.testdata = 19 | jdo.tck.mapping = 0 20 | jdo.tck.requiredOptions = 21 | jdo.tck.classes = \ 22 | org.apache.jdo.tck.api.persistencecapable.CopyKeyFieldsFromObjectId \ 23 | org.apache.jdo.tck.api.persistencecapable.NewObjectIdInstance 24 | 25 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/converter/IPCPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.jdo.tck.pc.converter; 18 | 19 | /** 20 | * Interface for common methods of implementation classes PCPoint, PCPointAnnotated, PCPointProp and 21 | * PCPointPropAnnotated. 22 | */ 23 | public interface IPCPoint { 24 | int getX(); 25 | 26 | void setX(int x); 27 | 28 | Integer getY(); 29 | 30 | void setY(Integer y); 31 | } 32 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/compoundIdentity.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping using order model for compound identity testing 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.order.OrderFactoryPMClass 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestOrder 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.order.OrderModelTestData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/test/resources/Negative0-xsd.jdoquery: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyMapWithoutJoin.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with companyMapWithoutJoin model. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyMapWithoutJoin.CompanyFactoryPMClass 18 | jdo.tck.testdata = org.apache.jdo.tck.pc.companyMapWithoutJoin.CompanyModelTestData 19 | jdo.tck.mapping = 9 20 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestMap 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyListWithoutJoin.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with companyListWithoutJoin model. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyListWithoutJoin.CompanyFactoryPMClass 18 | jdo.tck.testdata = org.apache.jdo.tck.pc.companyListWithoutJoin.CompanyModelTestData 19 | jdo.tck.mapping = 10 20 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestList 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/query/NoExtent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.query; 19 | 20 | /** The PC class for testing JDOQL queries. */ 21 | public class NoExtent { 22 | 23 | /** The primary key field. */ 24 | private int id; 25 | 26 | public NoExtent() {} 27 | 28 | public NoExtent(int id) { 29 | this.id = id; 30 | } 31 | 32 | public int getId() { 33 | return this.id; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyPMClass.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryPMClass 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyPMInterface.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryPMInterface 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/IPartTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of PartTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IPartTimeEmployee extends IEmployee { 25 | 26 | double getWage(); 27 | 28 | void setWage(double wage); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/IFullTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of FullTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IFullTimeEmployee extends IEmployee { 25 | 26 | double getSalary(); 27 | 28 | void setSalary(double salary); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/converter/IPCRect.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.jdo.tck.pc.converter; 18 | 19 | import org.apache.jdo.tck.pc.mylib.Point; 20 | 21 | /** Interface for common methods of implementation classes PCRect and PCRectAnnotated. */ 22 | public interface IPCRect { 23 | Point getUpperLeft(); 24 | 25 | void setUpperLeft(Point upperLeft); 26 | 27 | Point getLowerRight(); 28 | 29 | void setLowerRight(Point lowerRight); 30 | } 31 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedNoRelationshipsFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedNoRelationshipsPCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPC.CompanyFactoryAnnotatedPCPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedNoRelationshipsPIPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPI.CompanyFactoryAnnotatedPIPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/IMedicalInsurance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of MedicalInsurance. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IMedicalInsurance extends IInsurance { 25 | 26 | String getPlanType(); 27 | 28 | void setPlanType(String planType); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsPIPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPI.CompanyFactoryAnnotatedPIPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedEmbeddedJPAConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedJPA.CompanyFactoryAnnotatedJPAAppConcrete 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestJPA 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.EmbeddedTestData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/PersistenceModifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | /** 20 | * Enumeration of the persistence-modifier values for a field or property. This corresponds to the 21 | * "persistence-modifier" attribute of the "field" and "property" elements. 22 | * 23 | * @version 2.1 24 | * @since 2.1 25 | */ 26 | public enum PersistenceModifier { 27 | UNSPECIFIED, 28 | PERSISTENT, 29 | TRANSACTIONAL, 30 | NONE 31 | } 32 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/query/JDOQLKeywordsAsFieldNames.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.query; 19 | 20 | /** The PC class for testing JDOQL queries. */ 21 | public class JDOQLKeywordsAsFieldNames { 22 | 23 | /** The primary key field. */ 24 | private String select; 25 | 26 | public void setSelect(String select) { 27 | this.select = select; 28 | } 29 | 30 | public String getSelect() { 31 | return this.select; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/PIPartTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of PartTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface PIPartTimeEmployee extends PIEmployee, IPartTimeEmployee { 25 | 26 | double getWage(); 27 | 28 | void setWage(double wage); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotated1-1RelationshipsFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with 1-1 relationships, annotations. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.Relationships1_1Data 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotated1-MRelationshipsFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with 1-M relationships, annotations. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.Relationships1_MData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedM-MRelationshipsFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with M-M relationships, annotations. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsM_MData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedNoRelationshipsFCConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCConcreteDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedNoRelationshipsPCConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPC.CompanyFactoryAnnotatedPCConcreteDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/query/EnumExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.query; 18 | 19 | /** 20 | * Representation of an Enum in a query. 21 | * 22 | * @param Enum type 23 | */ 24 | public interface EnumExpression extends ComparableExpression> { 25 | /** 26 | * Method to return an expression for the ordinal of this enum. 27 | * 28 | * @return Expression for the ordinal of the passed enum 29 | */ 30 | NumericExpression ordinal(); 31 | } 32 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/PIFullTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of FullTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface PIFullTimeEmployee extends PIEmployee, IFullTimeEmployee { 25 | 26 | double getSalary(); 27 | 28 | void setSalary(double salary); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/companyMapWithoutJoin/IPartTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.companyMapWithoutJoin; 19 | 20 | /** 21 | * This interface represents the persistent state of PartTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IPartTimeEmployee extends IEmployee { 25 | 26 | double getWage(); 27 | 28 | void setWage(double wage); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopNonPersistC.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopNonPersistC extends TopNonPersistB { // not persistent 22 | 23 | public char charC; 24 | 25 | public TopNonPersistC() { 26 | charC = '3'; 27 | } 28 | 29 | public TopNonPersistC(int intA, double doubleB, int intB, char charC) { 30 | super(intA, doubleB, intB); 31 | this.charC = charC; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopPersistC.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopPersistC extends TopPersist { // not persistent 22 | 23 | public char charC; 24 | 25 | public TopPersistC() { 26 | charC = Constants.charC_V[0]; 27 | } 28 | 29 | public TopPersistC(int intA, double doubleB, int intB, char charC) { 30 | super(intA, doubleB, intB); 31 | this.charC = charC; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/companyListWithoutJoin/IPartTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.companyListWithoutJoin; 19 | 20 | /** 21 | * This interface represents the persistent state of PartTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IPartTimeEmployee extends IEmployee { 25 | 26 | double getWage(); 27 | 28 | void setWage(double wage); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/companyMapWithoutJoin/IFullTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.companyMapWithoutJoin; 19 | 20 | /** 21 | * This interface represents the persistent state of FullTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IFullTimeEmployee extends IEmployee { 25 | 26 | double getSalary(); 27 | 28 | void setSalary(double salary); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/PIMedicalInsurance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of MedicalInsurance. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface PIMedicalInsurance extends PIInsurance, IMedicalInsurance { 25 | 26 | String getPlanType(); 27 | 28 | void setPlanType(String planType); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/companyListWithoutJoin/IFullTimeEmployee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.companyListWithoutJoin; 19 | 20 | /** 21 | * This interface represents the persistent state of FullTimeEmployee. Javadoc was deliberately 22 | * omitted because it would distract from the purpose of the interface. 23 | */ 24 | public interface IFullTimeEmployee extends IEmployee { 25 | 26 | double getSalary(); 27 | 28 | void setSalary(double salary); 29 | } 30 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsJPAConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with M-M relationships, annotations. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedJPA.CompanyFactoryAnnotatedJPAAppConcrete 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestJPA 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedEmbeddedFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.EmbeddedTestData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedM-MRelationshipsFCConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with M-M relationships, annotations. 17 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCConcreteDelegator 18 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsM_MData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Negative02/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/IMeetingRoom.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of MeetingRoom. Javadoc was deliberately omitted 22 | * because it would distract from the purpose of the interface. 23 | */ 24 | public interface IMeetingRoom { 25 | 26 | long getRoomid(); 27 | 28 | String getName(); 29 | 30 | void setRoomid(long roomid); 31 | 32 | void setName(String name); 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedEmbeddedJPAPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedJPA.CompanyFactoryAnnotatedJPAAppPM 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestJPA 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.EmbeddedTestData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsJPAPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedJPA.CompanyFactoryAnnotatedJPAAppPM 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTestJPA 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsPCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPC.CompanyFactoryAnnotatedPCPMDelegator 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/jdo/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/AllTypes.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/PIMeetingRoom.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of MeetingRoom. Javadoc was deliberately omitted 22 | * because it would distract from the purpose of the interface. 23 | */ 24 | public interface PIMeetingRoom extends IMeetingRoom { 25 | 26 | long getRoomid(); 27 | 28 | String getName(); 29 | 30 | void setRoomid(long roomid); 31 | 32 | void setName(String name); 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsFCConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCConcreteDelegator 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyAnnotatedAllRelationshipsPCConcrete.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPC.CompanyFactoryAnnotatedPCConcreteDelegator 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 0 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopNonPersistD.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopNonPersistD extends TopNonPersistC { // not persistent 22 | 23 | public boolean booleanD; 24 | 25 | public TopNonPersistD() { 26 | booleanD = false; 27 | } 28 | 29 | public TopNonPersistD(int int1, double doubleB, int intB, char charC, boolean booleanVal) { 30 | super(int1, doubleB, intB, charC); 31 | booleanD = booleanVal; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopPersistD.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopPersistD extends TopPersistC { // not persistent 22 | 23 | public boolean booleanD; 24 | 25 | public TopPersistD() { 26 | booleanD = Constants.booleanD_V[0]; 27 | } 28 | 29 | public TopPersistD(int int1, double doubleB, int intB, char charC, boolean booleanVal) { 30 | super(int1, doubleB, intB, charC); 31 | booleanD = booleanVal; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/schemaAttributeClass.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = MakePersistent test with schema name specified as class attribute in orm for PCPoint. The schema name derived from jdo.tck.mapping 7, applicationidentity7 or datastoreidentity7, is overriden in the orm to specify schema applicationidentity_cls or datastoreidentity_cls. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent 19 | jdo.tck.testdata = 20 | jdo.tck.mapping = 7 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/schemaAttributeOrm.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = MakePersistent test with schema name specified as orm attribute in orm for PCPoint. The schema name derived from jdo.tck.mapping 5, applicationidentity5 or datastoreidentity5, is overriden in the orm to specify schema applicationidentity_orm or datastoreidentity_orm. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent 19 | jdo.tck.testdata = 20 | jdo.tck.mapping = 5 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive0-dtd.jdoquery: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 26 | SELECT * FROM TestClass 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/companyOverrideAnnotatedAllRelationshipsFCPM.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with mapping 11 overriding annotations, basic testdata with all relationships \ 17 | and embedded objects, annotations. 18 | jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCPMDelegator 19 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 20 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 21 | jdo.tck.mapping = 11 22 | jdo.tck.requiredOptions = 23 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/schemaAttributePackage.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = MakePersistent test with schema name specified as package attribute in orm for PCPoint. The schema name derived from jdo.tck.mapping 6, applicationidentity6 or datastoreidentity6, is overriden in the orm to specify schema applicationidentity_pkg or datastoreidentity_pkg. 17 | jdo.tck.mapping.companyfactory = 18 | jdo.tck.classes = org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent 19 | jdo.tck.testdata = 20 | jdo.tck.mapping = 6 21 | jdo.tck.requiredOptions = 22 | -------------------------------------------------------------------------------- /tck/src/main/resources/jdo/datastoreidentity/org/apache/jdo/tck/pc/lifecycle/StateTransitionObj.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/inheritance4.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with inheritance mapping 4: \ 17 | Person, Employee, and Insurance have inheritance strategy "new-table". \ 18 | PartTimeEmployee, FullTimeEmployee, MedicalInsurance, and DentalInsurance \ 19 | have inheritance strategy "superclass-table". 20 | jdo.tck.mapping.companyfactory = 21 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 22 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 23 | jdo.tck.mapping = 4 24 | jdo.tck.requiredOptions = 25 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/IDentalInsurance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | import java.math.BigDecimal; 21 | 22 | /** 23 | * This interface represents the persistent state of DentalInsurance. Javadoc was deliberately 24 | * omitted because it would distract from the purpose of the interface. 25 | */ 26 | public interface IDentalInsurance extends IInsurance { 27 | 28 | BigDecimal getLifetimeOrthoBenefit(); 29 | 30 | void setLifetimeOrthoBenefit(BigDecimal lifetimeOrthoBenefit); 31 | } 32 | -------------------------------------------------------------------------------- /.rat-excludes: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | specification/* 16 | specification/OOO/* 17 | specification/imports/* 18 | assembly.xml 19 | datanucleus.txt 20 | query.ser 21 | tck.txt 22 | MANIFEST.MF 23 | pom.properties 24 | Q*Address.java 25 | Q*Company.java 26 | Q*DentalInsurance.java 27 | Q*Department.java 28 | Q*Employee.java 29 | Q*FullTimeEmployee.java 30 | Q*Insurance.java 31 | Q*MedicalInsurance.java 32 | Q*MeetingRoom.java 33 | Q*Person.java 34 | Q*Project.java 35 | Q*DiscriminatorClassName*.java 36 | QPC*Annotated.java 37 | QPrimitiveTypes.java 38 | QVersionedPCPoint.java 39 | QNamedQueriesSample.java 40 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/inheritance1.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Completeness test with inheritance mapping 1: \ 17 | Separate table for each class in the inheritance hierarchy. \ 18 | Each table contains columns for the declared fields. \ 19 | Inheritance strategy: new-table for all classes. 20 | jdo.tck.mapping.companyfactory = 21 | jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest 22 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 23 | jdo.tck.mapping = 1 24 | jdo.tck.requiredOptions = javax.jdo.option.mapping.JoinedTablePerClass 25 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopNonPersistE.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopNonPersistE extends TopNonPersistD { // persistent 22 | 23 | public float floatE; // transactional 24 | 25 | public TopNonPersistE() { 26 | floatE = -4.4f; 27 | } 28 | 29 | public TopNonPersistE( 30 | int intA, double doubleB, int intB, char charC, boolean booleanD, float floatE) { 31 | super(intA, doubleB, intB, charC, booleanD); 32 | this.floatE = floatE; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/enhancement-test.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | org.apache.jdo.tck.pc.inheritance=AllPersist,AllPersist2,AllPersist3,AllPersist4,FieldSameName,FieldSameName2,FieldSameName3,FieldSameName4,TopNonPersistB,TopNonPersistE,TopNonPersistF,TopNonPersistH,TopPersist,TopPersistE,TopPersistF,TopPersistH 18 | org.apache.jdo.tck.pc.company=Address,Company,DentalInsurance,Department,Employee,FullTimeEmployee,Insurance,MedicalInsurance,PartTimeEmployee,Person,Project 19 | org.apache.jdo.tck.pc.instancecallbacks=InstanceCallbackClass,InstanceCallbackNonPersistFdsClass 20 | 21 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/applicationidentity/schema5.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: application identity orm 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA applicationidentity_orm; 21 | SET SCHEMA applicationidentity_orm; 22 | 23 | ------------------------- 24 | -- mylib 25 | ------------------------- 26 | 27 | DROP TABLE PCPoint; 28 | 29 | CREATE TABLE PCPoint ( 30 | ID BIGINT NOT NULL, 31 | X INTEGER NOT NULL, 32 | Y INTEGER, 33 | CONSTRAINT PCPNT_CONST PRIMARY KEY (ID) 34 | ); 35 | 36 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/applicationidentity/schema6.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: application identity pkg 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA applicationidentity_pkg; 21 | SET SCHEMA applicationidentity_pkg; 22 | 23 | ------------------------- 24 | -- mylib 25 | ------------------------- 26 | 27 | DROP TABLE PCPoint; 28 | 29 | CREATE TABLE PCPoint ( 30 | ID BIGINT NOT NULL, 31 | X INTEGER NOT NULL, 32 | Y INTEGER, 33 | CONSTRAINT PCPNT_CONST PRIMARY KEY (ID) 34 | ); 35 | 36 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/applicationidentity/schema7.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: application identity cls 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA applicationidentity_cls; 21 | SET SCHEMA applicationidentity_cls; 22 | 23 | ------------------------- 24 | -- mylib 25 | ------------------------- 26 | 27 | DROP TABLE PCPoint; 28 | 29 | CREATE TABLE PCPoint ( 30 | ID BIGINT NOT NULL, 31 | X INTEGER NOT NULL, 32 | Y INTEGER, 33 | CONSTRAINT PCPNT_CONST PRIMARY KEY (ID) 34 | ); 35 | 36 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/listener/InstanceLifecycleListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /* 19 | * InstanceLifecycleListener.java 20 | * 21 | */ 22 | 23 | package javax.jdo.listener; 24 | 25 | /** 26 | * All lifecycle listeners extend from this base interface. In order to minimize the impact on 27 | * domain classes, instance callbacks can be defined to use a life-cycle listener pattern instead of 28 | * having the domain class implement the callback interface(s). 29 | * 30 | * @version 2.0 31 | * @since 2.0 32 | */ 33 | public interface InstanceLifecycleListener {} 34 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/inheritance/TopPersistE.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.inheritance; 19 | 20 | /** */ 21 | public class TopPersistE extends TopPersistD { // persistent 22 | 23 | public float floatE; // transactional 24 | 25 | public TopPersistE() { 26 | floatE = Constants.floatE_V[0]; 27 | } 28 | 29 | public TopPersistE( 30 | int intA, double doubleB, int intB, char charC, boolean booleanD, float floatE) { 31 | super(intA, doubleB, intB, charC, booleanD); 32 | this.floatE = floatE; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/PIDentalInsurance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | import java.math.BigDecimal; 21 | 22 | /** 23 | * This interface represents the persistent state of DentalInsurance. Javadoc was deliberately 24 | * omitted because it would distract from the purpose of the interface. 25 | */ 26 | public interface PIDentalInsurance extends PIInsurance, IDentalInsurance { 27 | 28 | BigDecimal getLifetimeOrthoBenefit(); 29 | 30 | void setLifetimeOrthoBenefit(BigDecimal lifetimeOrthoBenefit); 31 | } 32 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/IInsurance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of Insurance. Javadoc was deliberately omitted 22 | * because it would distract from the purpose of the interface. 23 | */ 24 | public interface IInsurance { 25 | 26 | long getInsid(); 27 | 28 | String getCarrier(); 29 | 30 | IEmployee getEmployee(); 31 | 32 | void setInsid(long insid); 33 | 34 | void setCarrier(String carrier); 35 | 36 | void setEmployee(IEmployee employee); 37 | } 38 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/query/OptionalExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.query; 18 | 19 | /** Representation of an Optional type in a query. */ 20 | public interface OptionalExpression extends ComparableExpression> { 21 | /** 22 | * Accessor for the object within the Optional. 23 | * 24 | * @return Expression for the object 25 | */ 26 | Expression get(); 27 | 28 | /** 29 | * Accessor for whether there is an object within the Optional. 30 | * 31 | * @return Whether there is an expression 32 | */ 33 | BooleanExpression isPresent(); 34 | } 35 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive0-xsd.jdoquery: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 23 | 24 | 26 | SELECT * FROM TestClass 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/PIInsurance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** 21 | * This interface represents the persistent state of Insurance. Javadoc was deliberately omitted 22 | * because it would distract from the purpose of the interface. 23 | */ 24 | public interface PIInsurance extends IInsurance { 25 | 26 | long getInsid(); 27 | 28 | String getCarrier(); 29 | 30 | IEmployee getEmployee(); 31 | 32 | void setInsid(long insid); 33 | 34 | void setCarrier(String carrier); 35 | 36 | void setEmployee(IEmployee employee); 37 | } 38 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/Indices.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of index constraints. 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Indices { 33 | /** 34 | * The indices 35 | * 36 | * @return The indices 37 | */ 38 | Index[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive15.3.1-dtd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/EmbeddedOnly.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for whether the class is only for persisting embedded into another object. Same as 26 | * specifying @PersistenceCapable(embeddedOnly="true"). 27 | * 28 | * @version 2.1 29 | * @since 2.1 30 | */ 31 | @Target(ElementType.TYPE) 32 | @Retention(RetentionPolicy.RUNTIME) 33 | public @interface EmbeddedOnly {} 34 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/Queries.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of named queries. 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Queries { 33 | /** 34 | * The named queries 35 | * 36 | * @return The named queries 37 | */ 38 | Query[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/metadata/PropertyMetadata.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.metadata; 18 | 19 | /** 20 | * Represents a property in a class/persistent-interface. 21 | * 22 | * @since 3.0 23 | */ 24 | public interface PropertyMetadata extends MemberMetadata { 25 | /** 26 | * Method to set the field name (persistent interfaces). 27 | * 28 | * @param name field name 29 | * @return This metadata object 30 | */ 31 | PropertyMetadata setFieldName(String name); 32 | 33 | /** 34 | * Accessor for the field name. 35 | * 36 | * @return Field name 37 | */ 38 | String getFieldName(); 39 | } 40 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/FetchPlans.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of FetchPlan objects 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface FetchPlans { 33 | /** 34 | * The Fetch Plans 35 | * 36 | * @return The Fetch Plans 37 | */ 38 | FetchPlan[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive15.3.3-dtd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/FetchGroups.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of fetch-group objects 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface FetchGroups { 33 | /** 34 | * The Fetch Groups 35 | * 36 | * @return The Fetch Groups 37 | */ 38 | FetchGroup[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/relationshipNoRelationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Managed relationship tests with standard mapping, \ 17 | basic testdata with no relationships. 18 | jdo.tck.mapping.companyfactory = 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsNoData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | jdo.tck.classes = org.apache.jdo.tck.mapping.Relationship1To1NoRelationships \ 23 | org.apache.jdo.tck.mapping.Relationship1ToManyNoRelationships \ 24 | org.apache.jdo.tck.mapping.RelationshipManyToManyNoRelationships \ 25 | org.apache.jdo.tck.mapping.RelationshipNegative1ToManyTest 26 | 27 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/datastoreidentity/schema5.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: datastore identity orm 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA datastoreidentity_orm; 21 | SET SCHEMA datastoreidentity_orm; 22 | 23 | ------------------------- 24 | -- mylib 25 | ------------------------- 26 | 27 | DROP TABLE PCPoint; 28 | 29 | CREATE TABLE PCPoint ( 30 | DATASTORE_IDENTITY BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY, 31 | ID BIGINT, 32 | X INTEGER NOT NULL, 33 | Y INTEGER, 34 | CONSTRAINT PCPNT_CONST PRIMARY KEY (DATASTORE_IDENTITY) 35 | ); 36 | 37 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/datastoreidentity/schema6.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: datastore identity pkg 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA datastoreidentity_pkg; 21 | SET SCHEMA datastoreidentity_pkg; 22 | 23 | ------------------------- 24 | -- mylib 25 | ------------------------- 26 | 27 | DROP TABLE PCPoint; 28 | 29 | CREATE TABLE PCPoint ( 30 | DATASTORE_IDENTITY BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY, 31 | ID BIGINT, 32 | X INTEGER NOT NULL, 33 | Y INTEGER, 34 | CONSTRAINT PCPNT_CONST PRIMARY KEY (DATASTORE_IDENTITY) 35 | ); 36 | 37 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/datastoreidentity/schema7.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: datastore identity cls 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA datastoreidentity_cls; 21 | SET SCHEMA datastoreidentity_cls; 22 | 23 | ------------------------- 24 | -- mylib 25 | ------------------------- 26 | 27 | DROP TABLE PCPoint; 28 | 29 | CREATE TABLE PCPoint ( 30 | DATASTORE_IDENTITY BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY, 31 | ID BIGINT, 32 | X INTEGER NOT NULL, 33 | Y INTEGER, 34 | CONSTRAINT PCPNT_CONST PRIMARY KEY (DATASTORE_IDENTITY) 35 | ); 36 | 37 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/Uniques.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of unique constraints. 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Uniques { 33 | /** 34 | * The unique constraints. 35 | * 36 | * @return The unique constraints 37 | */ 38 | Unique[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /tck/src/main/resources/conf/relationshipAllRelationships.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # https://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 | jdo.tck.description = Managed relationship tests with standard mapping, \ 17 | basic testdata with all relationships. 18 | jdo.tck.mapping.companyfactory = 19 | jdo.tck.testdata = org.apache.jdo.tck.pc.company.data.RelationshipsAllData 20 | jdo.tck.mapping = 0 21 | jdo.tck.requiredOptions = 22 | jdo.tck.classes = org.apache.jdo.tck.mapping.Relationship1To1AllRelationships \ 23 | org.apache.jdo.tck.mapping.Relationship1ToManyAllRelationships \ 24 | org.apache.jdo.tck.mapping.RelationshipManyToManyAllRelationships \ 25 | org.apache.jdo.tck.mapping.RelationshipNegative1To1Test 26 | 27 | 28 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/ForeignKeys.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of foreign-key constraints. 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface ForeignKeys { 33 | /** 34 | * The foreign keys. 35 | * 36 | * @return The foreign keys 37 | */ 38 | ForeignKey[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive02/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive03/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive04/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /api/src/test/resources/jdoconfig/Positive05/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tck/src/main/resources/orm/applicationidentity/org/apache/jdo/tck/pc/lifecycle/StateTransitionObj-standard.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /api/src/test/resources/Positive15.3.2-dtd.orm: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tck/src/main/resources/jdo/datastoreidentity/org/apache/jdo/tck/pc/order/package.jdo: -------------------------------------------------------------------------------- 1 | 2 | 18 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /api/src/main/java/javax/jdo/annotations/Extensions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package javax.jdo.annotations; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation for a group of extensions 26 | * 27 | * @version 2.1 28 | * @since 2.1 29 | */ 30 | @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD}) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface Extensions { 33 | /** 34 | * The extensions. 35 | * 36 | * @return the extensions 37 | */ 38 | Extension[] value(); 39 | } 40 | -------------------------------------------------------------------------------- /tck/src/main/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * https://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.jdo.tck.pc.company; 19 | 20 | /** */ 21 | public interface CompanyFactoryNewInstance { 22 | 23 | public abstract IAddress newAddress(); 24 | 25 | IMeetingRoom newMeetingRoom(); 26 | 27 | ICompany newCompany(); 28 | 29 | IDentalInsurance newDentalInsurance(); 30 | 31 | IDepartment newDepartment(); 32 | 33 | IFullTimeEmployee newFullTimeEmployee(); 34 | 35 | IMedicalInsurance newMedicalInsurance(); 36 | 37 | IPartTimeEmployee newPartTimeEmployee(); 38 | 39 | IProject newProject(); 40 | 41 | Class[] getTearDownClasses(); 42 | } 43 | -------------------------------------------------------------------------------- /tck/src/main/resources/sql/derby/applicationidentity/schema12.sql: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one or more 2 | -- contributor license agreements. See the NOTICE file distributed with 3 | -- this work for additional information regarding copyright ownership. 4 | -- The ASF licenses this file to You under the Apache License, Version 2.0 5 | -- (the "License"); you may not use this file except in compliance with 6 | -- the License. You may obtain a copy of the License at 7 | -- 8 | -- https://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 | -- SchemaType: application identity 17 | 18 | -- connect 'jdbc:derby:jdotckdb;create=true' user 'tckuser' password 'tckuser'; 19 | 20 | CREATE SCHEMA applicationidentity12; 21 | SET SCHEMA applicationidentity12; 22 | 23 | DROP TABLE KITCHEN; 24 | 25 | CREATE TABLE KITCHEN ( 26 | KITCHEN_ID BIGINT NOT NULL, 27 | OVEN_DISCRIM VARCHAR(128) NOT NULL, 28 | OVEN_MAKE VARCHAR(255), 29 | OVEN_MODEL VARCHAR(255), 30 | MICROWAVE CHAR(1) CHECK (MICROWAVE IN ('Y','N') OR MICROWAVE IS NULL), 31 | CAPABILITIES VARCHAR(255), 32 | 33 | CONSTRAINT KITCHEN_PK PRIMARY KEY (KITCHEN_ID) 34 | ); 35 | --------------------------------------------------------------------------------