📄 importfield.java
字号:
//==============================================================================//===//=== Import (adapted class from druid project http://druid.sf.net)//===//=== Copyright (C) by Andrea Carboni.//=== This file may be distributed under the terms of the GPL license.//==============================================================================package org.fao.gast.lib.druid;//==============================================================================public class ImportField{ public String name; public String type; public SqlType sqlType; //--------------------------------------------------------------------------- ImportField(String line) { int idx = line.indexOf(","); if (idx == -1) throw new IllegalArgumentException("Bad field format"); name = line.substring(0, idx).trim(); type = line.substring(idx+1).trim(); sqlType = SqlMapper.mapName(type); if (!type.equals(sqlType.sName)) throw new IllegalArgumentException("Field types differ"); } //--------------------------------------------------------------------------- public String toString() { return name; }}//==============================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -