Class SQLHelper


  • public class SQLHelper
    extends Object
    • Constructor Detail

      • SQLHelper

        public SQLHelper()
    • Method Detail

      • setSqlParams

        public static void setSqlParams​(PreparedStatement prep,
                                        DataRow dr,
                                        List<String> fields,
                                        boolean isBasisDBMS)
                                 throws SQLException,
                                        ParseException
        Sets values in a prepared statement using a DataRow.
        Parameters:
        prep - the prepared statement.
        dr - a DataRow containing the values for the prepared statement.
        fields - an ArrayList with field names. If not null and not empty, this list will be used to get a portion of values from the DataRow dr. Otherwise all fields from dr will be set in the prepared statement.
        Throws:
        SQLException - is thrown when a value cannot be set.
        ParseException
      • isChartype

        public static boolean isChartype​(int type)