private static void mapObject(PreparedStatement pstm, int index ,Object arg) throws SQLException {
		Class<?> argClass = arg.getClass();
		if (argClass == String.class) 
            pstm.setString(index, (String) arg);
        else if (argClass == Integer.class)
            pstm.setInt(index, (Integer) arg);
        else if (argClass == BigDecimal.class)
            pstm.setBigDecimal(index, (BigDecimal) arg);
        else if (argClass == Date.class) 
            pstm.setTimestamp(index, new Timestamp(((Date) arg).getTime()));
        else if (argClass == Long.class)
            pstm.setLong(index, (Long) arg);
        else if (argClass == Double.class)
            pstm.setDouble(index, (Double) arg);
        else if (argClass == Float.class)
            pstm.setFloat(index, (Float) arg);

	}