Subversion Repositories SmartDukaan

Rev

Rev 1475 | Rev 2141 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1475 Rev 1971
Line 42... Line 42...
42
		}
42
		}
43
		return itemPrice;
43
		return itemPrice;
44
	}
44
	}
45
 
45
 
46
 
46
 
47
	
47
/*	
48
	public static void storeCategories(Object obj) throws Exception {
48
	public static void storeCategories(Object obj) throws Exception {
49
	
49
	
50
		ByteArrayOutputStream bStream = new ByteArrayOutputStream();
50
		ByteArrayOutputStream bStream = new ByteArrayOutputStream();
51
		ObjectOutputStream oStream = new ObjectOutputStream( bStream );
51
		ObjectOutputStream oStream = new ObjectOutputStream( bStream );
52
		oStream.writeObject ( obj );
52
		oStream.writeObject ( obj );
Line 56... Line 56...
56
		CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
56
		CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
57
		Client client = catalogServiceClient.getClient();
57
		Client client = catalogServiceClient.getClient();
58
		
58
		
59
		client.putCategoryObject(byteVal);
59
		client.putCategoryObject(byteVal);
60
	}
60
	}
-
 
61
	*/
61
	
62
	/*
62
	public static Object getCategories() throws Exception {
63
	public static Object getCategories() throws Exception {
63
		CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
64
		CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
64
		Client client = catalogServiceClient.getClient();
65
		Client client = catalogServiceClient.getClient();
65
		
66
		
66
		byte[] byteVal  = client.getCategoryObject();
67
		byte[] byteVal  = client.getCategoryObject();
Line 77... Line 78...
77
				in.close();
78
				in.close();
78
			}
79
			}
79
		}
80
		}
80
		return obj;
81
		return obj;
81
	}
82
	}
82
	
83
	*/
83
	public static boolean validatePin(String pincode) {
84
	public static boolean validatePin(String pincode) {
84
		int pin;
85
		int pin;
85
		try {
86
		try {
86
			pin = Integer.parseInt(pincode);
87
			pin = Integer.parseInt(pincode);
87
		}
88
		}