📄 checktype.java
字号:
/*
Loader - tool for transfering data from one JDBC source to another and
doing transformations during copy.
Copyright (C) 2002-2003 Together
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Loader.java
Date: 03.03.2003.
@version 2.1 alpha
@authors:
Radoslav Dutina rale@prozone.co.yu
*/
package org.webdocwf.util.loader;
import java.util.Hashtable;;
/**
*
* CheckType class is used for checking the type of data
* @author Radoslav Dutina
* @version 1.0
*/
public class CheckType {
// private static final String[] binaryTypes = {
// "blob", "clob", "image", "varbinary", "longvarbinary",
// "binary", "bytea"};
//ZK comment this 6.5 2004
// private static final String[] intTypes = {"decimal", "int", "numeric", "real",
// "short", "long", "float", "double", "bigint", "money",
// "smallmoney", "smallint",
// "number"};
//
// private static final String[] decimalTypes = {"decimal", "bigdecimal"};
//"number" for oracle is also decimal Type
//
// private static final String[] doubleTypes = {"float", "double"};
//
//ZK added this 6.5 2004
// private static ConfigReader confReader;
//end
/**
* Empty Check class constructor
*/
public CheckType() {
}
// /**
// * Method isBinaryObject is used for checking column type
// * @param s string that represents column type
// * @return true if it is binary object and false if it is not
// */
// public static boolean isBinaryObject(String s) {
// boolean type = false;
// for (int i = 0; i < binaryTypes.length; i++) {
// if (binaryTypes[i].equalsIgnoreCase(s)) {
// type = true;
// break;
// }
// }
// return type;
// }
//ZK comment this 6.5 2004
// /**
// * Method isNumber is used for checking column type.
// * @param s String that represents column type.
// * @return true if it is numeric and false if it is not.
// */
// public static boolean isNumber(String s) {
// boolean type = false;
// for (int i = 0; i < intTypes.length; i++) {
// if (intTypes[i].equalsIgnoreCase(s)) {
// type = true;
// break;
// }
// }
//
// return type;
// }
//ZK added this 6.5.2004
// /**
// * Method isNumber is used for checking column type.
// * @param s String that represents column type.
// * @return true if it is numeric and false if it is not.
// */
// public static boolean isNumber(String s) {
// boolean isNumber = false;
// boolean containsKey = hash.containsKey((s).toUpperCase());
// String value = hash.get((s).toUpperCase()).toString();
// if ((containsKey) && (value.equalsIgnoreCase("true"))){
// return (new Boolean(value).booleanValue());
// }else{
// return isNumber;
// }
//
// }
//
// /**
// * Method isDecimal is used for checking column type.
// * @param s String that represents column type.
// * @return true if it is numeric and false if it is not.
// */
// public static boolean isDecimal(String s) {
// boolean type = false;
// for (int i = 0; i < decimalTypes.length; i++) {
// if (decimalTypes[i].equalsIgnoreCase(s)) {
// type = true;
// break;
// }
// }
// return type;
// }
//
// /**
// * Method isDouble is used for checking column type.
// * @param s String that represents column type.
// * @return true if it is numeric and false if it is not.
// */
// public static boolean isDouble(String s) {
// boolean type = false;
// for (int i = 0; i < doubleTypes.length; i++) {
// if (doubleTypes[i].equalsIgnoreCase(s)) {
// type = true;
// break;
// }
// }
// return type;
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -