[Jiemamy-notify:1399] commit [2638] 代表的なデータ型の列挙型を追加。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 2月 9日 (月) 01:09:44 JST


Revision: 2638
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=2638
Author:   daisuke_m
Date:     2009-02-09 01:09:44 +0900 (Mon, 09 Feb 2009)

Log Message:
-----------
代表的なデータ型の列挙型を追加。

Added Paths:
-----------
    zeus/trunk/jiemamy-spec-core/src/main/java/org/jiemamy/model/datatype/TypicalDataType.java


-------------- next part --------------
Added: zeus/trunk/jiemamy-spec-core/src/main/java/org/jiemamy/model/datatype/TypicalDataType.java
===================================================================
--- zeus/trunk/jiemamy-spec-core/src/main/java/org/jiemamy/model/datatype/TypicalDataType.java	                        (rev 0)
+++ zeus/trunk/jiemamy-spec-core/src/main/java/org/jiemamy/model/datatype/TypicalDataType.java	2009-02-08 16:09:44 UTC (rev 2638)
@@ -0,0 +1,96 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ * Created on 2009/02/08
+ *
+ * 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.model.datatype;
+
+import java.sql.Types;
+
+/**
+ * 代表的なデータ型を表す列挙型
+ * 
+ * @author daisuke
+ */
+public enum TypicalDataType implements DataType {
+	
+	/** CHARACTER型 */
+	CHARACTER(Types.CHAR),
+
+	/** VARCHAR型 */
+	VARCHAR(Types.VARCHAR),
+
+	/** CLOB型 */
+	CLOB(Types.CLOB),
+
+	/** BLOB型 */
+	BLOB(Types.BLOB),
+
+	/** BIT型 */
+	BIT(Types.BIT),
+
+	/** VARBIT型 */
+	VARBIT(Types.OTHER),
+
+	/** NUMERIC型 */
+	NUMERIC(Types.NUMERIC),
+
+	/** DECIMAL型 */
+	DECIMAL(Types.DECIMAL),
+
+	/** INTEGER型 */
+	INTEGER(Types.INTEGER),
+
+	/** SMALLINT型 */
+	SMALLINT(Types.SMALLINT),
+
+	/** FLOAT型 */
+	FLOAT(Types.FLOAT),
+
+	/** REAL型 */
+	REAL(Types.REAL),
+
+	/** DOUBLE型 */
+	DOUBLE(Types.DOUBLE),
+
+	/** BOOLEAN型 */
+	BOOLEAN(Types.BOOLEAN),
+
+	/** DATE型 */
+	DATE(Types.DATE),
+
+	/** TIME型 */
+	TIME(Types.TIME),
+
+	/** TIMESTAMP型 */
+	TIMESTAMP(Types.TIMESTAMP),
+
+	/** INTERVAL型 */
+	INTERVAL(Types.OTHER);
+	
+	private final int sqlType;
+	
+
+	TypicalDataType(int sqlType) {
+		this.sqlType = sqlType;
+		
+	}
+	
+	public int getSqlType() {
+		return sqlType;
+	}
+	
+}


Property changes on: zeus/trunk/jiemamy-spec-core/src/main/java/org/jiemamy/model/datatype/TypicalDataType.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain



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