Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**
     * Checks whether a column is numeric
     * @param column
     * @param dataType
     * @return
     */
    public static boolean checkNumeric(final String dataType) {
        boolean numericColumn = false;
        if (dataType.contains("integer") || dataType.contains("real") || dataType.contains("decimal")
                || dataType.contains("unsigned")) {
            numericColumn = true;
        }
        return numericColumn;
    }
}