svnno****@sourc*****
svnno****@sourc*****
2009年 4月 13日 (月) 11:21:11 JST
Revision: 3239 http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3239 Author: j5ik2o Date: 2009-04-13 11:21:11 +0900 (Mon, 13 Apr 2009) Log Message: ----------- 不要なクラスを削除しました。 Removed Paths: ------------- leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/ColumnUtil.java leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/EntityMetaUtil.java -------------- next part -------------- Deleted: leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/ColumnUtil.java =================================================================== --- leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/ColumnUtil.java 2009-04-13 02:18:25 UTC (rev 3238) +++ leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/ColumnUtil.java 2009-04-13 02:21:11 UTC (rev 3239) @@ -1,84 +0,0 @@ -/* - * 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.entity.io.meta; - -/** - * カラムに関するユーティリティクラス。 - * - * @author j5ik2o - */ -public class ColumnUtil { - - /** - * カラムのデータ型をフォーマットします。 - * <p> - * カラムのデータ型に含まれる置換文字を置き換えます。 - * <ul> - * <li>$l を長さで置き換えます。</li> - * <li>$p を精度で置き換えます。</li> - * <li>$s をスケールで置き換えます。</li> - * </ul> - * </p> - * - * @param dataType カラムのデータ型 - * @param length 長さ - * @param precision 精度 - * @param scale スケール - * @return フォーマットされたカラムのデータ型 - */ - public static String formatDataType(String dataType, int length, int precision, int scale) { - StringBuilder buf = new StringBuilder(); - for (int i = 0; i < dataType.length(); i++) { - char c = dataType.charAt(i); - if (c == '$') { - i++; - if (i < dataType.length()) { - c = dataType.charAt(i); - switch (c) { - case 'l': - buf.append(length); - break; - case 'p': - buf.append(precision); - break; - case 's': - buf.append(scale); - break; - default: - buf.append('$'); - buf.append(c); - break; - } - } else { - buf.append(c); - } - } else { - buf.append(c); - } - } - return buf.toString(); - } - - /** - * インスタンスを生成する。 - * - */ - protected ColumnUtil() { - } -} Deleted: leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/EntityMetaUtil.java =================================================================== --- leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/EntityMetaUtil.java 2009-04-13 02:18:25 UTC (rev 3238) +++ leto/jiemamy-entity-io/trunk/src/main/java/org/jiemamy/entity/io/meta/EntityMetaUtil.java 2009-04-13 02:21:11 UTC (rev 3239) @@ -1,61 +0,0 @@ -/* - * 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.entity.io.meta; - -import org.jiemamy.exception.JiemamyError; - -/** - * {@link EntityMeta}に関するユーティリティクラスです。 - * - * @author taedium - */ -public class EntityMetaUtil { - - /** コメントのキー */ - protected static String commentKey = EntityMetaUtil.class.getName() + "_comment"; - - - /** - * コメントを取得する。 - * - * @param entityMeta エンティティメタデータ - * @return コメント - */ - public static String getComment(EntityMeta entityMeta) { - return (String) entityMeta.getAdditionalInfo(commentKey); - } - - /** - * コメントを設定する。 - * - * @param entityMeta エンティティメタデータ - * @param comment コメント - */ - public static void setComment(EntityMeta entityMeta, String comment) { - entityMeta.addAdditionalInfo(commentKey, comment); - } - - /** - * インスタンスを生成する。 - * - */ - protected EntityMetaUtil() { - throw new JiemamyError("不到達ポイント"); - } -}