You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by pp...@apache.org on 2007/08/01 18:43:49 UTC

svn commit: r561867 - in /labs/fluid/src/main/java/org/apache/openjpa/sdo: TypeNotFoundException.java mapping/TypeMapping.java mapping/package.html

Author: ppoddar
Date: Wed Aug  1 09:43:47 2007
New Revision: 561867

URL: http://svn.apache.org/viewvc?view=rev&rev=561867
Log:
Added interfaces

Added:
    labs/fluid/src/main/java/org/apache/openjpa/sdo/TypeNotFoundException.java
    labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/TypeMapping.java
    labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/package.html

Added: labs/fluid/src/main/java/org/apache/openjpa/sdo/TypeNotFoundException.java
URL: http://svn.apache.org/viewvc/labs/fluid/src/main/java/org/apache/openjpa/sdo/TypeNotFoundException.java?view=auto&rev=561867
==============================================================================
--- labs/fluid/src/main/java/org/apache/openjpa/sdo/TypeNotFoundException.java (added)
+++ labs/fluid/src/main/java/org/apache/openjpa/sdo/TypeNotFoundException.java Wed Aug  1 09:43:47 2007
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.openjpa.sdo;
+
+/**
+ * Exception raised when a named SDO Type can not be found.
+ * 
+ * @author Pinaki Poddar
+ *
+ */
+public class TypeNotFoundException extends RuntimeException {
+
+	public TypeNotFoundException(String message) {
+		super(message);
+	}
+
+	public TypeNotFoundException(Throwable cause) {
+		super(cause);
+	}
+
+	public TypeNotFoundException(String message, Throwable cause) {
+		super(message, cause);
+	}
+}

Added: labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/TypeMapping.java
URL: http://svn.apache.org/viewvc/labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/TypeMapping.java?view=auto&rev=561867
==============================================================================
--- labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/TypeMapping.java (added)
+++ labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/TypeMapping.java Wed Aug  1 09:43:47 2007
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.openjpa.sdo.mapping;
+
+import commonj.sdo.Property;
+import commonj.sdo.Type;
+
+/**
+ * Defines the protocol of mapping a SDO Type to a Java Class.
+ * 
+ * @author Pinaki Poddar
+ *
+ */
+public interface TypeMapping {
+	/**
+	 * Gets the type being mapped by this receiver.
+	 */
+	public Type getType();
+	
+	/**
+	 * Gets the (unqualified) name of the target Java class.
+	 */
+	public String getJavaClassName();
+	
+	/**
+	 * Gets the package name of the target Java class.
+	 */
+	public String getJavaPackageName();
+	
+	/**
+	 * Gets the mapping used for Identity.
+	 */
+	public IdentityMapping getIdentityMapping();
+	
+	/**
+	 * Gets the mapping used for Version.
+	 */
+	public VersionMapping getVersionMapping();
+	
+	/**
+	 * Gets the mapping used for the given Property.
+	 */
+	public PropertyMapping getMapping(Property p);
+}

Added: labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/package.html
URL: http://svn.apache.org/viewvc/labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/package.html?view=auto&rev=561867
==============================================================================
--- labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/package.html (added)
+++ labs/fluid/src/main/java/org/apache/openjpa/sdo/mapping/package.html Wed Aug  1 09:43:47 2007
@@ -0,0 +1,5 @@
+<HTML>
+<BODY>
+Implements Mapping for SDO Type/Property to Java Class/Field.
+</BODY>
+</HTML>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org