[Jiemamy-notify:1964] commit [3124] 例外を追加しました。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 6日 (月) 01:40:19 JST


Revision: 3124
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3124
Author:   j5ik2o
Date:     2009-04-06 01:40:19 +0900 (Mon, 06 Apr 2009)

Log Message:
-----------
例外を追加しました。

Added Paths:
-----------
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/ColumnDuplicatedException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/PropertyDuplicatedException.java


-------------- next part --------------
Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/ColumnDuplicatedException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/ColumnDuplicatedException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/ColumnDuplicatedException.java	2009-04-05 16:40:19 UTC (rev 3124)
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ * Created on Apr 5, 2009
+ *
+ * This file is part of Jiemamy.
+ *
+ * Licensed 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.jiemamy.composer.importer.meta;
+
+/**
+ * カラムがだぶって生成された場合の例外クラス。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class ColumnDuplicatedException extends Exception {
+	
+	/**
+	 * インスタンスを生成する。
+	 * 
+	 * @param entityName エンティティ名
+	 * @param propertyName オリジナルのプロパティ名
+	 * @param propertyName2 対象のプロパティ名
+	 * @param columnName カラム名
+	 */
+	public ColumnDuplicatedException(String entityName, String propertyName, String propertyName2, String columnName) {
+		super(String.format("duplicated column %s %s %s %s", entityName, propertyName, propertyName2, columnName));
+	}
+	
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/ColumnDuplicatedException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/PropertyDuplicatedException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/PropertyDuplicatedException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/PropertyDuplicatedException.java	2009-04-05 16:40:19 UTC (rev 3124)
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ * Created on Apr 5, 2009
+ *
+ * This file is part of Jiemamy.
+ *
+ * Licensed 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.jiemamy.composer.importer.meta;
+
+/**
+ * プロパティがだぶって生成された場合の例外クラス
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class PropertyDuplicatedException extends Exception {
+	
+	/**
+	 * インスタンスを生成する。
+	 * 
+	 * @param name オリジナルのプロパティ名
+	 * @param name2 対象のプロパティ名
+	 */
+	public PropertyDuplicatedException(String name, String name2) {
+		super(String.format("duplicated properties %s : %s", name, name2));
+	}
+	
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/PropertyDuplicatedException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain



Jiemamy-notify メーリングリストの案内
Back to archive index