d78d2fb3387803ee86a92fd855fa0349b175c1ff.svn-base 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. package com.kingdee.eas.custom.bd.param.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.CoreBaseInfo;
  22. import com.kingdee.bos.dao.IObjectPK;
  23. import com.kingdee.eas.custom.bd.param.ParamCollection;
  24. import com.kingdee.shr.base.syssetting.app.SHRBaseItemControllerBean;
  25. import com.kingdee.eas.custom.bd.param.ParamInfo;
  26. import com.kingdee.bos.metadata.entity.SelectorItemCollection;
  27. import com.kingdee.shr.base.syssetting.SHRBaseItemCollection;
  28. import com.kingdee.eas.common.EASBizException;
  29. import com.kingdee.eas.framework.CoreBaseCollection;
  30. import com.kingdee.bos.metadata.entity.EntityViewInfo;
  31. import java.lang.String;
  32. import com.kingdee.eas.framework.DataBaseCollection;
  33. import com.kingdee.eas.framework.ObjectBaseCollection;
  34. public abstract class AbstractParamControllerBean extends SHRBaseItemControllerBean implements ParamController
  35. {
  36. protected AbstractParamControllerBean()
  37. {
  38. }
  39. protected BOSObjectType getBOSType()
  40. {
  41. return new BOSObjectType("1C90B28B");
  42. }
  43. public ParamInfo getParamInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  44. {
  45. try {
  46. ServiceContext svcCtx = createServiceContext(new MetaDataPK("ac1d7b1d-bde8-455d-9d32-bc51e1ee1898"), new Object[]{ctx, pk});
  47. invokeServiceBefore(svcCtx);
  48. if(!svcCtx.invokeBreak()) {
  49. ParamInfo retValue = (ParamInfo)_getValue(ctx, pk);
  50. svcCtx.setMethodReturnValue(retValue);
  51. }
  52. invokeServiceAfter(svcCtx);
  53. return (ParamInfo)svcCtx.getMethodReturnValue();
  54. } catch (BOSException ex) {
  55. throw ex;
  56. } catch (EASBizException ex0) {
  57. throw ex0;
  58. } finally {
  59. super.cleanUpServiceState();
  60. }
  61. }
  62. protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  63. {
  64. return super._getValue(ctx, pk);
  65. }
  66. public ParamInfo getParamInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  67. {
  68. try {
  69. ServiceContext svcCtx = createServiceContext(new MetaDataPK("bc87a4e8-a40a-41e4-b2fc-3d7b6af6023a"), new Object[]{ctx, pk, selector});
  70. invokeServiceBefore(svcCtx);
  71. if(!svcCtx.invokeBreak()) {
  72. ParamInfo retValue = (ParamInfo)_getValue(ctx, pk, selector);
  73. svcCtx.setMethodReturnValue(retValue);
  74. }
  75. invokeServiceAfter(svcCtx);
  76. return (ParamInfo)svcCtx.getMethodReturnValue();
  77. } catch (BOSException ex) {
  78. throw ex;
  79. } catch (EASBizException ex0) {
  80. throw ex0;
  81. } finally {
  82. super.cleanUpServiceState();
  83. }
  84. }
  85. protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  86. {
  87. return super._getValue(ctx, pk, selector);
  88. }
  89. public ParamInfo getParamInfo(Context ctx, String oql) throws BOSException, EASBizException
  90. {
  91. try {
  92. ServiceContext svcCtx = createServiceContext(new MetaDataPK("9d770d6b-b94c-4fd0-9ca8-138722bdaca2"), new Object[]{ctx, oql});
  93. invokeServiceBefore(svcCtx);
  94. if(!svcCtx.invokeBreak()) {
  95. ParamInfo retValue = (ParamInfo)_getValue(ctx, oql);
  96. svcCtx.setMethodReturnValue(retValue);
  97. }
  98. invokeServiceAfter(svcCtx);
  99. return (ParamInfo)svcCtx.getMethodReturnValue();
  100. } catch (BOSException ex) {
  101. throw ex;
  102. } catch (EASBizException ex0) {
  103. throw ex0;
  104. } finally {
  105. super.cleanUpServiceState();
  106. }
  107. }
  108. protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
  109. {
  110. return super._getValue(ctx, oql);
  111. }
  112. public ParamCollection getParamCollection(Context ctx) throws BOSException
  113. {
  114. try {
  115. ServiceContext svcCtx = createServiceContext(new MetaDataPK("ec5f993d-46f1-4e26-ae56-465c0c075bd7"), new Object[]{ctx});
  116. invokeServiceBefore(svcCtx);
  117. if(!svcCtx.invokeBreak()) {
  118. ParamCollection retValue = (ParamCollection)_getCollection(ctx, svcCtx);
  119. svcCtx.setMethodReturnValue(retValue);
  120. }
  121. invokeServiceAfter(svcCtx);
  122. return (ParamCollection)svcCtx.getMethodReturnValue();
  123. } catch (BOSException ex) {
  124. throw ex;
  125. } finally {
  126. super.cleanUpServiceState();
  127. }
  128. }
  129. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
  130. {
  131. return super._getCollection(ctx, svcCtx);
  132. }
  133. public ParamCollection getParamCollection(Context ctx, EntityViewInfo view) throws BOSException
  134. {
  135. try {
  136. ServiceContext svcCtx = createServiceContext(new MetaDataPK("db91aad9-a32c-4b7a-a5e6-87a40674b5af"), new Object[]{ctx, view});
  137. invokeServiceBefore(svcCtx);
  138. if(!svcCtx.invokeBreak()) {
  139. ParamCollection retValue = (ParamCollection)_getCollection(ctx, svcCtx, view);
  140. svcCtx.setMethodReturnValue(retValue);
  141. }
  142. invokeServiceAfter(svcCtx);
  143. return (ParamCollection)svcCtx.getMethodReturnValue();
  144. } catch (BOSException ex) {
  145. throw ex;
  146. } finally {
  147. super.cleanUpServiceState();
  148. }
  149. }
  150. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
  151. {
  152. return super._getCollection(ctx, svcCtx, view);
  153. }
  154. public ParamCollection getParamCollection(Context ctx, String oql) throws BOSException
  155. {
  156. try {
  157. ServiceContext svcCtx = createServiceContext(new MetaDataPK("15bd8ffe-a6a0-407e-89f0-8f7e46d9dbd4"), new Object[]{ctx, oql});
  158. invokeServiceBefore(svcCtx);
  159. if(!svcCtx.invokeBreak()) {
  160. ParamCollection retValue = (ParamCollection)_getCollection(ctx, svcCtx, oql);
  161. svcCtx.setMethodReturnValue(retValue);
  162. }
  163. invokeServiceAfter(svcCtx);
  164. return (ParamCollection)svcCtx.getMethodReturnValue();
  165. } catch (BOSException ex) {
  166. throw ex;
  167. } finally {
  168. super.cleanUpServiceState();
  169. }
  170. }
  171. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
  172. {
  173. return super._getCollection(ctx, svcCtx, oql);
  174. }
  175. public SHRBaseItemCollection getSHRBaseItemCollection (Context ctx) throws BOSException
  176. {
  177. return (SHRBaseItemCollection)(getParamCollection(ctx).cast(SHRBaseItemCollection.class));
  178. }
  179. public SHRBaseItemCollection getSHRBaseItemCollection (Context ctx, EntityViewInfo view) throws BOSException
  180. {
  181. return (SHRBaseItemCollection)(getParamCollection(ctx, view).cast(SHRBaseItemCollection.class));
  182. }
  183. public SHRBaseItemCollection getSHRBaseItemCollection (Context ctx, String oql) throws BOSException
  184. {
  185. return (SHRBaseItemCollection)(getParamCollection(ctx, oql).cast(SHRBaseItemCollection.class));
  186. }
  187. public DataBaseCollection getDataBaseCollection (Context ctx) throws BOSException
  188. {
  189. return (DataBaseCollection)(getParamCollection(ctx).cast(DataBaseCollection.class));
  190. }
  191. public DataBaseCollection getDataBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  192. {
  193. return (DataBaseCollection)(getParamCollection(ctx, view).cast(DataBaseCollection.class));
  194. }
  195. public DataBaseCollection getDataBaseCollection (Context ctx, String oql) throws BOSException
  196. {
  197. return (DataBaseCollection)(getParamCollection(ctx, oql).cast(DataBaseCollection.class));
  198. }
  199. public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
  200. {
  201. return (ObjectBaseCollection)(getParamCollection(ctx).cast(ObjectBaseCollection.class));
  202. }
  203. public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  204. {
  205. return (ObjectBaseCollection)(getParamCollection(ctx, view).cast(ObjectBaseCollection.class));
  206. }
  207. public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
  208. {
  209. return (ObjectBaseCollection)(getParamCollection(ctx, oql).cast(ObjectBaseCollection.class));
  210. }
  211. public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
  212. {
  213. return (CoreBaseCollection)(getParamCollection(ctx).cast(CoreBaseCollection.class));
  214. }
  215. public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  216. {
  217. return (CoreBaseCollection)(getParamCollection(ctx, view).cast(CoreBaseCollection.class));
  218. }
  219. public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
  220. {
  221. return (CoreBaseCollection)(getParamCollection(ctx, oql).cast(CoreBaseCollection.class));
  222. }
  223. }