importfield.java
来自「联合国农粮署牵头开发的geonetwork源代码最新版」· Java 代码 · 共 43 行
JAVA
43 行
//==============================================================================//===//=== 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 + =
减小字号Ctrl + -
显示快捷键?