Package adams.db

Class DataTypeHelper


  • public class DataTypeHelper
    extends Object
    Helper for the DataType class.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • DataTypeHelper

        public DataTypeHelper()
    • Method Detail

      • typeFor

        public static String typeFor​(Object o)
        Determines the type identifier for an object (S=String, B=Boolean, N=Double; default is 'S').
        Parameters:
        o - the object to get the type for
        Returns:
        the type
      • convert

        public static String convert​(Object o)
        Converts the object into the appropriate string.
        Parameters:
        o - the object to convert
        Returns:
        the generated string