From ce310c15d0fedee53962aeeffed4f5170e19930d Mon Sep 17 00:00:00 2001 From: Swapnil Vhantale <103575498+spvhantale@users.noreply.github.com> Date: Sun, 2 Oct 2022 12:01:45 +0530 Subject: [PATCH] completed project --- .../bin/com/swapnil/bean/Admin.class | Bin 0 -> 1932 bytes .../bin/com/swapnil/bean/Buyer.class | Bin 0 -> 1932 bytes .../bin/com/swapnil/bean/BuyerProoduct.class | Bin 0 -> 2284 bytes .../bean/SellProductAndSellerDTO.class | Bin 0 -> 3441 bytes .../bin/com/swapnil/bean/SellProductDTO.class | Bin 0 -> 2359 bytes .../bin/com/swapnil/bean/Seller.class | Bin 0 -> 1936 bytes .../bin/com/swapnil/bean/SellerProduct.class | Bin 0 -> 3168 bytes .../bin/com/swapnil/dao/AdminDao.class | Bin 0 -> 633 bytes .../bin/com/swapnil/dao/AdminDaoImpl.class | Bin 0 -> 5126 bytes .../bin/com/swapnil/dao/BuyerDao.class | Bin 0 -> 835 bytes .../bin/com/swapnil/dao/BuyerDaoImpl.class | Bin 0 -> 6605 bytes .../bin/com/swapnil/dao/SellerDao.class | Bin 0 -> 627 bytes .../bin/com/swapnil/dao/SellerDaoImpl.class | Bin 0 -> 5500 bytes .../swapnil/exception/AdminException.class | Bin 0 -> 459 bytes .../swapnil/exception/BuyerException.class | Bin 0 -> 459 bytes .../swapnil/exception/SellerException.class | Bin 0 -> 462 bytes .../exception/SellerProductException.class | Bin 0 -> 483 bytes .../bin/com/swapnil/main/Main.class | Bin 0 -> 717 bytes .../com/swapnil/main/SelectionOption1.class | Bin 0 -> 4656 bytes .../swapnil/usecases/InsertSellproduct.class | Bin 0 -> 2993 bytes .../swapnil/usecases/Insertbuyerproduct.class | Bin 0 -> 2396 bytes .../com/swapnil/usecases/LoginAdmincase.class | Bin 0 -> 1635 bytes .../com/swapnil/usecases/LoginBuyercase.class | Bin 0 -> 1627 bytes .../swapnil/usecases/LoginSellercase.class | Bin 0 -> 1640 bytes .../swapnil/usecases/RegisterAdmincase.class | Bin 0 -> 1422 bytes .../swapnil/usecases/RegisterBuyercase.class | Bin 0 -> 1422 bytes .../swapnil/usecases/RegisterSellercase.class | Bin 0 -> 1433 bytes .../swapnil/usecases/RemoveItemfromList.class | Bin 0 -> 1273 bytes ...rchAndViewProductAndSellerbyCategory.class | Bin 0 -> 2303 bytes .../usecases/SearchAndViewSellProduct.class | Bin 0 -> 2172 bytes .../usecases/UpdateSellerProductbyPrice.class | Bin 0 -> 1375 bytes .../UpdateSellerProductbyQuantity.class | Bin 0 -> 1396 bytes .../usecases/ViewRegisterBuyerList.class | Bin 0 -> 1842 bytes .../usecases/ViewRegisterSellerList.class | Bin 0 -> 1802 bytes .../bin/com/swapnil/utality/DUtil.class | Bin 0 -> 880 bytes .../bin/com/swapnil/utality/Main.class | Bin 0 -> 673 bytes .../src/com/swapnil/bean/Admin.java | 87 +++++++ .../src/com/swapnil/bean/Buyer.java | 73 ++++++ .../src/com/swapnil/bean/BuyerProoduct.java | 115 +++++++++ .../swapnil/bean/SellProductAndSellerDTO.java | 218 +++++++++++++++++ .../src/com/swapnil/bean/SellProductDTO.java | 115 +++++++++ .../src/com/swapnil/bean/Seller.java | 85 +++++++ .../src/com/swapnil/bean/SellerProduct.java | 124 ++++++++++ .../src/com/swapnil/dao/AdminDao.java | 21 ++ .../src/com/swapnil/dao/AdminDaoImpl.java | 163 +++++++++++++ .../src/com/swapnil/dao/BuyerDao.java | 26 ++ .../src/com/swapnil/dao/BuyerDaoImpl.java | 198 +++++++++++++++ .../src/com/swapnil/dao/SellerDao.java | 24 ++ .../src/com/swapnil/dao/SellerDaoImpl.java | 201 ++++++++++++++++ .../com/swapnil/exception/AdminException.java | 14 ++ .../com/swapnil/exception/BuyerException.java | 15 ++ .../swapnil/exception/SellerException.java | 15 ++ .../exception/SellerProductException.java | 12 + .../src/com/swapnil/main/Main.java | 16 ++ .../com/swapnil/main/SelectionOption1.java | 226 ++++++++++++++++++ .../swapnil/usecases/InsertSellproduct.java | 83 +++++++ .../swapnil/usecases/Insertbuyerproduct.java | 58 +++++ .../com/swapnil/usecases/LoginAdmincase.java | 39 +++ .../com/swapnil/usecases/LoginBuyercase.java | 40 ++++ .../com/swapnil/usecases/LoginSellercase.java | 39 +++ .../swapnil/usecases/RegisterAdmincase.java | 43 ++++ .../swapnil/usecases/RegisterBuyercase.java | 41 ++++ .../swapnil/usecases/RegisterSellercase.java | 43 ++++ .../swapnil/usecases/RemoveItemfromList.java | 31 +++ ...archAndViewProductAndSellerbyCategory.java | 34 +++ .../usecases/SearchAndViewSellProduct.java | 33 +++ .../usecases/UpdateSellerProductbyPrice.java | 34 +++ .../UpdateSellerProductbyQuantity.java | 33 +++ .../usecases/ViewRegisterBuyerList.java | 28 +++ .../usecases/ViewRegisterSellerList.java | 32 +++ .../src/com/swapnil/utality/DUtil.java | 22 ++ .../src/com/swapnil/utality/Main.java | 15 ++ 72 files changed, 2396 insertions(+) create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Admin.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Buyer.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/BuyerProoduct.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellProductAndSellerDTO.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellProductDTO.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Seller.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellerProduct.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/AdminDao.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/AdminDaoImpl.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/BuyerDao.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/BuyerDaoImpl.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/SellerDao.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/SellerDaoImpl.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/exception/AdminException.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/exception/BuyerException.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/exception/SellerException.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/exception/SellerProductException.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/main/Main.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/main/SelectionOption1.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/InsertSellproduct.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/Insertbuyerproduct.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/LoginAdmincase.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/LoginBuyercase.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/LoginSellercase.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RegisterAdmincase.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RegisterBuyercase.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RegisterSellercase.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RemoveItemfromList.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/SearchAndViewSellProduct.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/UpdateSellerProductbyPrice.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/UpdateSellerProductbyQuantity.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/ViewRegisterBuyerList.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/ViewRegisterSellerList.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/utality/DUtil.class create mode 100644 muddled-can-9800/muddled-can-9800/bin/com/swapnil/utality/Main.class create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Admin.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Buyer.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/BuyerProoduct.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductAndSellerDTO.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductDTO.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Seller.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellerProduct.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDao.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDaoImpl.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDao.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDaoImpl.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDao.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDaoImpl.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/AdminException.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/BuyerException.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerException.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerProductException.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/main/Main.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/main/SelectionOption1.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/InsertSellproduct.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/Insertbuyerproduct.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginAdmincase.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginBuyercase.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginSellercase.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterAdmincase.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterBuyercase.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterSellercase.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RemoveItemfromList.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewSellProduct.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyPrice.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyQuantity.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterBuyerList.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterSellerList.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/DUtil.java create mode 100644 muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/Main.java diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Admin.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Admin.class new file mode 100644 index 0000000000000000000000000000000000000000..5097b570f2fc914217470c695aa4769860bda237 GIT binary patch literal 1932 zcmbW0+fGwK6o&tSo+z7x1xi~g6clJnp(uiKXgQ-LjhJ9ajPYW(-N8-T-KH&a;cNI9 zUT9(=(ZmPvp^R(I6ieD&FT9yqGkeWH-@j(WC-}Ot*p~})wIqx`C~~p zivn)FRL+@2O6$`rdaZUa>4MT7sDDf3VG}B4<_WJ_w9!aKgn=P=gyDjwUqp zsp!52uZpHL^ut3=&yD&nSB#ue&0MwS(h<$Da}R%3WgLyhI>9J|PpFKsXlKG-5mj!P ztwJwL-xlA?Dz^)bzqB4h<8Q5{r(RaC=*BYnZGYRnOS4!osvbNR=$D-mc}p#k@*;^R z{Cx8qt!a3QXXIC}R1AykhskdTeN$`GgAFp8h{%SLN?UwBC9r5``5!vlN{1_u@?clM zORCB@t@i~qTHku5okMEncMSYo!xCmG|FnEr%^OFuWxdkh5|;qe^w7QZ+c?p~9Y9eJ zzrUR6_2o=&FK2prng{3vbu*2Fv|6EA(Cm!gVCbt%yGNs!WH{A9Nj{1+m4p$D(uxJf zXk>v;l*!jdSRg*pfIpsSAP`?{AQTTe8VJXO&ITr1+LHtbQgx78AL$K})(HFvVjNQl z$otYtvw0t>OLGhwk@lD_!tE{1N4UL7kN4Q56M`Zx4HG757BoBK-{AjDK@ZrXOKyg3 z?akmp^KhE7`7)QZ)-s_AG)-5{NCm&j`U~u80t-CEY*XtlNZ?Bw$eb<69OgSf7O1@K zAPaO|q6-MO16Lqw3leGvS+)g<*@J}IK~@Q5tqTZ07lXuYLBj1I8@3<|_8{SQkZl6l z=>o#t!XOD-kjZwC16zWNgYsWF!8%^y5GQv`Wtwd(@IrQF F<_`ri9|r&c literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Buyer.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Buyer.class new file mode 100644 index 0000000000000000000000000000000000000000..915c17b25b8740fe40ef3e42b14e7f7e4912a828 GIT binary patch literal 1932 zcmbVL+fEZv6kP{;ql^j_3e;LEUMM3lDvB4RD&VE2(FYBQF+R+|1jqD3+M+T3hM(bs zCKeM-`~W}7xb`{4l6LUHm$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{o_tHkN2oAV&Fy&&>#?oc{#eFtN^)_Pg&yOSClHfqp%s$`Rx5i| zt?Wp(vcc5KuHbr>C(o$sIo=t()3}b8|HR~P%I!R_3AH(iDcZX4fN5Od9jl8=yvpGf z291e#`EnnVf6$6SPN&uGMS@*Y3Kx8@Kta?6Spv^Qg3N|N<|9GoqCsZEAlDe~`Unuo znSjhkf@H%WrAUxmG)OiKVi4rk2oNcnfLx6P$%jGiMS@(92FZs(ssvdY0U})^ARnN> zYq&=iem|_TxB(9$K}skGhmU&XMjs1dkS7FL8v!D1DgiLKgK5FVEQjm`qHDyn-KCUczY&pXhQb7F+y`|>cf8+kE%qQf5CA3Y9 H7#h1_I5 literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellProductAndSellerDTO.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellProductAndSellerDTO.class new file mode 100644 index 0000000000000000000000000000000000000000..39a9faa3dadebae7940d14b634d058902602c42b GIT binary patch literal 3441 zcma)-&v#Q*5XZl-q)8fHDMSiXsBI~w$xBNF6p+#=Ked2>6e|=^Uy^5eB~3z-g6K-m zVWT^jx^t;6)MLsyaE=R?xJ3UKS02A}?`xC3-f-N!J9jcO_j70NOrHJwg z4_b(aw&+i7G>{-M38J1wOpKM(qjlC}eRlQ5Cg`)a zi8m^`d1AP1VQ09dPA&VTqF0OKJqv>!T6Xv*dviL0OPG~6e@vwJZOq{V7Syd)*(w(H zu%H{t6GWei;|41^F|0aUMY<{ew=7JWYWjjWAF|wx!x~S=@v(&-wP9(w&0FY|?P@it zB3MFHs)pQu5}2%(jjB5=#l&#?h){rw0(e*MHUFY}Eh+EzX`;L<;$010Pmj8(7lo@S z-eC3+j)T#jLg}`Z$Ed3xmsMioyXYmi!$5AuN*6;5$wVM zC0iTeW$flo0_@>e0{lbE&0KR5z}elzpfl0LkTclCh%*prV$>PvZeq;ok2W#x^v9Y= zJN@w{GR{Cx6O+zBqKRzl3Q80N_%9A$esoJM)tK2nTf2>baRM+PYzL>foo@INf0 z2&wPKG1>MUq4& zc>jYq6l5XGRj2Vc4E{u;E+!5PBFaO?6duNFfpd=5f)`ckYo$UL;W*)@RD>PcYVC^A z;EEPr$B`gbJIK(_A&^r>kfS)Z0VKl`hC$BrxC{X*X~x5)`O*mTmbo{7Pw_a$d_2 zee@KUZX~Zf##M(Sb_Lgx*H@6>y%fp+)6}J{dqj+Yy1n>@i)G}^R}csTKl7Xphobg{{c|$Ed2lg literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellProductDTO.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/SellProductDTO.class new file mode 100644 index 0000000000000000000000000000000000000000..1835c253946f1c9a6ff43cb04134d099309c2b4c GIT binary patch literal 2359 zcmah}ZBrXn6n-{@B*dkZP|8~x0@au-(D>F?rJ$v>6s6D_z^RVoEMdj%EJ;ij9e;s; z#Seba8AE4ura!IK?>+aN=RD^*`_I3By#la?FO!HFn6K7P%dMa6 zM$PrgM~+=9R~*lK+N>X+RsGHVy(HoWuD-B;w9B4dJ1OrSy>P0&fq1J?s~a%34J2sV zr;dTlPS>yEH{IIFs)2N?QMG;Nq~845K(f_nG~FtF&6aOBeY$M&(!iL0+WNsO%K_gd zo!YU!OWbp7uD@B>Gh zjQiiaEdvWX|5Gt@Zxy%uOX)ueoI0RGHIxoVU|`0?FcM7w5#m&szkhlCkbVY*Ek zRd2fcw7L)amR6U+W=w7_^>O?HMu!ykN1j~r$^=L{P69*HJiO?+r0Hx@eqGBci4P4- zg+;b;=6c6YGlh>0OkP%R{%euxS{iq8Pt>v`*1CyL@F{g`HyRX~fh_6lqb7*Dn!*NY zT+VBet5BN~;Guz)C_-NoXp3A+pbKi(Qea!ta-<05{&UjBeGgkI;}gla8_K9harJf3 zpQ`Y|Br*IKoY-%KgMAZsP~vT+e%7oyk6am>iOb~O5~8s{MGoh3{EmJ#T64$wt08{)* zfL~Q&pdbOPxi+S)H8b2s-kM3YvDnS9s6b9J!!)OEh7o5mfjL@P z%;N^$LQZ9V%(56g$SjtWE07DSV8L0Cxm9!&WNsN#&ZO*NWl7=k=1oS`sLNb+*?(gC zH#)_bT-cPun~^0K@OJQco!*i*p~~%+q)96=sih)Z*Ipgyi2%BRB1%E5ULdo-hk%qL zfmm4T1F}TQ!$58`-JJnIL@L6-awL#!7|3cQkd7ntT|@a{~El01%O_ z0Qn#i$YL1Cw~;_@M+51ZKP^^=K)xFQM5ac7@Q=i=6!i;dOa|oOZ`^&J`RFB9EsoDQ z)-w0c@qqR$m&_w=XT^T3?VR|0rtSPWb~1a~UKINo?Q>MRg|q6`cm}Vhz=O^Y K=zuU{IQ$Q!V}6+c literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Seller.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/bean/Seller.class new file mode 100644 index 0000000000000000000000000000000000000000..15e9bde4e9b4f8e6acc4977912d4cef4d9897ebc GIT binary patch literal 1936 zcmbW0+fGwK6o&tSo~T>Ea*$$$f(oS+isu7zP!3wthzW+o7%z6q4sOx|=`MQVYxo#m zXkszZ#0T)9jQ^S`mbANGcr&wR_L_gbf6dyzet-W7U@=ux;>td_Ihd;6&3ma+xM zu4H$eQpu@>5l|RBwBOm;l3h8-?i3E4VqKxvbN3ZgP9f-3?6RW}%eS(2>ovD>uq+?T zwp&sNd*y1uEitXnJF-3ReYM8pp@(k8t*=roHMge_*r@J1QS@Taf`#)619`XNJU=cM zoZ3sfAg5#bYSAw3*)>ueK7Mf$Y*QBgTvSn{Ry8kT%(EhF`+dB!l7=(qiGA0NA=eWw<|4F${eO7bB2(0_u4JMf!g%Mm=F(@avglva8u=T{UK{5=0dXU*tH305L_ zq!6X5G0yb{nYlhS%bhJY^BVzvVqp>2n7>;+t`(ha-L&V7!9^(orufvo{B?rpkse^w zBORb;zQ3ON`g-Qub3V@#Y-o=CT;1fXI0w_;Fz`jEUEmm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sSgse zL3KFe8?KKDt;4lKZGjq8p=vv?18xy%PFc99wN4!qSb4#~O_ehV{aKL7-#j1-z966C zRu{+|)8z%Z$>$b(fJpfX$ZcPcxEJKMFUTE#khmA*EdVokz3CIdQ=dZU|6JC&QUyv_wzj?W%YZ6|N9fIuk0Fjm!kX0tH8^rP!>uX<- zhj`Ql!mhErAX$RsdVt785s)=skfax6&lluNe~>dnRL_wEg1qekA_Gl8`2UB$lA2#R z9A%&#|AoxU=;L?z+Tvt8!IS9L3BIK~$tC(i%W;u+v^*s`-)nhVJj=zoEU`UwC4 literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/AdminDao.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/AdminDao.class new file mode 100644 index 0000000000000000000000000000000000000000..9bac061536c31b3f97f483e12351753ac83a489f GIT binary patch literal 633 zcma)4ZBD{K6r6`hrCLP%;sBbI1nmK;BpUS>i9dRRrEHodWlKs6cr|}`01st+Z2@a4 ziNAI;^Jd<>ef#~{j*N>*od?{vHh0a(+&ck@B^pl7T)Cuj0SO_N+I&fY` z6X_=eE0%$pCo;|p34ME5wirpF3lFz9{84*JtaRWK%rFX+UTX(-wWNylb~RwP=anyK ziHh{xz#-wP97S%pBG0yz&{`6DA|My3~~u`gd#$SJMOo^P`y zH3)<~{uV%;*S?PiUkC;c7;k1MpC%(muu$6~Ewq`d;e?saFXnX3oU`sCuetmNf{d~k literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/AdminDaoImpl.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/AdminDaoImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..d985f3c7ac7c11acd83b178dce604d6c6a634b6b GIT binary patch literal 5126 zcmbuCdw3Mp8OGm9c6TPb6NE*Cv7n29O&}p?3)qBP0s<+?DlA~5l{&jSgn`ZOx)(yI zEu~&6Dy2n*f)$lk=^d?YVoWQ&N=t9nS_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r&OONXOG|PW8fH;kRLl@7H$e?iH zj}oKT2u*LsE%f+Kt`y+YtwNxRRrDf6yCBt38iPV0suF#dBamvSfq72m)nJ`#^utup zs2N&6NYfD{3@y5&A6*q#R7LaleiW%~m}a+QMrigprcU$Sj#(XjPve9E%<7m@WrU50 zp&JwWu!mAr58&30===L{*C`|PBHE0QD{o6m1Z6RA1Q=IE4OCyDDqOePOsb9|T zX3E+^fmUJ*FVr@!M~Sm{vGqQRyPv`yrl992<*O7?VDLc#z!du!T)+n?z9^~-xL0CO z!Lb4j0pke?M2MdENFY@DO=BNd*QDqBxoQ>tFGhiL!;GSi-s6ZcmYLX1OJ_uv;SO5W z?1|z5S`!#iwS*}kVOoc(K?YkTF(FC(N2FYyRMe`xo#9`oa=@x?VPAFiAkz{UK0~rK zfm_+nO;-AB9bo;4#2%D~z-#P@@OfYW4|eq7;WjeXUKc$i35(Y|G*P~s5r}@o!HB9x zk2;iuXnxc&Rhq{fQ=|E~V^$5|IG6o6feTNe?oSdXwHKe{kJgLN@F&!ZlSVlD`Cfcs zo)PXxUj=S50utV%gZoclVtfDxI>dp{hcBNZ?k^}fDkwbA5&f!cdYW6*S+qx}bU+>p zTQHSd>YygK@OcaWKm9fy4oMyiDa@l@i(rwIt<i9EGQ za@`{Rl}TkcPExUcswlYGEj!74*7SGEzz3J(7_Cy_<}4BaeWB_Wh92d-Z;wFZjEly1FNVhV#zNxe2Vg)1r o_!~syB_EBKeKcP2(Kzd)an48M0sQqMX#DLBpz(JiRe^u}7hmk>Jpcdz literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/BuyerDao.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/BuyerDao.class new file mode 100644 index 0000000000000000000000000000000000000000..fc3205bb41d40b1fbbc35d08df1a7190779e2b5c GIT binary patch literal 835 zcmbtSO;5r=6r4q%QpFDxMGu}dfyCI0wdLe&;VM0$ZI{?jjuwUV9BsO@ZD5a%{F_q3oDn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&LX0bn zkI^z1QMF2{UnTWqR1Pp$O(m5X<$tF32n{ifG{OL<^ACHcaz2i6U&fU>Ij`dPDttm^ zeKn((N-2h~aFue^5T#txhZ{;txzV+yQf_u_sgzs$aJ%fI)7~{wHG%M*R85V_=WdnH zq59c`Ot}orQYwjYgv`V)Wsg6<8bb zD>BpXq@b`Q1!~KmuW&cRps_GfIi$4olK4ei|iAnstl&iXo&zF3{Jq~d>ddqF}#eQQG(s9+drojVr&8Y0>4xqf=Yru{E9KjO~>*7YxtcmP#`VvE+)j8#hO^@b4We=rsS}5F|j;Wl)f&%b*ZVmq7+imqFDu|LDvx zj^-PE_%rMJc$zM+CeUu=4(sGF_j&g|`#v6*be#US>5x0s_>{Z0o7{^t3mDJSv=3=}?x&|0iUXeM-$Tlc4 zhZx^^ip&P1T&c)h%~;RC>l{0d5zprdx{{}(n=lvqN$UxW{un$>Ya)9GgirVpX5@w< zc;z6$Wt>8?QWAU_f&+v{FYPQO_z~m73sLi@n*aa+ literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/SellerDao.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/SellerDao.class new file mode 100644 index 0000000000000000000000000000000000000000..3c1d96b18bb9c3b4b233f20ea44a7bdcc126d2bd GIT binary patch literal 627 zcmaKp-A=+l5QWboQU$H}2k`++AW?hc9WmahNfQz=Ji*dVnkCCFS+=6D=7kU7Lm7wg zVr_gpM*b@#N-Cf$LVcxMV=mEVgvo-QW4XcgkcPftt3NGRx`v*1Bh1X>W}Xs6M_W zH1^7xNr0NbWs!!KZwsWAm*-@f&M25l;CAZ~J!jKA@mp@m$Eozxb1ET$W-E^44L1ik z7P$HkYY|eQ3+J0(a%sHs?~I$0CQq@akwAl!HUzP&Z*!N>lhVu+uFAZb^-vKI*x~Yl t3U|AU3T7P#*kgU4)iQsptQ_F*j}qdjpw!uOvZkEktmxtYbKY4(;|JF}s!;#{ literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/SellerDaoImpl.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/dao/SellerDaoImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..d4c19afa4674148ce98955fc87c7b525f2688eb7 GIT binary patch literal 5500 zcmd5<>3LR%J78lVtbN=P@#(vn~Tm{JNY-8V|NkNxpCv>)o8`({Q~;0PE;q;rc zyR+SeY;m;vs*#)RoNFMgAwKIu4dK;J(Qz-+(A<&Su0da4%G(h%qt$`|Q^RQkPSMWP z#zySQ)!C7Ptsyp0%4G}NvlU04{XyN`rD=Qvd<{OxI(lKjpw&1w?y8E}ePQk(g#5K$* zS4z8`yuH3uED{^1RMarP!}n6Xwa`8Nf{xD8u+}M7?TVXlif$=URcLoqi`g-|vpSY_ z3jAFfaSD7YXRFmcrAj`T*qtrZ>}p3}r}`vYu?UL|oUP#ub(RyoSV-U;X02SY%h`%O zmMZsBiP12xBXx?9w@X~z7M9mt3ve>H!osIyFe34I zILh$F7FNozCBp%%64Rv?R-s2j)ZT07YOcMloF`g}w+La9n}uf=);>w=7^vtPZdQraVQw$P6abdt^IhiYZ!rCPP~8WuFBqdvJe z$>VK8%D`p~?RB(<1_w6m&Dmukn1w5XL#DY`c9ao^JtmQ`voc?UF&0dZ&4iUY&5^@& z>b*OWRa9A1nPOZx{c=VEIY-;epA>%>(){VEjnQ*floZR|lFpWu&SsRLLwaJ`1}8#!$U;QDo6yXZf`4Y!Y%`& ztcLZp*WX%ja5Ga>wD(fUtgAar6lhePysRT9N+^>CWOz!n-hK+WlH_!SlvUM6R=E~x z*iFfaE_}&daH@qffi}TRht%0k+(v5oWy{1JBH=(}CO*UJu*Cl-TD(hoz}*@KP9^P` zem>4fa=VFpNzGJ|h0@6{Dj2kY=!sw6Bo%bGyoj38YhW#h^3N{|?tqSDc)*jazHkqRTeb>6HX0-^u>%6te6pYShhETt+IDuG22&<=byD zL5K1BOlMy*f=BSEfv;#dyHP9+4ZuH>g|A9U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5e-M1HGc9waH!v2Q1CK&cEy3F8xnPOq@1FR8Ung9R* literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/exception/BuyerException.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/exception/BuyerException.class new file mode 100644 index 0000000000000000000000000000000000000000..fc47326819f56c50db7e0e109115e66c8fb44acb GIT binary patch literal 459 zcma)&O;5r=5Qg7@La|g(5bq|&04Da}5#^xKQ{x5G`%*V`O}i!i@Z)EBBJto4@JAVE z3u@GhmzjBY-aIq2Z|^U!08TNmQ6ub!Y2xJ%Vxd*+$;VJG3YBW_tbCH$#iz7k5&C!H zUU;$4k@wXgG*6UP#gtGVjsk*pp590Yb!@n3ph@WZO3SMEVKDT+*O?WW($QoTn890SaED+gGS5X+4g6yzIJ30OLV2moO8uYb z9vMIOz(?^<0X44p7>+ipW6s36FKX+$;e7?N{xWv#!jc^=isb4&cg;Cmj4wU+tyckaR=96X9A z;cHq$4*F00ga1{K`6PCF$$#fjq&U?0Vm*A$dC`3|q{39iJVYbX;d86!1gRO;)Ww*W$+lY8>%8Y+cUI*%SN5WQCpAs_e1#SOyk3XknM5_FBZg!Gim6djK cxu};G<5QcxJX##0!p->hkwzi;VU@UY&FhvL{D7%|l!N^G}Cn>xZQzZr-fQLey z(*hE(u-y61pMU>nzrDY_0=Pimg~f0h=c!*j@ttC}p1cp-@WbTb<9VxV-vo zyRaGdANZ2{if4)cwZY(=%S@J2hQ?qRG1!;+TzF_;yNxCshHfA;aZ{x;q3`%i35H&f z$6Q5ROH*%}c6l!ghH>y8TN8%TJ}W|W(w6}F!1ZI7Zy7&T!N)S^{;4N=~q$_R8Q l8i6U1hIK|KD|CM%6e%cOu$s7|bSm2uITH|{1q(nd z_y9f%aV9N_Dzab}=RRicxySeV*Y6)c0X#)7L`Bd}ZJx|Ns%c@eBv+cw!3Uo(a~vy^$bzVUKi#HPm9PV?(exFok|I&&Rrar^cBUGzK4&>d$x&*#qO%IPC|sWZ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qnl!Y< zXJRohQD`!bBQrSNLBi#}|H<*H3eGZ&##3J9PBY`TxU*DuEfr_bo5clOQgD&v*bS?p zAD0>Ccc8hQPN5^uu_{w=g<;=Tc{T%G2u-UhybR_@tSI&QQfL^$_uqz=wU$>ggL#>+ zNfpP@L%22^wxntui$cEHtw)gGCLuafhLcyRNXS3{yJ};^8E-8+Z6MBZY zZOR$Y-#LM%C0}YA>Kd9|4Bc{e&|4B2DD;;*z&JhSFU`I|{YozhXmsz2wtLVM?MQPP zA1xD|p3*2ixq-d^n`n`V)&!srIRbW5$+nDH8Y$udR5vlOx{jd@jNV_z;oMjQhuXlk25vQQmrTB(_ezSskE9y7 zPwTJ5VhSacsYa4fSkuVT*?n}+5vP6(V-R@^kqRS(9K~fEB>Z7KC*2I18#4U!#5apo zJj5ef4U@0OgrOOVYj{F$39`I|r*uk^?6P=9_Y~nlJ`;avJEdSi!Hej+0H&ZQ<#|Pb H1YZ9I!v2fr literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/LoginSellercase.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/LoginSellercase.class new file mode 100644 index 0000000000000000000000000000000000000000..f11adee7c1040d0a2df79db02f037874f95c1553 GIT binary patch literal 1640 zcmZ`(c~jFs6#s2oNJ)c2sREu=Kq(3lZv@2yP^91ytl~AZq-%|)NhXKKC-QG`ri?P< z2k=9wZ_{>YIeKjJ-u~X(-@EqD-(SB0+{9Z235H?Qt?I#N?m3pNM}aVTAOgMURxHO5 zwk>?AP>^Ei`M^JM-R4e3f3*HVm?1-F5JMOSi>+?f1$Xqi^)y3z#y1W#>%nMnw`m8V(>$uEO_L zz;LGR`2C_FE*X0}Fa?JgdgGv?kb*Z%?l{8lLO%u-473God<{ZT)o=ty84{MmaHtqt zTCTq6cu{DCzTnkq6*(N2+)gkIjP403l;jC{4X1FLGU7&*$8BeieamS&OJkTaG4F)J z&xh|tp5pQyUKJ|NU{t|bhQ20;7B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W*yBRILn$u3#_}c+;SnA)?-JUK+9n;V_#ICurI_(4s+1;} j^ETyer0H`NJ9tKxYy9;&ej#CdB(ug>gVA;7O5w$4)5lJC literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RegisterBuyercase.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RegisterBuyercase.class new file mode 100644 index 0000000000000000000000000000000000000000..afb00419c24c3c49b7829caa1f59109bad334bd8 GIT binary patch literal 1422 zcma)5+j0{}5IrMHT1j4f$9T=nA+eDFvw#U95@0Y_8(}~K7w|yUNS+c4+FjM|%7mBX zo5F)!!BzQyd{ioDRuWnlJmh7jyQjP7^y%(@{{8YdfSY(}ASJNU^j$mrC_A3hw!5Kf z%20)NO|_gbQo%;|lM1xSKw4nxz1)*_TY4?~Y2&?WMgrLzj^{+T1jdS`9f9;+e^(VS zhP;UkvI3J;$5Y!~x1oX;ve8xoGgZGS+dDFFv_3GVqjydyP^|txG!=m(K@y^YDS_!2 zUN>SP^``VZ73494IRmqYpw~aKGS|dW%nPI(PvB@Zj&yu`)9ZAjdK4(>RtlKJf-b`n zSSWtirL?1eIBwzuPLcw@OGZY?o&}CKOqRoGfr4%DEMRnWmbOMYz!39KjE>i;ly)@AvnGltk$q47Mg()kQXg&7Gl%o+#t49NrPIz~ zmDG%kuHSIlDhHcw8d*Cs3_tq8u7S$}Cz2i7mA)O1$UW(Ax}A0bmykDbRbW2p)=<*x z`xUT;ygq(0ab1^}3stnyCu0p|6P2$iw2w~+r+;L38CcD&UH924$#I#1Q$9l9JgXRciVwSljecUW} zh?H*)y;}l{hh{zrmB~eer5tidAmwnlDhy?d-xunBH)yH{Y#+)0W_>Sea2z)dDR&=8 zQR05`G^p9U1@FwcedPX(p9?(oGmytPPqXj9`$%k?7zT?qrp(dy#{ni^f5!Aajy?X2 z#hFt*ES>9NrK%MQvGPPK7Y53da{2(5Uhm^dIdgzD3O|>#R`z@k*Q_i9ezmfz zJ>0OeR=S6ED`REZgE=gNIYzLzxRPL($1#OjOk;uP66Uasd930XuE0VWi@43L z-NY%>a2l`Z@s|AT;tW1;@%FHS-*GlBy~gs!5#b>oG4BFejM^d{%Xovwlv2$21XW67 k%(+f^3u*dX!#19h*wP^;pU}o*?7=b=Kk{rqn z{HAi@3}l8Mz>i{hSGKV|<${~lo};rz&%Wmzefs?2BYjD$S(vCp-Rrih$A9SzJxoXGkhQM#pbeN;{fz)kF~`>hG(6Nw82X^=L;Ub2!U-3;~oU9XE$H zN;7nNLBnxX4mJxl^tNRby$Zrz0~ZC3jn-&a26nGYZp&cPYr6$pK;FPF0*j+@4JG}4 zU;*pM>*Y5SSM&vQk&5d*Io44&QTgiBggWw?iR;=~(2+ev?Y?2+rgod!Jz$)~E!;71 zTfiCx7y~sig}VZ4#j$=HVXS;ZKekHLWTkq_jy4&)F|GM^a}P(PUm$@@qBLivN6rfm zSm}$B5feB%hB8LW^n$}-jYW*YvPV1>MY2VLLOtk&O?8)5WC{L1$mca6+m6l3-vE%} zj+4sOpk?zZ_{^NyNAADmb%CpX4dgM&)$9fE`9tEH8XOkuOqrwa?E$8ryu<817Vo{o zk-6htET8G(=c+ciNsRm2IM+9}wQ;_0l+y>e@MIsC%9#VKbMtFCYh}-NaoNi9!0%Re zt&6Kx)=GD=VP&lBd;F0?*FT*fvYP~{rG`VfCpusw=d<6DEL>&%tHqc1g`R6YOz literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RemoveItemfromList.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/RemoveItemfromList.class new file mode 100644 index 0000000000000000000000000000000000000000..22452353faa0ecacd684921338fd7ac587566167 GIT binary patch literal 1273 zcma)5TT|0e5dKbE2u;JKFpM-qM7J0Qi{VS%mKDpX`6b`ws#y?` z#EqbcQHFH(+K^m1$S@}17H(4m>>9P_57@4&TTQSoj5CaFT0VC({sGUFsD~NHwJSBv z&sbr1MBK%F0rwdCn{-+bBs{Qs0xF5=g zVJNF8xq81^$%$CRGXYN-@~v?ESmTbb+g5|iZoMg+O}B&smMBA&``g^})G8@xAbSly z4b#)8dG*Y#G9azQJjb$0taa@&jJD~ltrHY2n9WS7t96j$ zry+Q;WY=7cZ|T8G3}0QpnLq>>r)flKc^TrtNXUwiO^X$J0Ga-byd9J05KqEuiN2ko zGmdVurFsB*&`YN{`Ys>;Am|wR)-I6TJ4OFFMqZ!dW-4=rJCkR~E?pqMcaE9u{OBp< zFL)Hi4&6`F^=I@n%qMg@p%fWX%RG%ZN(n(?jnlUm3DRRfQb^ODWN784$eP6n7BGrc zjD-Z}sImlkma#%_(#YX?SU`rVU&R_#JVh11z&c?sK*R<%$=agW0YrXL(x`wW69|_+ Niz0D(Np}&v`V9(3Gp7Im literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.class new file mode 100644 index 0000000000000000000000000000000000000000..610761db6a6e5c6faa11a850d5fc1efea8c5adc7 GIT binary patch literal 2303 zcmbtVYg5}s6g_JQ0;BMT5TL}NBn1L-nx>(x2`R5MH0IHo($e=@Ua&xxTuDyCFY4#y z15A>c{(w$@O@Bb!v$6r15QdqKXLh}J@4b8OxexvM&+9(`Jiu=T5&|=pS4s!ZWZAWy zbR|%h3{;TLDd}6qIk&KBt7q%JSEyJaPdVi{%FpjF$WZNg{=R`mfsS4IRHhy2?xff9 zyUGd$nr3X*4rc`##>O`V8W+5RN}>TRCN7~#pgn85YPC|zD}O`g9VO6}^(^UZO5fJ! zny@h}+JV4q_Wxka2=oN;aOPGQbsPpd1Ue(^m5{OLEa|$+Z$TG&40PAUmD>+ORWi|w zK7oYo3iM_pOWR8?yX8ul3w;=bTla1E z$XPS4k(VVmRDLQfs+3hDJ&Egh-@u4K_YsDenTb){5HQNxlcSN=a6}0rPTSqdjBjeB zAD9@!IMd^*=S0ynHeN*>*EDcTU?|RiL3-)=%D(a!rMFxvJ4sBSr4_ev$3U84zf0G| zhqx;+92C8CDoSAVEWA}b5?3TJ_a8^M3iLp=VC{nW=j_ zucRBXaeCk^ZmeZy>GyIjl-AygEJyRfz(#$OMzt-_?8s8SAV=>AOpRUq0iD$A_)hoF z)~T+kjx}}-!{$7ixVTdmLC&lAmU?9CDK~k+xq4e?i^0u%UKoVFEU&1r=oNw_ens8@ zuSQPtX}eFoJ(bQzQBzTFODp7XHesP4&{{eX3H%lBu9{`l`D5u892JaaJ#Vj4&b(bP zF-e`_2J;(NzxZYK$@6XFGpXizK{`&(4ppYT3BPn;D+z(3iEpq;!A=L5CUaTO@&!i* z{F)gkv6bE;?5wa2cpOpZt8(I0Ibyl6i8zVCRp>7pSA(ZCcftMA#37nr@J|9suKF4< z(HgCh0#BEDYC+qv@!xdTNZI@wv~Rsc=OL~54sbL31`}I{m|U5>^$Jr7 ztWLegN5CsgC-6JkR;fF6fCtom!FN-1Fdb1+E# zAxvYKBPDS3o1Xw%PW{}{`RB!v-ti6?wxjQ3fr5cf2_uVRh=)~Rb!t9thp zC0|q0hs3{x(_o<8K+fPtLl~G%b|iK3sIAGnOOJwkGXr6~-=5}gFhZq$QwQJU2ks5{ ck!u1!;b-ppPEocE8@t$}L|2Fd7iC=i59Z)+8UO$Q literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/SearchAndViewSellProduct.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/SearchAndViewSellProduct.class new file mode 100644 index 0000000000000000000000000000000000000000..01e2e7679ef2983e85e65f87fd53f0844dfe65fe GIT binary patch literal 2172 zcmb7F>sAw26#h;KObDaIfEX!CuxJSaW7SIAAgu&cYPi(IwDf*5Igo+LOx9e)JW+q^ z4_NA2eSoe$MxUc~pP57^2->b$>ztW=_TJ~)-@eSB|GfGGz+E&H#299EyP>)JylEMx z=DR}Yu5h)I;ErCuX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cWC_Ydpi?r24^{+7H+>lIvx`LQvByeCO3e| zui$O#BQkrTv~or?H3?ilBuM5Q~jx zC(my5QPe{`bKJ8D4A66!ek1fB#Tv%&j4v_t1ro{P5$@vwts%_eVM1+!*%tYiV&p|E qVVN~%NoxhGq_oDEHAZQ$7}bx|cRpx3dW6s^avrmBPag9zh4mi~cu&#* literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/UpdateSellerProductbyQuantity.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/UpdateSellerProductbyQuantity.class new file mode 100644 index 0000000000000000000000000000000000000000..d91668f5ca19881762a6fe8c83b107e789c25d69 GIT binary patch literal 1396 zcmb7ETT|0O6#ljZLfeQ?ZUsaNina*E`vvfB!AS8|?Tn90x&y&>6O)a?FY;L)WRw|y zfIrCx^(1YfjJNS+yJvGQ-*?V;`t|$gF92?$q$9y_(RS-*@Q!=ZshMFQY#xZfeCbuW z5@k`V3ID0@Rzq8@?>q~+RF2xwp)vGs@weQpak*hWS>F=2V(1QHf2Yd8EQYQnM>^^j zLr1<)VbJcoRgppm(gt*NGaN5DQaldp>%xD**K2|yQ*v!yt8m|m?B=7UHl2Xsa_Rqp zE;0;+ZA{*Tk~aus82VxYp(5I4n@cJDBnB{~WAF&M@=l;c-M}!i3<*av43^?Z$2BeK zg{rK4!Rw1D^kFn&HpY<6|JJ2Yi7Jd6IEe}BiW^eT4wF6g9ob6OjY-Ncr;2il%v8^mg zaA;IkH|7{d4~sYFpL=sKev@ImeHvBnnhmWy;I38oYAMVkodl`NKqtD=xQweht}u-J zG0ea_WszSR;EdqevSV@Gs)q%#z#*IPw1zfz*L zAvE(x68wt~JRj)?lQgIf`b%I)M$@8Og6_1V z@e5$mFQeDanLVUF#Geg1yW+{d*W$-NlJa z?jxpVJ|e#q8M95}=04_M?cx06xf5f%xbO*=G%RT3F`|*jd-NU{H^}}#Mdxr2MUp}X zK|rKBI(z8sML!8VOJ|ODZW=@6IYNG;^bV(7PsNE#1u8+Rx+i$&axsZCS1 zdvr@sw7Ka zwjbbV&*=~7>2I=~y9ss!;_=IUnLG2$%ri6h?>Ddi0&okzYDh7dj%-`u3*PZv&+3N4 z;h_kvx+`8h6)iW6M6l646oE}g4QYn_bAG@rkNYj_apSpgB8HJQ*LS0JhM`iq&XBIk zrqD5jtbt*SFyw647mvE_h6r|e!xIbzTRPmU^T1X2zAzo_xgo=K`@yIgLyJD!dlvZI*5l!i%$ne%iFT*NfP*a5NdHhYS?RJP;nyAg4v z7^!4&370j@4)9VtB-+{ruHYl$M0Saysh*)LttWx&N3|#ryj{uQD#L_nnhL8ZcZ;zz zy6d=xk2TEGYwU2)&cFf|8MKaq@_a%s_2A>G5Vq^LD&=~Cs{Dz863SE}?l_`Dfm|KP zVYll$kt=d42$;=prxhg8d>_Dp|t4)oOR*gY* zIbAXaM#xJ8rsu^(Fc$|~^{{i&uI4G=wE@J2;Qa(E>x42^i@3AD%{%>G&v?AuX!3;> zhRdb%3>Agfu%XIbJyqo1=uwd=8=9G!^B{=Nn(PLSxaX?5n|96u@YUG79OI5e=0M+~Fw|3wV{Bpb7D*#p1N z{iY|v1zXDfZl`j#e-n}c!yT$XQvJgpdoJH^+aK^`rd95FH8&EK+z7VvsOn&NYT!HE zCczJR+-5Mgd|w1rkB9VkYWRs^@eE<_N?XG-hPn5v((Lv)qE?{agk~DF(hOjPR*h~J z?Tq$e^B9?zbVxy`RXu}FqqG`51=`2xmc{s6<73iJk!AU9nQtkSkNdPMf*zCX32NBEk0eoLuH$F?f=mAaS*+ia literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/ViewRegisterSellerList.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/usecases/ViewRegisterSellerList.class new file mode 100644 index 0000000000000000000000000000000000000000..8c87f33d8a4707fac5961bcb448851423543b1cf GIT binary patch literal 1802 zcmb7ETXWM!7(MGak>iNi4TM~P5NIfNTo9%AI!OT&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`|hyim2Q8AJ64qu(5#~7OpcaPg%5HdC%VY z!9agLi_Jvg0rgQW#r@aElKZ5v>61WIb*V5ksgVrz7-qw~pvu6gx-={Mvm5E3OPVzK zAQ_s43PWMaY^H;S-M?04g3e&K;*s=&=R$9Roov;W9k1l>skQ#J_9XX5MuH!gMUr{{zfJ}4mGp4?U1C|<-;(rc6Q46?ScO?hb)u!Ea~;=sf$+@{za@)uzI Vq9VgW*+Lb}!iGsndlWKo_cx4{%sBu6 literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/bin/com/swapnil/utality/Main.class b/muddled-can-9800/muddled-can-9800/bin/com/swapnil/utality/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..bd971dafde7dc1674fe57ef4ae314ce067b2472c GIT binary patch literal 673 zcmZ`$%T60X5Ueo^iA$L5hIfxtSE*bgwtg(%8l^N^hQ!fCvWoI$%g&Uy^uv&bPq z9QXh}3Q=RDI7H;qGu1s^Q`LQSeQ^ok4I&>Efz{OH@!&-E3!TM7D>H3Rgr7R`$R)8mX=HsbAZ6x__ImB~p2>5;1kx@iF`pemP!gNOGvg~m>wR?=Sn9{}{ z0sqJs2-;>?rs}uYP0pY*Y>yU71PDF^0GI z5D$o|n8yM$uK5GWD(=NO7L%W7y#9s96OQ@OhXFh?%(2&THOBAp0-Ho0X0e5rWE0pX Hu3+Z|mO7WR literal 0 HcmV?d00001 diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Admin.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Admin.java new file mode 100644 index 0000000..f6b88ae --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Admin.java @@ -0,0 +1,87 @@ +package com.swapnil.bean; + +public class Admin { + + private int aid; + private String aname; + private String amail; + private String amobile; + private String apassword; + + + public Admin() { + super(); + } + + + public Admin(int aid, String aname, String amail, String amobile, String apassword) { + super(); + this.aid = aid; + this.aname = aname; + this.amail = amail; + this.amobile = amobile; + this.apassword = apassword; + } + + + public int getAid() { + return aid; + } + + + public void setAid(int aid) { + this.aid = aid; + } + + + public String getAname() { + return aname; + } + + + public void setAname(String aname) { + this.aname = aname; + } + + + public String getAmail() { + return amail; + } + + + public void setAmail(String amail) { + this.amail = amail; + } + + + public String getAmobile() { + return amobile; + } + + + public void setAmobile(String amobile) { + this.amobile = amobile; + } + + + public String getApassword() { + return apassword; + } + + + public void setApassword(String apassword) { + this.apassword = apassword; + } + + + @Override + public String toString() { + return "Admin [aid=" + aid + ", aname=" + aname + ", amail=" + amail + ", amobile=" + amobile + ", apassword=" + + apassword + "]"; + } + + + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Buyer.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Buyer.java new file mode 100644 index 0000000..0d130e3 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Buyer.java @@ -0,0 +1,73 @@ +package com.swapnil.bean; + +public class Buyer { + + + private int bid; + private String bname; + private String bmail; + private String bmobile; + private String bpassword; + + public Buyer() { + super(); + } + + public Buyer(int bid, String bname, String bmail, String bmobile, String bpassword) { + super(); + this.bid = bid; + this.bname = bname; + this.bmail = bmail; + this.bmobile = bmobile; + this.bpassword = bpassword; + } + + public int getBid() { + return bid; + } + + public void setBid(int bid) { + this.bid = bid; + } + + public String getBname() { + return bname; + } + + public void setBname(String bname) { + this.bname = bname; + } + + public String getBmail() { + return bmail; + } + + public void setBmail(String bmail) { + this.bmail = bmail; + } + + public String getBmobile() { + return bmobile; + } + + public void setBmobile(String bmobile) { + this.bmobile = bmobile; + } + + public String getBpassword() { + return bpassword; + } + + public void setBpassword(String bpassword) { + this.bpassword = bpassword; + } + + @Override + public String toString() { + return "Buyer [bid=" + bid + ", bname=" + bname + ", bmail=" + bmail + ", bmobile=" + bmobile + ", bpassword=" + + bpassword + "]"; + } + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/BuyerProoduct.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/BuyerProoduct.java new file mode 100644 index 0000000..a873d37 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/BuyerProoduct.java @@ -0,0 +1,115 @@ +package com.swapnil.bean; + +import java.sql.Date; + +public class BuyerProoduct { + + private int bpno; + private int bid; + private int spno; + private int minprice; + private Date buydate; + private String bpcategory; + + + + public int getBpno() { + return bpno; + } + + + + public void setBpno(int bpno) { + this.bpno = bpno; + } + + + + public int getBid() { + return bid; + } + + + + public void setBid(int bid) { + this.bid = bid; + } + + + + public int getSpno() { + return spno; + } + + + + public void setSpno(int spno) { + this.spno = spno; + } + + + + public int getMinprice() { + return minprice; + } + + + + public void setMinprice(int minprice) { + this.minprice = minprice; + } + + + + public Date getBuydate() { + return buydate; + } + + + + public void setBuydate(Date buydate) { + this.buydate = buydate; + } + + + + public String getBpcategory() { + return bpcategory; + } + + + + public void setBpcategory(String bpcategory) { + this.bpcategory = bpcategory; + } + + + + public BuyerProoduct() { + super(); + } + + + + public BuyerProoduct(int bpno, int bid, int spno, int minprice, Date buydate, String bpcategory) { + super(); + this.bpno = bpno; + this.bid = bid; + this.spno = spno; + this.minprice = minprice; + this.buydate = buydate; + this.bpcategory = bpcategory; + } + + + + @Override + public String toString() { + return "BuyerProoduct [bpno=" + bpno + ", bid=" + bid + ", spno=" + spno + ", minprice=" + minprice + + ", buydate=" + buydate + ", bpcategory=" + bpcategory + "]"; + } + + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductAndSellerDTO.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductAndSellerDTO.java new file mode 100644 index 0000000..46809f1 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductAndSellerDTO.java @@ -0,0 +1,218 @@ +package com.swapnil.bean; + +import java.sql.Date; + +public class SellProductAndSellerDTO { + + private int sid; + private String sname; + private int spno; + private String spname; + private String spcategory; + private int spprice; + private int spquantity; + private boolean availability; + private Date startingdate; + private Date enddate; + + + + + + public SellProductAndSellerDTO() { + super(); + } + + + + + + public SellProductAndSellerDTO(int sid, String sname, int spno, String spname, String spcategory, int spprice, + int spquantity, boolean availability, Date startingdate, Date enddate) { + super(); + this.sid = sid; + this.sname = sname; + this.spno = spno; + this.spname = spname; + this.spcategory = spcategory; + this.spprice = spprice; + this.spquantity = spquantity; + this.availability = availability; + this.startingdate = startingdate; + this.enddate = enddate; + } + + + + + + public int getSid() { + return sid; + } + + + + + + public void setSid(int sid) { + this.sid = sid; + } + + + + + + public String getSname() { + return sname; + } + + + + + + public void setSname(String sname) { + this.sname = sname; + } + + + + + + public int getSpno() { + return spno; + } + + + + + + public void setSpno(int spno) { + this.spno = spno; + } + + + + + + public String getSpname() { + return spname; + } + + + + + + public void setSpname(String spname) { + this.spname = spname; + } + + + + + + public String getSpcategory() { + return spcategory; + } + + + + + + public void setSpcategory(String spcategory) { + this.spcategory = spcategory; + } + + + + + + public int getSpprice() { + return spprice; + } + + + + + + public void setSpprice(int spprice) { + this.spprice = spprice; + } + + + + + + public int getSpquantity() { + return spquantity; + } + + + + + + public void setSpquantity(int spquantity) { + this.spquantity = spquantity; + } + + + + + + public boolean isAvailability() { + return availability; + } + + + + + + public void setAvailability(boolean availability) { + this.availability = availability; + } + + + + + + public Date getStartingdate() { + return startingdate; + } + + + + + + public void setStartingdate(Date startingdate) { + this.startingdate = startingdate; + } + + + + + + public Date getEnddate() { + return enddate; + } + + + + + + public void setEnddate(Date enddate) { + this.enddate = enddate; + } + + + + + + @Override + public String toString() { + return "SellProductAndSellerDTO [sid=" + sid + ", sname=" + sname + ", spno=" + spno + ", spname=" + spname + + ", spcategory=" + spcategory + ", spprice=" + spprice + ", spquantity=" + spquantity + + ", availability=" + availability + ", startingdate=" + startingdate + ", enddate=" + enddate + "]"; + } + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductDTO.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductDTO.java new file mode 100644 index 0000000..bf74f96 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellProductDTO.java @@ -0,0 +1,115 @@ +package com.swapnil.bean; + +import java.sql.Date; + +public class SellProductDTO { + + private int spno; + private String spname; + private String spcategory; + private int spprice; + private Date startingDate; + private Date endDate; + + + + public SellProductDTO() { + super(); + } + + + + public SellProductDTO(int spno, String spname, String spcategory, int spprice, Date startingDate, Date endDate) { + super(); + this.spno = spno; + this.spname = spname; + this.spcategory = spcategory; + this.spprice = spprice; + this.startingDate = startingDate; + this.endDate = endDate; + } + + + + public int getSpno() { + return spno; + } + + + + public void setSpno(int spno) { + this.spno = spno; + } + + + + public String getSpname() { + return spname; + } + + + + public void setSpname(String spname) { + this.spname = spname; + } + + + + public String getSpcategory() { + return spcategory; + } + + + + public void setSpcategory(String spcategory) { + this.spcategory = spcategory; + } + + + + public int getSpprice() { + return spprice; + } + + + + public void setSpprice(int spprice) { + this.spprice = spprice; + } + + + + public Date getStartingDate() { + return startingDate; + } + + + + public void setStartingDate(Date startingDate) { + this.startingDate = startingDate; + } + + + + public Date getEndDate() { + return endDate; + } + + + + public void setEndDate(Date endDate) { + this.endDate = endDate; + } + + + + @Override + public String toString() { + return "SellProductDTO [spno=" + spno + ", spname=" + spname + ", spcategory=" + spcategory + ", spprice=" + + spprice + ", startingDate=" + startingDate + ", endDate=" + endDate + "]"; + } + + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Seller.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Seller.java new file mode 100644 index 0000000..cb0cee7 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/Seller.java @@ -0,0 +1,85 @@ +package com.swapnil.bean; + +public class Seller { + + private int sid; + private String sname; + private String smail; + private String smobile; + private String spassword; + + + public Seller() { + super(); + } + + + public Seller(int sid, String sname, String smail, String smobile, String spassword) { + super(); + this.sid = sid; + this.sname = sname; + this.smail = smail; + this.smobile = smobile; + this.spassword = spassword; + } + + + public int getSid() { + return sid; + } + + + public void setSid(int sid) { + this.sid = sid; + } + + + public String getSname() { + return sname; + } + + + public void setSname(String sname) { + this.sname = sname; + } + + + public String getSmail() { + return smail; + } + + + public void setSmail(String smail) { + this.smail = smail; + } + + + public String getSmobile() { + return smobile; + } + + + public void setSmobile(String smobile) { + this.smobile = smobile; + } + + + public String getSpassword() { + return spassword; + } + + + public void setSpassword(String spassword) { + this.spassword = spassword; + } + + + @Override + public String toString() { + return "Seller [sid=" + sid + ", sname=" + sname + ", smail=" + smail + ", smobile=" + smobile + ", spassword=" + + spassword + "]"; + } + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellerProduct.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellerProduct.java new file mode 100644 index 0000000..91ae207 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/bean/SellerProduct.java @@ -0,0 +1,124 @@ +package com.swapnil.bean; + + +import java.sql.Date; + + +public class SellerProduct { + + private int spno; + private String spname; + private String spcategory; + private int spprice; + private int spquantity; + private int sllerid; + private boolean availability; + private Date startingdate; + private Date enddate; + + public SellerProduct() { + super(); + } + + public SellerProduct(int spno, String spname, String spcategory, int spprice, int spquantity, int sllerid, + boolean availability, Date startingdate, Date enddate) { + super(); + this.spno = spno; + this.spname = spname; + this.spcategory = spcategory; + this.spprice = spprice; + this.spquantity = spquantity; + this.sllerid = sllerid; + this.availability = availability; + this.startingdate = startingdate; + this.enddate = enddate; + } + + public int getSpno() { + return spno; + } + + public void setSpno(int spno) { + this.spno = spno; + } + + public String getSpname() { + return spname; + } + + public void setSpname(String spname) { + this.spname = spname; + } + + public String getSpcategory() { + return spcategory; + } + + public void setSpcategory(String spcategory) { + this.spcategory = spcategory; + } + + public int getSpprice() { + return spprice; + } + + public void setSpprice(int spprice) { + this.spprice = spprice; + } + + public int getSpquantity() { + return spquantity; + } + + public void setSpquantity(int spquantity) { + this.spquantity = spquantity; + } + + public int getSllerid() { + return sllerid; + } + + public void setSllerid(int sllerid) { + this.sllerid = sllerid; + } + + public boolean isAvailability() { + return availability; + } + + public void setAvailability(boolean availability) { + this.availability = availability; + } + + public Date getStartingdate() { + return startingdate; + } + + public void setStartingdate(Date startingdate) { + this.startingdate = startingdate; + } + + public Date getEnddate() { + return enddate; + } + + public void setEnddate(Date enddate) { + this.enddate = enddate; + } + + @Override + public String toString() { + return "SellerProduct [spno=" + spno + ", spname=" + spname + ", spcategory=" + spcategory + ", spprice=" + + spprice + ", spquantity=" + spquantity + ", sllerid=" + sllerid + ", availability=" + availability + + ", startingdate=" + startingdate + ", enddate=" + enddate + "]"; + } + + + + + + + + +} + diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDao.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDao.java new file mode 100644 index 0000000..3e8c8a4 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDao.java @@ -0,0 +1,21 @@ +package com.swapnil.dao; + +import java.util.List; + +import com.swapnil.bean.Admin; +import com.swapnil.bean.Buyer; +import com.swapnil.bean.Seller; +import com.swapnil.exception.AdminException; +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; + +public interface AdminDao { + + public String registerAdmin(Admin admin); + + public Admin loginAdmin(String username ,String password) throws AdminException; + + public List viewSellerList() throws SellerException; + public List viewBuyerList() throws BuyerException; + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDaoImpl.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDaoImpl.java new file mode 100644 index 0000000..c09b835 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/AdminDaoImpl.java @@ -0,0 +1,163 @@ +package com.swapnil.dao; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.List; + +import com.swapnil.bean.Admin; +import com.swapnil.bean.Buyer; +import com.swapnil.bean.Seller; +import com.swapnil.exception.AdminException; +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; +import com.swapnil.utality.DUtil; + +public class AdminDaoImpl implements AdminDao{ + + + @Override + public String registerAdmin(Admin admin) { + // TODO Auto-generated method stub + String massage ="Not register"; + + + + try(Connection conn=DUtil.provideConnection()) { + PreparedStatement ps=conn.prepareStatement("insert into admin(aname,amail,amobile,apassword) values(?,?,?,?)"); + + ps.setString(1, admin.getAname()); + ps.setString(2, admin.getAmail()); + ps.setString(3, admin.getAmobile()); + ps.setString(4, admin.getApassword()); + + int x=ps.executeUpdate(); + if(x>0) { + massage="Register Successfully"; + } + + + } catch (SQLException e) { + // TODO Auto-generated catch block + massage=e.getMessage(); + } + + + return massage; + } + + @Override + public Admin loginAdmin(String username, String password) throws AdminException { + Admin admin=null; + + try(Connection conn=DUtil.provideConnection()) { + PreparedStatement ps=conn.prepareStatement("select * from admin where amail=? AND apassword=?"); + + ps.setString(1, username); + ps.setString(2, password); + + ResultSet rs=ps.executeQuery(); + + if(rs.next()) { + + int id=rs.getInt("aid"); + String aname=rs.getString("aname"); + String amail=rs.getString("amail"); + String amobile=rs.getString("amobile"); + String apassword=rs.getString("apassword"); + + String s="********"; + admin=new Admin(id, aname, amail, amobile, s); + + + + }else { + throw new AdminException("Invalid username or password..."); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new AdminException(e.getMessage()); + } + return admin; + } + + @Override + public List viewBuyerList() throws BuyerException{ + List list=new ArrayList<>(); + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("select * from buyer"); + + ResultSet rs=ps.executeQuery(); + + while(rs.next()) { + int bid=rs.getInt("bid"); + String bname=rs.getString("bname"); + String bmail=rs.getString("bmail"); + String bmobile=rs.getString("bmobile"); + String bpassword=rs.getString("bpassword"); + + Buyer b=new Buyer(); + + b.setBid(bid); + b.setBmail(bmail); + b.setBmobile(bmobile); + b.setBname(bname); + b.setBpassword("*****"); + list.add(b); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new BuyerException(e.getMessage()); + } + if(list.size()==0) { + throw new BuyerException("Not found "); + } + return list; + } + + @Override + public List viewSellerList() throws SellerException { + List list=new ArrayList<>(); + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("select * from seller"); + + ResultSet rs=ps.executeQuery(); + + while(rs.next()) { + int sid=rs.getInt("sid"); + String sname=rs.getString("sname"); + String smail=rs.getString("smail"); + String smobile=rs.getString("smobile"); + String spassword=rs.getString("spassword"); + + Seller s=new Seller(); + + s.setSid(sid); + s.setSmail(smail); + s.setSmobile(smobile); + s.setSname(sname); + s.setSpassword("*****"); + list.add(s); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new SellerException(e.getMessage()); + } + if(list.size()==0) { + throw new SellerException("Not found "); + } + return list; + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDao.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDao.java new file mode 100644 index 0000000..b2e00e5 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDao.java @@ -0,0 +1,26 @@ +package com.swapnil.dao; + +import java.util.List; + +import com.swapnil.bean.Buyer; +import com.swapnil.bean.BuyerProoduct; +import com.swapnil.bean.SellProductAndSellerDTO; +import com.swapnil.bean.SellProductDTO; +import com.swapnil.bean.SellerProduct; +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; +import com.swapnil.exception.SellerProductException; + +public interface BuyerDao { + + public String registerBuyer(Buyer buyer); + + public Buyer loginBuyer(String username,String password) throws BuyerException; + + public String BuyProduct(BuyerProoduct bp) throws BuyerException ,SellerException; + + public List showProductbyCategory(String spcategory) throws SellerProductException; + + public List showProductAndSellerbyCategory(String spcategory) throws SellerProductException,SellerException; + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDaoImpl.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDaoImpl.java new file mode 100644 index 0000000..36fc98f --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/BuyerDaoImpl.java @@ -0,0 +1,198 @@ +package com.swapnil.dao; + +import java.sql.Connection; +import java.sql.Date; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.List; + +import com.swapnil.bean.Buyer; +import com.swapnil.bean.BuyerProoduct; +import com.swapnil.bean.SellProductAndSellerDTO; +import com.swapnil.bean.SellProductDTO; +import com.swapnil.bean.SellerProduct; + +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; +import com.swapnil.exception.SellerProductException; +import com.swapnil.utality.DUtil; + +public class BuyerDaoImpl implements BuyerDao{ + + @Override + public String registerBuyer(Buyer buyer) { + // TODO Auto-generated method stub + + String message="Not register"; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("insert into buyer(bname,bmail,bmobile,bpassword) values(?,?,?,?)"); + + ps.setString(1, buyer.getBname()); + ps.setString(2, buyer.getBmail()); + ps.setString(3, buyer.getBmobile()); + ps.setString(4, buyer.getBpassword()); + + int x=ps.executeUpdate(); + + if(x>0) { + message="register successfully"; + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + + return message; + } + + @Override + public Buyer loginBuyer(String username, String password) throws BuyerException { + // TODO Auto-generated method stub + + Buyer buyer=null; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("select * from buyer where bmail=? AND bpassword=?"); + + ps.setString(1, username); + ps.setString(2, password); + + ResultSet rs=ps.executeQuery(); + + if(rs.next()) { + int bid=rs.getInt("bid"); + String bname=rs.getString("bname"); + String bmail=rs.getString("bmail"); + String bmobile=rs.getString("bmobile"); + String bpassword=rs.getString("bpassword"); + String bpass="*****"; + buyer=new Buyer(bid, bname, bmail, bmobile, bpass); + + }else { + throw new BuyerException("Inavlid username or password"); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new BuyerException(e.getMessage()); + } + + + return buyer; + } + + @Override + public String BuyProduct(BuyerProoduct bp) throws BuyerException, SellerException { + // TODO Auto-generated method stub + + String message="Not inserted"; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("insert into buyerproduct(bid,spno,minprice,buydate,bpcategory) values(?,?,?,?,?)"); + + ps.setInt(1, bp.getBid()); + ps.setInt(2,bp.getSpno()); + ps.setInt(3, bp.getMinprice()); + ps.setDate(4, bp.getBuydate()); + ps.setString(5, bp.getBpcategory()); + + int x=ps.executeUpdate(); + + if(x>0) { + message="Inserted"; + }else { + + throw new BuyerException("Not available"); + } + + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + + return message; + } + + @Override + public List showProductbyCategory(String spcategory) throws SellerProductException { + List list=new ArrayList(); + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("select spno,spname,spcategory, spprice,startingdate,enddate from sellproduct where spcategory=?"); + ps.setString(1, spcategory); + ResultSet rs=ps.executeQuery(); + + while(rs.next()) { + + int spno=rs.getInt("spno"); + String spname=rs.getString("spname"); + String spcategory1=rs.getString("spcategory"); + int spprice=rs.getInt("spprice"); + Date startingDate=rs.getDate("startingdate"); + Date endDate=rs.getDate("enddate"); + + SellProductDTO sell=new SellProductDTO(spno, spname, spcategory1, spprice, startingDate, endDate); + list.add(sell); + } + if(list.size()==0) { + throw new SellerProductException("List is empty"); + } + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new SellerProductException("Invalid sellproduct"); + } + + return list; + } + + @Override + public List showProductAndSellerbyCategory(String spcategory) + throws SellerProductException, SellerException { + List list=new ArrayList<>(); + + try (Connection conn=DUtil.provideConnection()){ + PreparedStatement ps=conn.prepareStatement("select s.sid,s.sname,sp.spno,sp.spname,sp.spcategory,sp.spprice,sp.spquantity,sp.availability,sp.startingdate,sp.enddate from seller s INNER JOIN sellproduct sp ON s.sid=sp.sellerid AND sp.spcategory=?"); + + ps.setString(1, spcategory); + ResultSet rs=ps.executeQuery(); + while(rs.next()){ + int sid=rs.getInt("sid"); + String sname=rs.getString("sname"); + int spno=rs.getInt("spno"); + String spname=rs.getString("spname"); + String spcategory1=rs.getString("spcategory"); + int spprice=rs.getInt("spprice"); + int spquantity=rs.getInt("spquantity"); + boolean availability=rs.getBoolean("availability"); + Date startingdate=rs.getDate("startingdate"); + Date enddate=rs.getDate("enddate"); + + SellProductAndSellerDTO sep=new SellProductAndSellerDTO(sid, sname, spno, spname, spcategory1, spprice, spquantity, availability, startingdate, enddate); + list.add(sep); + } + + if(list.size()==0) { + throw new SellerProductException("not available"); + } + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new SellerProductException(e.getMessage()); + } + + return list; + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDao.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDao.java new file mode 100644 index 0000000..6d01edc --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDao.java @@ -0,0 +1,24 @@ +package com.swapnil.dao; + +import com.swapnil.bean.Seller; +import com.swapnil.bean.SellerProduct; +import com.swapnil.exception.SellerException; +import com.swapnil.exception.SellerProductException; + +public interface SellerDao { + + public String registerSeller(Seller seller); + + public Seller loginSeller (String username,String password) throws SellerException; + + public String addSelling(SellerProduct sp) throws SellerException; + + public String updatePrice(int price,int spno,int sellerid) throws SellerProductException; + + public String updateQuantity(int quantity,int spno,int sellerid) throws SellerProductException; + + public String deleteItem(int spno,int sellerid) throws SellerProductException; + + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDaoImpl.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDaoImpl.java new file mode 100644 index 0000000..07afeae --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/dao/SellerDaoImpl.java @@ -0,0 +1,201 @@ +package com.swapnil.dao; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; + +import com.swapnil.bean.Seller; +import com.swapnil.bean.SellerProduct; +import com.swapnil.exception.SellerException; +import com.swapnil.exception.SellerProductException; +import com.swapnil.utality.DUtil; + +public class SellerDaoImpl implements SellerDao{ + + @Override + public String registerSeller(Seller seller) { + // TODO Auto-generated method stub + + String message="Not register"; + + try(Connection conn=DUtil.provideConnection()) { + PreparedStatement ps=conn.prepareStatement("insert into seller(sname,smail,smobile,spassword) values(?,?,?,?)"); + ps.setString(1, seller.getSname()); + ps.setString(2, seller.getSmail()); + ps.setString(3, seller.getSmobile()); + ps.setString(4, seller.getSpassword()); + + int x=ps.executeUpdate(); + + if(x>0) { + message="register Succesfully"; + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + + return message; + } + + @Override + public Seller loginSeller(String username, String password) throws SellerException { + // TODO Auto-generated method stub + Seller seller=null; + + + try(Connection conn=DUtil.provideConnection()) { + PreparedStatement ps=conn.prepareStatement("select * from seller where smail=? AND spassword=?"); + + ps.setString(1,username); + ps.setString(2, password); + + ResultSet rs=ps.executeQuery(); + + if(rs.next()) { + + int sid=rs.getInt("sid"); + String sname=rs.getString("sname"); + String smail=rs.getString("smail"); + String smobile=rs.getString("smobile"); + String spassword=rs.getString("spassword"); + String pass="********"; + + seller=new Seller(sid, sname, smail, smobile, pass); + }else { + throw new SellerException("Invalid username or password"); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + throw new SellerException(e.getMessage()); + } + return seller; + } + + @Override + public String addSelling(SellerProduct sp) throws SellerException { + // TODO Auto-generated method stub + + String message="Not inserted"; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("insert into sellproduct(spname,spcategory,spprice,spquantity,sellerid,availability,startingdate,enddate) value(?,?,?,?,?,?,?,?)"); + + ps.setString(1, sp.getSpname()); + ps.setString(2, sp.getSpcategory()); + ps.setInt(3, sp.getSpprice()); + ps.setInt(4,sp.getSpquantity()); + ps.setInt(5,sp.getSllerid()); + ps.setBoolean(6, sp.isAvailability()); + ps.setDate(7, sp.getStartingdate()); + ps.setDate(8, sp.getEnddate()); + + int x=ps.executeUpdate(); + if(x>0) { + message="inserted the sellproduct"; + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + + + return message; + } + + @Override + public String updatePrice(int price, int spno,int sellerid) throws SellerProductException { + // TODO Auto-generated method stub + String message="Not Updated"; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("update Sellproduct set spprice=? where spno=?"); + + ps.setInt(1, price); + ps.setInt(2,spno); + + int x=ps.executeUpdate(); + + if(x>0) { + message="Updated the price"; + }else { + throw new SellerProductException("Invalid Product Number"); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + return message; + } + + @Override + public String updateQuantity(int quantity, int spno,int sellerid) throws SellerProductException { + // TODO Auto-generated method stub + + String message="Not Updated"; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("update Sellproduct set spquantity=? where spno=?"); + + ps.setInt(1, quantity); + ps.setInt(2,spno); + + int x=ps.executeUpdate(); + + if(x>0) { + message="Updated the quantity"; + }else { + throw new SellerProductException("Invalid Product Number"); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + return message; + } + + @Override + public String deleteItem(int spno,int sellerid) throws SellerProductException { + // TODO Auto-generated method stub + +String message="Not Deleted"; + + Connection conn=DUtil.provideConnection(); + + try { + PreparedStatement ps=conn.prepareStatement("delete from sellproduct where spno=? AND sellerid=?"); + + + ps.setInt(1, spno); + ps.setInt(2,sellerid); + + int x=ps.executeUpdate(); + + if(x>0) { + message="Deleted the item"; + }else { + throw new SellerProductException("Invalid Product Number"); + } + + } catch (SQLException e) { + // TODO Auto-generated catch block + message=e.getMessage(); + } + return message; + + + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/AdminException.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/AdminException.java new file mode 100644 index 0000000..6e09760 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/AdminException.java @@ -0,0 +1,14 @@ +package com.swapnil.exception; + +public class AdminException extends Exception{ + + + public AdminException() { + + } + + public AdminException(String message) { + super(message); + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/BuyerException.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/BuyerException.java new file mode 100644 index 0000000..26c041a --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/BuyerException.java @@ -0,0 +1,15 @@ +package com.swapnil.exception; + +public class BuyerException extends Exception { + + + public BuyerException() { + // TODO Auto-generated constructor stub + } + + public BuyerException(String message) { + super(message); + } + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerException.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerException.java new file mode 100644 index 0000000..08c914f --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerException.java @@ -0,0 +1,15 @@ +package com.swapnil.exception; + +public class SellerException extends Exception{ + + + public SellerException() { + // TODO Auto-generated constructor stub + + } + + + public SellerException(String message) { + super(message); + } +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerProductException.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerProductException.java new file mode 100644 index 0000000..31ab2df --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/exception/SellerProductException.java @@ -0,0 +1,12 @@ +package com.swapnil.exception; + +public class SellerProductException extends Exception { + + public SellerProductException() { + // TODO Auto-generated constructor stub + } + + public SellerProductException(String message) { + super(message); + } +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/main/Main.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/main/Main.java new file mode 100644 index 0000000..e9c9b95 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/main/Main.java @@ -0,0 +1,16 @@ +package com.swapnil.main; + + + +public class Main { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + System.out.println("****Welcome to Automated Auction System****"); + System.out.println("********************************************"); + SelectionOption1.selectionchoice(); + } +} + + diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/main/SelectionOption1.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/main/SelectionOption1.java new file mode 100644 index 0000000..207d0d1 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/main/SelectionOption1.java @@ -0,0 +1,226 @@ +package com.swapnil.main; + +import java.util.Scanner; + +import com.swapnil.bean.Admin; +import com.swapnil.bean.Buyer; +import com.swapnil.bean.Seller; +import com.swapnil.usecases.InsertSellproduct; +import com.swapnil.usecases.Insertbuyerproduct; +import com.swapnil.usecases.LoginAdmincase; +import com.swapnil.usecases.LoginBuyercase; +import com.swapnil.usecases.LoginSellercase; +import com.swapnil.usecases.RegisterAdmincase; +import com.swapnil.usecases.RegisterBuyercase; +import com.swapnil.usecases.RegisterSellercase; +import com.swapnil.usecases.RemoveItemfromList; +import com.swapnil.usecases.SearchAndViewProductAndSellerbyCategory; +import com.swapnil.usecases.SearchAndViewSellProduct; +import com.swapnil.usecases.UpdateSellerProductbyPrice; +import com.swapnil.usecases.UpdateSellerProductbyQuantity; +import com.swapnil.usecases.ViewRegisterBuyerList; +import com.swapnil.usecases.ViewRegisterSellerList; + +public class SelectionOption1 { + Admin admin; + Seller seller; + Buyer buyer; + public static Scanner sc=new Scanner(System.in); + + public static void selectionchoice() { + System.out.println("Select the User"+"\n"+"1.Admin"+"\n"+"2.Seller"+"\n"+"3.Buyer"+"\n"+"4.Exit"); + + + int choice=sc.nextInt(); + + switch(choice) { + + case 1: + SelectionOption1 a=new SelectionOption1(); + a.selectionChoiceadmin(); + break; + case 2: + SelectionOption1 s=new SelectionOption1(); + s.selectionChoiceseller(); + break; + case 3: + SelectionOption1 b=new SelectionOption1(); + b.selectionChoiceBuyer(); + break; + case 4: + System.out.println("Thank you"); + sc.close(); + break; + } + } + public void selectionChoiceadmin() { + + System.out.println("Select the option"+"\n"+"1.Admin Login"+"\n"+"2.Register Admin"); + + int n=sc.nextInt(); + + switch(n) { + + case 1: + LoginAdmincase.login(); + admin=LoginAdmincase.admin; + if(admin!=null) { + selectionChoiceAfterAdmin(); + }else { + selectionChoiceadmin(); + } + break; + + case 2: + RegisterAdmincase.registerAdmin(); + SelectionOption1 s=new SelectionOption1(); + s.selectionChoiceadmin(); + break; + + + + } + } + public void selectionChoiceseller() { + + System.out.println("Select the option"+"\n"+"1.Seller Login"+"\n"+"2.Register Seller"); + + int n=sc.nextInt(); + + switch(n) { + + case 1: + LoginSellercase.loginSeller(); + seller=LoginSellercase.seller; + if(seller!=null) { + selectionChoiceAfterSeller(); + }else { + selectionChoiceseller(); + } + break; + + case 2: + RegisterSellercase.registerSeller();; + SelectionOption1 s=new SelectionOption1(); + s.selectionChoiceseller(); + break; + + } + + } + +public void selectionChoiceBuyer() { + + System.out.println("Select the option"+"\n"+"1.Buyer Login"+"\n"+"2.Register Buyer"); + + int n=sc.nextInt(); + + switch(n) { + + case 1: + LoginBuyercase.loginBuyer(); + buyer=LoginBuyercase.buyer; + if(buyer!=null) { + selectionChoiceAfterBuyerLogin(); + }else { + selectionChoiceBuyer(); + } + break; + + case 2: + RegisterBuyercase.registerBuyer(); + SelectionOption1 s=new SelectionOption1(); + s.selectionChoiceBuyer(); + break; + + } + } + + public void selectionChoiceAfterAdmin() { + + + System.out.println("Select the option"+"\n"+"1.List of Buyer"+"\n"+"2.List of Seller"+"\n"+"3.Exit"); + int x=sc.nextInt(); + switch(x) { + + case 1: + ViewRegisterBuyerList.listBuyer(); + selectionChoiceAfterAdmin(); + break; + case 2: + ViewRegisterSellerList.viewSellerList(); + selectionChoiceAfterAdmin(); + break; + case 3: + selectionchoice(); + break; + } + } + + public void selectionChoiceAfterSeller() { + + System.out.println("Select the option"+"\n"+"1.Add item to sell"+"\n"+"2.Update Item price "+"\n"+"3.Update Item qunatity"+"\n"+"4.Delete items from list"+"\n"+"5.exit"); + + int y=sc.nextInt(); + switch(y) { + case 1: + InsertSellproduct.sellerid=seller.getSid(); + InsertSellproduct.InsertItemtoSell(); + System.out.println("********"); + selectionChoiceAfterSeller(); + break; + case 2: + UpdateSellerProductbyPrice.sellerid=seller.getSid(); + UpdateSellerProductbyPrice.updateSellerprice(); + selectionChoiceAfterSeller(); + break; + case 3: + UpdateSellerProductbyPrice.sellerid=seller.getSid(); + UpdateSellerProductbyQuantity.updateSellerqunatity(); + selectionChoiceAfterSeller(); + break; + case 4: + RemoveItemfromList.sellerid=seller.getSid(); + RemoveItemfromList.removeItem(); + selectionChoiceAfterSeller(); + break; + case 5: + selectionchoice(); + break; + + } + + } + public void selectionChoiceAfterBuyerLogin() { + System.out.println("Select the option"+"\n"+"1.Search by category"+"\n"+"2.Search by category with seller "+"\n"+"3.Buy the product"+"\n"+"4.exit"); + + int b=sc.nextInt(); + + switch(b) { + + case 1: + SearchAndViewSellProduct.searchAndViewProduct(); + selectionChoiceAfterBuyerLogin(); + break; + case 2: + SearchAndViewProductAndSellerbyCategory.searchAndViewANDSell();; + selectionChoiceAfterBuyerLogin(); + break; + + case 3: + Insertbuyerproduct.bid=buyer.getBid(); +// Insertbuyerproduct.bpcategory= + Insertbuyerproduct.insertBuyerProduct(); + selectionChoiceAfterBuyerLogin(); + break; + + case 4: + selectionchoice(); + break; + + + } + + + } +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/InsertSellproduct.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/InsertSellproduct.java new file mode 100644 index 0000000..7b43dd7 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/InsertSellproduct.java @@ -0,0 +1,83 @@ +package com.swapnil.usecases; + +import java.sql.Date; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.Scanner; + +import com.swapnil.bean.SellerProduct; +import com.swapnil.dao.SellerDao; +import com.swapnil.dao.SellerDaoImpl; +import com.swapnil.exception.SellerException; + +public class InsertSellproduct { + + public static int sellerid; + public static void InsertItemtoSell() { + // TODO Auto-generated method stub + + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the product name"); + String spname=sc.next(); + + System.out.println("Enter the product category"); + String spcategory=sc.next(); + + System.out.println("Enter the product price"); + int spprice=sc.nextInt(); + + System.out.println("Enter the product qunatity"); + int spquantity=sc.nextInt(); + + System.out.println("Enter the availability of product Yes OR No"); + boolean availability; + String yn=sc.next(); + if(yn.equals("Yes")) { + availability=true; + }else { + availability=false; + } + + System.out.println("Enter the starting date in yyyy-mm-dd "); + + String da=sc.next(); + DateTimeFormatter dtf=DateTimeFormatter.ofPattern("yyyy-MM-dd"); + + LocalDate sdate=LocalDate.parse(da); + Date spdate = Date.valueOf(sdate); + System.out.println("Enter the end date in yyyy-mm-dd"); + + String eda=sc.next(); + DateTimeFormatter dtf1=DateTimeFormatter.ofPattern("yyyy-MM-dd"); + + LocalDate edate=LocalDate.parse(eda); + Date epdate = Date.valueOf(edate); + SellerProduct sellProduct=new SellerProduct(); + sellProduct.setSpname(spname); + sellProduct.setSllerid(sellerid); + sellProduct.setSpcategory(spcategory); + sellProduct.setSpprice(spprice); + sellProduct.setSpquantity(spquantity); + sellProduct.setAvailability(availability); + sellProduct.setStartingdate(spdate); + sellProduct.setEnddate(epdate); + + SellerDao s=new SellerDaoImpl(); + try { + String msg=s.addSelling(sellProduct); + System.out.println(msg); + } catch (SellerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + + } + + + + + } + + diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/Insertbuyerproduct.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/Insertbuyerproduct.java new file mode 100644 index 0000000..28c5af3 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/Insertbuyerproduct.java @@ -0,0 +1,58 @@ +package com.swapnil.usecases; + +import java.sql.Date; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.Scanner; + +import com.swapnil.bean.BuyerProoduct; +import com.swapnil.dao.BuyerDao; +import com.swapnil.dao.BuyerDaoImpl; +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; + +public class Insertbuyerproduct { + public static int bid; + public static void insertBuyerProduct() { + // TODO Auto-generated method stub + + + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the min price"); + int bpprice=sc.nextInt(); + + System.out.println("Enter the sellproduct number"); + int spno=sc.nextInt(); + + System.out.println("Enter the Category"); + String bpcategory=sc.next(); + + System.out.println("Enter the buydate in yyyy-MM-dd"); + String da=sc.next(); + DateTimeFormatter dtf=DateTimeFormatter.ofPattern("yyyy-MM-dd"); + LocalDate sdate=LocalDate.parse(da); + Date spdate = Date.valueOf(sdate); + + BuyerProoduct buyerproduct=new BuyerProoduct(); + + buyerproduct.setBid(bid); + buyerproduct.setSpno(spno); + buyerproduct.setBuydate(spdate); + buyerproduct.setMinprice(bpprice); + buyerproduct.setBpcategory(bpcategory); + + BuyerDao bpd=new BuyerDaoImpl(); + try { + String message=bpd.BuyProduct(buyerproduct); + System.out.println(message); + } catch (BuyerException | SellerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + + } + + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginAdmincase.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginAdmincase.java new file mode 100644 index 0000000..80677c5 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginAdmincase.java @@ -0,0 +1,39 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.bean.Admin; +import com.swapnil.dao.AdminDao; +import com.swapnil.dao.AdminDaoImpl; +import com.swapnil.exception.AdminException; + +public class LoginAdmincase { + + public static Admin admin=null; + + public static void login() { + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the username"); + + String username=sc.next(); + + System.out.println("Enter the password"); + + String password=sc.next(); + + AdminDao ad=new AdminDaoImpl(); + + try { + admin=ad.loginAdmin(username, password); + + System.out.println("Successfully login "+admin.getAname()); + + } catch (AdminException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginBuyercase.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginBuyercase.java new file mode 100644 index 0000000..b2b4c47 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginBuyercase.java @@ -0,0 +1,40 @@ +package com.swapnil.usecases; + + +import java.util.Scanner; + +import com.swapnil.bean.Buyer; +import com.swapnil.dao.BuyerDao; +import com.swapnil.dao.BuyerDaoImpl; +import com.swapnil.exception.BuyerException; + + +public class LoginBuyercase { + public static Buyer buyer=null; + public static void loginBuyer() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + System.out.println("Enter the username"); + String username=sc.next(); + + System.out.println("Enter the password"); + String password=sc.next(); + + + BuyerDao bu=new BuyerDaoImpl(); + + try { + buyer=bu.loginBuyer(username, password); + System.out.println("login Successfully "+buyer.getBname()); + + } catch (BuyerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + + + + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginSellercase.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginSellercase.java new file mode 100644 index 0000000..4eba42e --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/LoginSellercase.java @@ -0,0 +1,39 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.bean.Seller; +import com.swapnil.dao.BuyerDao; +import com.swapnil.dao.BuyerDaoImpl; +import com.swapnil.dao.SellerDao; +import com.swapnil.dao.SellerDaoImpl; +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; + +public class LoginSellercase { + public static Seller seller=null; + public static void loginSeller() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the username"); + + String username=sc.next(); + + System.out.println("Enter the password"); + + String password=sc.next(); + + SellerDao se=new SellerDaoImpl(); + + try { + seller=se.loginSeller(username, password); + System.out.println("Login successfully "+seller.getSname()); + } catch (SellerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterAdmincase.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterAdmincase.java new file mode 100644 index 0000000..d85b2ee --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterAdmincase.java @@ -0,0 +1,43 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.bean.Admin; +import com.swapnil.dao.AdminDao; +import com.swapnil.dao.AdminDaoImpl; + +public class RegisterAdmincase { + + public static void registerAdmin() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the name"); + String name=sc.next(); + + System.out.println("Enter the email"); + String email=sc.next(); + + System.out.println("Enter the mobile"); + String mobile=sc.next(); + + System.out.println("Enter the password"); + String password=sc.next(); + + + AdminDao admin=new AdminDaoImpl(); + + Admin a=new Admin(); + + a.setAname(name); + a.setAmail(email); + a.setAmobile(mobile); + a.setApassword(password); + + String message=admin.registerAdmin(a); + + System.out.println(message); + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterBuyercase.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterBuyercase.java new file mode 100644 index 0000000..425cb52 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterBuyercase.java @@ -0,0 +1,41 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.bean.Buyer; +import com.swapnil.dao.BuyerDao; +import com.swapnil.dao.BuyerDaoImpl; + +public class RegisterBuyercase { + + public static void registerBuyer() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the name"); + String name=sc.next(); + + System.out.println("Enter the email"); + String email=sc.next(); + + System.out.println("Enter the mobile"); + String mobile=sc.next(); + + System.out.println("Enter the password"); + String password=sc.next(); + + BuyerDao buyer=new BuyerDaoImpl(); + + Buyer b=new Buyer(); + b.setBname(name); + b.setBmail(email); + b.setBmobile(mobile); + b.setBpassword(password); + + String message=buyer.registerBuyer(b); + + System.out.println(message); + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterSellercase.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterSellercase.java new file mode 100644 index 0000000..c290ae5 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RegisterSellercase.java @@ -0,0 +1,43 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.bean.Seller; +import com.swapnil.dao.SellerDao; +import com.swapnil.dao.SellerDaoImpl; + +public class RegisterSellercase { + + public static void registerSeller() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the name"); + String name=sc.next(); + + System.out.println("Enter the email"); + String email=sc.next(); + + System.out.println("Enter the mobile"); + String mobile=sc.next(); + + System.out.println("Enter the password"); + String password=sc.next(); + + SellerDao seller=new SellerDaoImpl(); + + Seller s=new Seller(); + + s.setSname(name); + s.setSmail(email); + s.setSmobile(mobile); + s.setSpassword(password); + + String message=seller.registerSeller(s); + + System.out.println(message); + + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RemoveItemfromList.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RemoveItemfromList.java new file mode 100644 index 0000000..fea9b13 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/RemoveItemfromList.java @@ -0,0 +1,31 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.dao.SellerDao; +import com.swapnil.dao.SellerDaoImpl; +import com.swapnil.exception.SellerProductException; + +public class RemoveItemfromList { + public static int sellerid; + public static void removeItem() { + // TODO Auto-generated method stub + + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the Sell product number"); + int spno=sc.nextInt(); + + SellerDao seller=new SellerDaoImpl(); + + try { + String message=seller.deleteItem(spno, sellerid); + System.out.println(message); + } catch (SellerProductException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.java new file mode 100644 index 0000000..c2af83c --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewProductAndSellerbyCategory.java @@ -0,0 +1,34 @@ +package com.swapnil.usecases; + +import java.util.List; +import java.util.Scanner; + +import com.swapnil.bean.SellProductAndSellerDTO; +import com.swapnil.dao.BuyerDao; +import com.swapnil.dao.BuyerDaoImpl; +import com.swapnil.exception.SellerException; +import com.swapnil.exception.SellerProductException; + +public class SearchAndViewProductAndSellerbyCategory { + + public static void searchAndViewANDSell() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the category"); + + String cat=sc.next(); + + BuyerDao buy=new BuyerDaoImpl(); + + try { + List list= buy.showProductAndSellerbyCategory(cat); + list.forEach(s->System.out.println(s)); + } catch (SellerProductException | SellerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewSellProduct.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewSellProduct.java new file mode 100644 index 0000000..4309a60 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/SearchAndViewSellProduct.java @@ -0,0 +1,33 @@ +package com.swapnil.usecases; + +import java.util.List; +import java.util.Scanner; + +import com.swapnil.bean.SellProductDTO; +import com.swapnil.dao.BuyerDao; +import com.swapnil.dao.BuyerDaoImpl; +import com.swapnil.exception.SellerProductException; + +public class SearchAndViewSellProduct { + + public static void searchAndViewProduct() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the category"); + String cat=sc.next(); + + BuyerDao buyer=new BuyerDaoImpl(); + try { + List list=buyer.showProductbyCategory(cat); + list.forEach(s->System.out.println(s)); + + } catch (SellerProductException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyPrice.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyPrice.java new file mode 100644 index 0000000..34d9e15 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyPrice.java @@ -0,0 +1,34 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.dao.SellerDao; +import com.swapnil.dao.SellerDaoImpl; +import com.swapnil.exception.SellerProductException; + +public class UpdateSellerProductbyPrice { + public static int sellerid; + public static void updateSellerprice() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the product number"); + int spno=sc.nextInt(); + + System.out.println("Enter the Product price"); + int price=sc.nextInt(); + + SellerDao seller=new SellerDaoImpl(); + + try { + String message=seller.updatePrice(price, spno,sellerid); + System.out.println(message); + } catch (SellerProductException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyQuantity.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyQuantity.java new file mode 100644 index 0000000..aa3ad24 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/UpdateSellerProductbyQuantity.java @@ -0,0 +1,33 @@ +package com.swapnil.usecases; + +import java.util.Scanner; + +import com.swapnil.dao.SellerDao; +import com.swapnil.dao.SellerDaoImpl; +import com.swapnil.exception.SellerProductException; + +public class UpdateSellerProductbyQuantity { + public static int sellerid; + public static void updateSellerqunatity() { + // TODO Auto-generated method stub + + Scanner sc=new Scanner(System.in); + + System.out.println("Enter the product number"); + int spno=sc.nextInt(); + + System.out.println("Enter the Product quantity"); + int quantity=sc.nextInt(); + + SellerDao seller=new SellerDaoImpl(); + + try { + String message=seller.updateQuantity(quantity, spno,sellerid); + System.out.println(message); + } catch (SellerProductException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterBuyerList.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterBuyerList.java new file mode 100644 index 0000000..c5baf23 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterBuyerList.java @@ -0,0 +1,28 @@ +package com.swapnil.usecases; + +import java.util.List; + +import com.swapnil.bean.Buyer; +import com.swapnil.dao.AdminDao; +import com.swapnil.dao.AdminDaoImpl; +import com.swapnil.exception.BuyerException; + +public class ViewRegisterBuyerList { + + public static void listBuyer() { + // TODO Auto-generated method stub + + AdminDao admin=new AdminDaoImpl(); + + try { + Listlist=admin.viewBuyerList(); + System.out.println("***List of Buyer***"); + list.forEach(s->System.out.println(s)); + } catch (BuyerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + + } + +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterSellerList.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterSellerList.java new file mode 100644 index 0000000..f90321e --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/usecases/ViewRegisterSellerList.java @@ -0,0 +1,32 @@ +package com.swapnil.usecases; + +import java.util.List; + +import com.swapnil.bean.Buyer; +import com.swapnil.bean.Seller; +import com.swapnil.dao.AdminDao; +import com.swapnil.dao.AdminDaoImpl; +import com.swapnil.exception.BuyerException; +import com.swapnil.exception.SellerException; + +public class ViewRegisterSellerList { + + public static void viewSellerList() { + // TODO Auto-generated method stub + + + AdminDao admin=new AdminDaoImpl(); + + try { + Listlist=admin.viewSellerList(); + + list.forEach(s->System.out.println(s)); + } catch (SellerException e) { + // TODO Auto-generated catch block + System.out.println(e.getMessage()); + } + + } + } + + diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/DUtil.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/DUtil.java new file mode 100644 index 0000000..c5c7434 --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/DUtil.java @@ -0,0 +1,22 @@ +package com.swapnil.utality; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.SQLException; + +public class DUtil { + + + public static Connection provideConnection() { + Connection conn=null; + String url="jdbc:mysql://localhost:3306/auction"; + try { + conn=DriverManager.getConnection(url, "root", "4935"); + } catch (SQLException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return conn; + } +} diff --git a/muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/Main.java b/muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/Main.java new file mode 100644 index 0000000..049822d --- /dev/null +++ b/muddled-can-9800/muddled-can-9800/src/com/swapnil/utality/Main.java @@ -0,0 +1,15 @@ +package com.swapnil.utality; + +import java.sql.Connection; + +public class Main { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + Connection conn=DUtil.provideConnection(); + + System.out.println(conn); + } + +}