Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 4a601fe0

Přidáno uživatelem Michal Horký před asi 4 roky(ů)

re #7950

release v0.4

Zobrazit rozdíly:

project/Deserializer/app.config
1
#Wed Apr 29 18:11:39 CEST 2020
1
#Thu Apr 30 04:55:51 CEST 2020
2 2
db_type=MySQL
3 3
input_dir=D\:\\Michal\\University\\1\\LS\\ASWI\\semestralky\\Deserializer\\aswi2020horky\\project\\Deserializer\\test_data
4 4
ace_theme=ambiance
project/Deserializer/html.txt
1
{
2
	class gk.std_bo_if.share.data.to.item.ToItem extends gk.std_bo_if.share.data.to.TransportObject : {
3
	}
4
},
5
{
6
	class gk.std_bo_if.share.data.to.TransportObject : {
7
		"operation" : U, 
8
		"status" : {
9
			class gk.std_bo_if.share.data.to.TransportObjectStatus : {
10
				"transactionID" : 100000000001256779, 
11
			}
12
		}, 
13
		"table" : {
14
			class gk.std_bo_if.share.data.to.item.TbiRItem extends gk.tbi.TbiTable : {
15
			}
16
		},
17
		{
18
			class gk.tbi.TbiTable : {
19
				"changed" : true, 
20
				"hasMoreData" : false, 
21
				"rows" : {
22
					class java.util.Vector : {
23
						"capacityIncrement" : 0, 
24
						"elementCount" : 1, 
25
						"elementData" : 
26
						[ 
27
							{
28
								class gk.std_bo_if.share.data.to.item.TbiRItemRow extends gk.tbi.TbiRow : {
29
									"_authorized_for_sale_flag" : true, 
30
									"_bonuspoints_flag" : true, 
31
									"_collection_allowed_for_element_change_flag" : false, 
32
									"_concession_item_flag" : false, 
33
									"_consumer_pckg_weight" : 3.77, 
34
									"_conversion_factor_input_required_flag" : false, 
35
									"_default_label_count" : 1, 
36
									"_delivery_stock_assortment_flag" : false, 
37
									"_deposit_flag" : false, 
38
									"_fee_included" : true, 
39
									"_fl_itm_dsc" : true, 
40
									"_item_deleted_flag" : false, 
41
									"_markdown_type" : 0, 
42
									"_negative_position_flag" : false, 
43
									"_prohibited_for_return_flag" : false, 
44
									"_recycling_fee" : 0.0, 
45
									"_retain_prepayment_flag" : false, 
46
									"_short_list_showing_flag" : false, 
47
									"_sku_amount_factor" : 1.0, 
48
									"_takeaway_allowed_flag" : false, 
49
									"_tare_id" : 0, 
50
									"_tax_exempt_prohibited_flag" : false, 
51
									"_unit_pricing_required_flag" : false, 
52
									"_update_stock_flag" : true, 
53
									"_update_stock_on_item_collection_elements_flag" : false, 
54
									"_update_stock_on_main_item_flag" : false, 
55
									"_update_turnover_flag" : true, 
56
									"_update_turnover_on_item_collection_elements_flag" : false, 
57
									"_update_turnover_on_main_item_flag" : false, 
58
									"_warranty_period" : 0.0, 
59
									"_wertartikelok" : false, 
60
									"_bon_text" : "Ліжко надувне VELOUR 137х191см", 
61
									"_description" : "Ліжко надувне VELOUR 137х191см", 
62
									"_item_id" : "4733200", 
63
									"_item_main_id" : "4733200", 
64
									"_merchandise_structure_id" : "090503", 
65
									"_name" : "Ліжко надувне VELOUR 137х191см", 
66
									"_pos_department_id" : "1", 
67
									"_price_processing" : "01", 
68
									"_retail_selling" : "ST", 
69
									"_stock_item_type_code" : "00", 
70
									"_supplier_id" : "C290", 
71
									"_tax_group_id" : "83", 
72
									"_xx001" : "11", 
73
									"_xx002" : "3926909290", 
74
								}
75
							},
76
							{
77
								class gk.tbi.TbiRow : {
78
									"status" : 0, 
79
									"notNullArray" : [ -1, -20, 62, -22, -4, 17, -32, 12 ]
80
								}
81
							}
82
						]
83
					}
84
				}
85
			}
86
		}
87
	}
88
}
project/Deserializer/jdeserialize_out.txt
1 1
--- JDESERIALIZE BEGINS ---
2
read: gk.std_bo_if.share.data.to.item.ToItem _h0x7e0005 = r_0x7e0000;  
2
read: java.util.Hashtable _h0x7e0001 = r_0x7e0000;  
3
read: java.util.Hashtable _h0x7e0002 = r_0x7e0000;  
4
read: java.util.Hashtable _h0x7e0024 = r_0x7e0000;  
5
read: [blockdata 0x00: 8 bytes]
6
read: java.util.Hashtable _h0x7e0025 = r_0x7e0000;  
7
read: java.util.Hashtable _h0x7e0026 = r_0x7e0000;  
8
read: [blockdata 0x00: 8 bytes]
9
read: java.util.Hashtable _h0x7e0038 = r_0x7e0000;  
10
read: java.util.Hashtable _h0x7e0039 = r_0x7e0000;  
11
read: [blockdata 0x00: 8 bytes]
12
read: java.util.Hashtable _h0x7e004a = r_0x7e0000;  
13
read: java.util.Hashtable _h0x7e004b = r_0x7e0000;  
14
read: [blockdata 0x00: 8 bytes]
15
read: java.util.Hashtable _h0x7e005c = r_0x7e0000;  
16
read: java.util.Hashtable _h0x7e005d = r_0x7e0000;  
17
read: [blockdata 0x00: 8 bytes]
18
read: java.util.Hashtable _h0x7e006e = r_0x7e0000;  
19
read: java.util.Hashtable _h0x7e006f = r_0x7e0000;  
20
read: [blockdata 0x00: 8 bytes]
21
read: java.util.Hashtable _h0x7e0080 = r_0x7e0000;  
22
read: java.util.Hashtable _h0x7e0081 = r_0x7e0000;  
23
read: [blockdata 0x00: 8 bytes]
24
read: java.util.Hashtable _h0x7e0092 = r_0x7e0000;  
25
read: java.util.Hashtable _h0x7e0093 = r_0x7e0000;  
26
read: [blockdata 0x00: 8 bytes]
27
read: java.util.Hashtable _h0x7e00a4 = r_0x7e0000;  
28
read: java.util.Hashtable _h0x7e00ac = r_0x7e0000;  
29
read: [blockdata 0x00: 8 bytes]
30
read: java.util.Hashtable _h0x7e00ad = r_0x7e0000;  
31
read: java.util.Hashtable _h0x7e00b1 = r_0x7e0000;  
32
read: [blockdata 0x00: 8 bytes]
3 33
--- JDESERIALIZE ENDS ---
project/Deserializer/json.txt
1
{
2
	class gk.std_bo_if.share.data.to.item.ToItem extends gk.std_bo_if.share.data.to.TransportObject : {
3
	}
4
},
5
{
6
	class gk.std_bo_if.share.data.to.TransportObject : {
7
		"operation" : U, 
8
		"status" : {
9
			class gk.std_bo_if.share.data.to.TransportObjectStatus : {
10
				"transactionID" : 100000000001256779, 
11
			}
12
		}, 
13
		"table" : {
14
			class gk.std_bo_if.share.data.to.item.TbiRItem extends gk.tbi.TbiTable : {
15
			}
16
		},
17
		{
18
			class gk.tbi.TbiTable : {
19
				"changed" : true, 
20
				"hasMoreData" : false, 
21
				"rows" : {
22
					class java.util.Vector : {
23
						"capacityIncrement" : 0, 
24
						"elementCount" : 1, 
25
						"elementData" : 
26
						[ 
27
							{
28
								class gk.std_bo_if.share.data.to.item.TbiRItemRow extends gk.tbi.TbiRow : {
29
									"_authorized_for_sale_flag" : true, 
30
									"_bonuspoints_flag" : true, 
31
									"_collection_allowed_for_element_change_flag" : false, 
32
									"_concession_item_flag" : false, 
33
									"_consumer_pckg_weight" : 3.77, 
34
									"_conversion_factor_input_required_flag" : false, 
35
									"_default_label_count" : 1, 
36
									"_delivery_stock_assortment_flag" : false, 
37
									"_deposit_flag" : false, 
38
									"_fee_included" : true, 
39
									"_fl_itm_dsc" : true, 
40
									"_item_deleted_flag" : false, 
41
									"_markdown_type" : 0, 
42
									"_negative_position_flag" : false, 
43
									"_prohibited_for_return_flag" : false, 
44
									"_recycling_fee" : 0.0, 
45
									"_retain_prepayment_flag" : false, 
46
									"_short_list_showing_flag" : false, 
47
									"_sku_amount_factor" : 1.0, 
48
									"_takeaway_allowed_flag" : false, 
49
									"_tare_id" : 0, 
50
									"_tax_exempt_prohibited_flag" : false, 
51
									"_unit_pricing_required_flag" : false, 
52
									"_update_stock_flag" : true, 
53
									"_update_stock_on_item_collection_elements_flag" : false, 
54
									"_update_stock_on_main_item_flag" : false, 
55
									"_update_turnover_flag" : true, 
56
									"_update_turnover_on_item_collection_elements_flag" : false, 
57
									"_update_turnover_on_main_item_flag" : false, 
58
									"_warranty_period" : 0.0, 
59
									"_wertartikelok" : false, 
60
									"_bon_text" : "Ліжко надувне VELOUR 137х191см", 
61
									"_description" : "Ліжко надувне VELOUR 137х191см", 
62
									"_item_id" : "4733200", 
63
									"_item_main_id" : "4733200", 
64
									"_merchandise_structure_id" : "090503", 
65
									"_name" : "Ліжко надувне VELOUR 137х191см", 
66
									"_pos_department_id" : "1", 
67
									"_price_processing" : "01", 
68
									"_retail_selling" : "ST", 
69
									"_stock_item_type_code" : "00", 
70
									"_supplier_id" : "C290", 
71
									"_tax_group_id" : "83", 
72
									"_xx001" : "11", 
73
									"_xx002" : "3926909290", 
74
								}
75
							},
76
							{
77
								class gk.tbi.TbiRow : {
78
									"status" : 0, 
79
									"notNullArray" : [ -1, -20, 62, -22, -4, 17, -32, 12 ]
80
								}
81
							}
82
						]
83
					}
84
				}
85
			}
86
		}
87
	}
88
}
project/Deserializer/src/Converter.java
1
import java.io.BufferedWriter;
2 1
import java.io.File;
3 2
import java.io.FileDescriptor;
4 3
import java.io.FileOutputStream;
5
import java.io.FileWriter;
6
import java.io.IOException;
7 4
import java.io.PrintStream;
8 5
import java.util.List;
9 6
import java.util.concurrent.Semaphore;
project/Deserializer/src/Editor.java
48 48
	            session = (JSObject) editor.call("getSession");
49 49
	            
50 50
	            // Slower scrolling.
51
	            editor.call("setScrollSpeed", ".5");
51
	            editor.call("setScrollSpeed", ".1");
52 52
	            
53 53
	            session.call("setUseWorker", false);
54 54
	            editor.call("setReadOnly", true);
project/Deserializer/src/io/Database.java
23 23

  
24 24
		public DB_Messenger(String driver, String url, String user, String password, String table, String condition, String column) {
25 25
			this.driver = driver;
26
			//The timezone statement added due to MySQL DB. Is it OK with MsSQL and Oracle?
27
			this.url = url + "?useTimezone=true&serverTimezone=UTC";
26
			// The timezone statement added due to MySQL.
27
			//this.url = url + "?useTimezone=true&serverTimezone=UTC";
28
			this.url = url;
28 29
			this.user = user;
29 30
			this.password = password;
30 31

  

Také k dispozici: Unified diff