Package com.asakusafw.modelgen.source

Examples of com.asakusafw.modelgen.source.MySqlDataType


                int numericScale = rs.getInt(6);
                String isNullableStr = rs.getString(7);
                String columnKeyStr = rs.getString(8);

                // MySQLのデータ型
                MySqlDataType dataType = MySqlDataType.getDataTypeByString(dataTypeStr);
                if (dataType == null) {
                    throw new RuntimeException("MySQLのデータ型(" + dataTypeStr + ")" + "は未サポートです");
                }

                // NULL可
View Full Code Here


            // カラムコメント
            String columnComment = getStringCellValue(testConditionSheet, ConditionSheetItem.COLUMN_COMMENT, row);

            // データ型
            String dataTypeStr = getStringCellValue(testConditionSheet, ConditionSheetItem.DATA_TYPE, row);
            MySqlDataType dataType = MySqlDataType.getDataTypeByString(dataTypeStr);
            if (dataType == null) {
                String msg = creaetExceptionMessage(ConditionSheetItem.DATA_TYPE, row);
                throw new InvalidExcelBookException(msg);
            }
View Full Code Here

            } catch (IllegalAccessException e) {
                throw new RuntimeException(e);
            }
            for (int col = 0; col < columnInfos.size(); col++) {
                HSSFCell cell = row.getCell(col, Row.CREATE_NULL_AS_BLANK);
                MySqlDataType type = columnInfos.get(col).getDataType();
                ValueOption<?> vo;
                switch (type) {
                case CHAR:
                case VARCHAR:
                    vo = getStringOption(cell);
View Full Code Here

TOP

Related Classes of com.asakusafw.modelgen.source.MySqlDataType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.