AbstractPlatPreResEntryControllerBean.java 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. package com.kingdee.eas.custom.app;
  2. import javax.ejb.*;
  3. import java.rmi.RemoteException;
  4. import com.kingdee.bos.*;
  5. import com.kingdee.bos.util.BOSObjectType;
  6. import com.kingdee.bos.metadata.IMetaDataPK;
  7. import com.kingdee.bos.metadata.rule.RuleExecutor;
  8. import com.kingdee.bos.metadata.MetaDataPK;
  9. //import com.kingdee.bos.metadata.entity.EntityViewInfo;
  10. import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
  11. import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
  12. //import com.kingdee.bos.dao.IObjectPK;
  13. import com.kingdee.bos.dao.IObjectValue;
  14. import com.kingdee.bos.dao.IObjectCollection;
  15. import com.kingdee.bos.service.ServiceContext;
  16. import com.kingdee.bos.service.IServiceContext;
  17. import com.kingdee.eas.framework.Result;
  18. import com.kingdee.eas.framework.LineResult;
  19. import com.kingdee.eas.framework.exception.EASMultiException;
  20. import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
  21. import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
  22. import com.kingdee.eas.hr.base.app.HRBillBaseEntryControllerBean;
  23. import com.kingdee.bos.dao.IObjectPK;
  24. import com.kingdee.bos.metadata.entity.EntityViewInfo;
  25. import com.kingdee.eas.hr.base.HRBillBaseEntryCollection;
  26. import java.lang.String;
  27. import com.kingdee.eas.framework.CoreBaseInfo;
  28. import com.kingdee.eas.framework.CoreBaseCollection;
  29. import com.kingdee.eas.custom.PlatPreResEntryCollection;
  30. import com.kingdee.eas.common.EASBizException;
  31. import com.kingdee.eas.custom.PlatPreResEntryInfo;
  32. import com.kingdee.bos.metadata.entity.SelectorItemCollection;
  33. public abstract class AbstractPlatPreResEntryControllerBean extends HRBillBaseEntryControllerBean implements PlatPreResEntryController
  34. {
  35. protected AbstractPlatPreResEntryControllerBean()
  36. {
  37. }
  38. protected BOSObjectType getBOSType()
  39. {
  40. return new BOSObjectType("818913E1");
  41. }
  42. public PlatPreResEntryInfo getPlatPreResEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  43. {
  44. try {
  45. ServiceContext svcCtx = createServiceContext(new MetaDataPK("c517013f-13bb-43a3-8d9e-e8c404b2641a"), new Object[]{ctx, pk});
  46. invokeServiceBefore(svcCtx);
  47. if(!svcCtx.invokeBreak()) {
  48. PlatPreResEntryInfo retValue = (PlatPreResEntryInfo)_getValue(ctx, pk);
  49. svcCtx.setMethodReturnValue(retValue);
  50. }
  51. invokeServiceAfter(svcCtx);
  52. return (PlatPreResEntryInfo)svcCtx.getMethodReturnValue();
  53. } catch (BOSException ex) {
  54. throw ex;
  55. } catch (EASBizException ex0) {
  56. throw ex0;
  57. } finally {
  58. super.cleanUpServiceState();
  59. }
  60. }
  61. protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  62. {
  63. return super._getValue(ctx, pk);
  64. }
  65. public PlatPreResEntryInfo getPlatPreResEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  66. {
  67. try {
  68. ServiceContext svcCtx = createServiceContext(new MetaDataPK("034fd478-30aa-4690-88c0-0a57b5519d0a"), new Object[]{ctx, pk, selector});
  69. invokeServiceBefore(svcCtx);
  70. if(!svcCtx.invokeBreak()) {
  71. PlatPreResEntryInfo retValue = (PlatPreResEntryInfo)_getValue(ctx, pk, selector);
  72. svcCtx.setMethodReturnValue(retValue);
  73. }
  74. invokeServiceAfter(svcCtx);
  75. return (PlatPreResEntryInfo)svcCtx.getMethodReturnValue();
  76. } catch (BOSException ex) {
  77. throw ex;
  78. } catch (EASBizException ex0) {
  79. throw ex0;
  80. } finally {
  81. super.cleanUpServiceState();
  82. }
  83. }
  84. protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  85. {
  86. return super._getValue(ctx, pk, selector);
  87. }
  88. public PlatPreResEntryInfo getPlatPreResEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
  89. {
  90. try {
  91. ServiceContext svcCtx = createServiceContext(new MetaDataPK("d7ea3d08-0e59-4dc2-8df7-62ce97f8a403"), new Object[]{ctx, oql});
  92. invokeServiceBefore(svcCtx);
  93. if(!svcCtx.invokeBreak()) {
  94. PlatPreResEntryInfo retValue = (PlatPreResEntryInfo)_getValue(ctx, oql);
  95. svcCtx.setMethodReturnValue(retValue);
  96. }
  97. invokeServiceAfter(svcCtx);
  98. return (PlatPreResEntryInfo)svcCtx.getMethodReturnValue();
  99. } catch (BOSException ex) {
  100. throw ex;
  101. } catch (EASBizException ex0) {
  102. throw ex0;
  103. } finally {
  104. super.cleanUpServiceState();
  105. }
  106. }
  107. protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
  108. {
  109. return super._getValue(ctx, oql);
  110. }
  111. public PlatPreResEntryCollection getPlatPreResEntryCollection(Context ctx) throws BOSException
  112. {
  113. try {
  114. ServiceContext svcCtx = createServiceContext(new MetaDataPK("bba13f58-446c-460d-a3d7-19f42dd19e09"), new Object[]{ctx});
  115. invokeServiceBefore(svcCtx);
  116. if(!svcCtx.invokeBreak()) {
  117. PlatPreResEntryCollection retValue = (PlatPreResEntryCollection)_getCollection(ctx, svcCtx);
  118. svcCtx.setMethodReturnValue(retValue);
  119. }
  120. invokeServiceAfter(svcCtx);
  121. return (PlatPreResEntryCollection)svcCtx.getMethodReturnValue();
  122. } catch (BOSException ex) {
  123. throw ex;
  124. } finally {
  125. super.cleanUpServiceState();
  126. }
  127. }
  128. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
  129. {
  130. return super._getCollection(ctx, svcCtx);
  131. }
  132. public PlatPreResEntryCollection getPlatPreResEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
  133. {
  134. try {
  135. ServiceContext svcCtx = createServiceContext(new MetaDataPK("170b67dc-7d2f-4da9-9003-a7d59069aac3"), new Object[]{ctx, view});
  136. invokeServiceBefore(svcCtx);
  137. if(!svcCtx.invokeBreak()) {
  138. PlatPreResEntryCollection retValue = (PlatPreResEntryCollection)_getCollection(ctx, svcCtx, view);
  139. svcCtx.setMethodReturnValue(retValue);
  140. }
  141. invokeServiceAfter(svcCtx);
  142. return (PlatPreResEntryCollection)svcCtx.getMethodReturnValue();
  143. } catch (BOSException ex) {
  144. throw ex;
  145. } finally {
  146. super.cleanUpServiceState();
  147. }
  148. }
  149. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
  150. {
  151. return super._getCollection(ctx, svcCtx, view);
  152. }
  153. public PlatPreResEntryCollection getPlatPreResEntryCollection(Context ctx, String oql) throws BOSException
  154. {
  155. try {
  156. ServiceContext svcCtx = createServiceContext(new MetaDataPK("172246ad-0ad8-44e1-b0f0-88715031ab35"), new Object[]{ctx, oql});
  157. invokeServiceBefore(svcCtx);
  158. if(!svcCtx.invokeBreak()) {
  159. PlatPreResEntryCollection retValue = (PlatPreResEntryCollection)_getCollection(ctx, svcCtx, oql);
  160. svcCtx.setMethodReturnValue(retValue);
  161. }
  162. invokeServiceAfter(svcCtx);
  163. return (PlatPreResEntryCollection)svcCtx.getMethodReturnValue();
  164. } catch (BOSException ex) {
  165. throw ex;
  166. } finally {
  167. super.cleanUpServiceState();
  168. }
  169. }
  170. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
  171. {
  172. return super._getCollection(ctx, svcCtx, oql);
  173. }
  174. public HRBillBaseEntryCollection getHRBillBaseEntryCollection (Context ctx) throws BOSException
  175. {
  176. return (HRBillBaseEntryCollection)(getPlatPreResEntryCollection(ctx).cast(HRBillBaseEntryCollection.class));
  177. }
  178. public HRBillBaseEntryCollection getHRBillBaseEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
  179. {
  180. return (HRBillBaseEntryCollection)(getPlatPreResEntryCollection(ctx, view).cast(HRBillBaseEntryCollection.class));
  181. }
  182. public HRBillBaseEntryCollection getHRBillBaseEntryCollection (Context ctx, String oql) throws BOSException
  183. {
  184. return (HRBillBaseEntryCollection)(getPlatPreResEntryCollection(ctx, oql).cast(HRBillBaseEntryCollection.class));
  185. }
  186. public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
  187. {
  188. return (CoreBillEntryBaseCollection)(getPlatPreResEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
  189. }
  190. public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  191. {
  192. return (CoreBillEntryBaseCollection)(getPlatPreResEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
  193. }
  194. public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
  195. {
  196. return (CoreBillEntryBaseCollection)(getPlatPreResEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
  197. }
  198. public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
  199. {
  200. return (CoreBaseCollection)(getPlatPreResEntryCollection(ctx).cast(CoreBaseCollection.class));
  201. }
  202. public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  203. {
  204. return (CoreBaseCollection)(getPlatPreResEntryCollection(ctx, view).cast(CoreBaseCollection.class));
  205. }
  206. public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
  207. {
  208. return (CoreBaseCollection)(getPlatPreResEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
  209. }
  210. }