AbstractSyncLogControllerBean.java 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. package com.kingdee.eas.custom.log.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.bos.dao.IObjectPK;
  22. import com.kingdee.eas.framework.CoreBillBaseCollection;
  23. import com.kingdee.eas.framework.app.CoreBillBaseControllerBean;
  24. import com.kingdee.bos.metadata.entity.SelectorItemCollection;
  25. import com.kingdee.eas.common.EASBizException;
  26. import com.kingdee.eas.framework.CoreBaseCollection;
  27. import com.kingdee.eas.framework.CoreBaseInfo;
  28. import com.kingdee.bos.metadata.entity.EntityViewInfo;
  29. import com.kingdee.eas.custom.log.SyncLogCollection;
  30. import java.lang.String;
  31. import com.kingdee.eas.custom.log.SyncLogInfo;
  32. import com.kingdee.eas.framework.ObjectBaseCollection;
  33. public abstract class AbstractSyncLogControllerBean extends CoreBillBaseControllerBean implements SyncLogController
  34. {
  35. protected AbstractSyncLogControllerBean()
  36. {
  37. }
  38. protected BOSObjectType getBOSType()
  39. {
  40. return new BOSObjectType("95A0551A");
  41. }
  42. public SyncLogCollection getSyncLogCollection(Context ctx) throws BOSException
  43. {
  44. try {
  45. ServiceContext svcCtx = createServiceContext(new MetaDataPK("f02064df-5e88-4cb3-9542-d5b29a6cc54b"), new Object[]{ctx});
  46. invokeServiceBefore(svcCtx);
  47. if(!svcCtx.invokeBreak()) {
  48. SyncLogCollection retValue = (SyncLogCollection)_getCollection(ctx, svcCtx);
  49. svcCtx.setMethodReturnValue(retValue);
  50. }
  51. invokeServiceAfter(svcCtx);
  52. return (SyncLogCollection)svcCtx.getMethodReturnValue();
  53. } catch (BOSException ex) {
  54. throw ex;
  55. } finally {
  56. super.cleanUpServiceState();
  57. }
  58. }
  59. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
  60. {
  61. return super._getCollection(ctx, svcCtx);
  62. }
  63. public SyncLogCollection getSyncLogCollection(Context ctx, EntityViewInfo view) throws BOSException
  64. {
  65. try {
  66. ServiceContext svcCtx = createServiceContext(new MetaDataPK("9206b953-e6db-4453-bd1b-4f30ed2d70dc"), new Object[]{ctx, view});
  67. invokeServiceBefore(svcCtx);
  68. if(!svcCtx.invokeBreak()) {
  69. SyncLogCollection retValue = (SyncLogCollection)_getCollection(ctx, svcCtx, view);
  70. svcCtx.setMethodReturnValue(retValue);
  71. }
  72. invokeServiceAfter(svcCtx);
  73. return (SyncLogCollection)svcCtx.getMethodReturnValue();
  74. } catch (BOSException ex) {
  75. throw ex;
  76. } finally {
  77. super.cleanUpServiceState();
  78. }
  79. }
  80. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
  81. {
  82. return super._getCollection(ctx, svcCtx, view);
  83. }
  84. public SyncLogCollection getSyncLogCollection(Context ctx, String oql) throws BOSException
  85. {
  86. try {
  87. ServiceContext svcCtx = createServiceContext(new MetaDataPK("5c89d33b-2936-417f-941f-228b981f0662"), new Object[]{ctx, oql});
  88. invokeServiceBefore(svcCtx);
  89. if(!svcCtx.invokeBreak()) {
  90. SyncLogCollection retValue = (SyncLogCollection)_getCollection(ctx, svcCtx, oql);
  91. svcCtx.setMethodReturnValue(retValue);
  92. }
  93. invokeServiceAfter(svcCtx);
  94. return (SyncLogCollection)svcCtx.getMethodReturnValue();
  95. } catch (BOSException ex) {
  96. throw ex;
  97. } finally {
  98. super.cleanUpServiceState();
  99. }
  100. }
  101. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
  102. {
  103. return super._getCollection(ctx, svcCtx, oql);
  104. }
  105. public SyncLogInfo getSyncLogInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  106. {
  107. try {
  108. ServiceContext svcCtx = createServiceContext(new MetaDataPK("8b59d9e3-2fd7-4d5d-8553-adc57f45d727"), new Object[]{ctx, pk});
  109. invokeServiceBefore(svcCtx);
  110. if(!svcCtx.invokeBreak()) {
  111. SyncLogInfo retValue = (SyncLogInfo)_getValue(ctx, pk);
  112. svcCtx.setMethodReturnValue(retValue);
  113. }
  114. invokeServiceAfter(svcCtx);
  115. return (SyncLogInfo)svcCtx.getMethodReturnValue();
  116. } catch (BOSException ex) {
  117. throw ex;
  118. } catch (EASBizException ex0) {
  119. throw ex0;
  120. } finally {
  121. super.cleanUpServiceState();
  122. }
  123. }
  124. protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  125. {
  126. return super._getValue(ctx, pk);
  127. }
  128. public SyncLogInfo getSyncLogInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  129. {
  130. try {
  131. ServiceContext svcCtx = createServiceContext(new MetaDataPK("05ad2c1e-f785-423b-be77-4cbbfc7243a9"), new Object[]{ctx, pk, selector});
  132. invokeServiceBefore(svcCtx);
  133. if(!svcCtx.invokeBreak()) {
  134. SyncLogInfo retValue = (SyncLogInfo)_getValue(ctx, pk, selector);
  135. svcCtx.setMethodReturnValue(retValue);
  136. }
  137. invokeServiceAfter(svcCtx);
  138. return (SyncLogInfo)svcCtx.getMethodReturnValue();
  139. } catch (BOSException ex) {
  140. throw ex;
  141. } catch (EASBizException ex0) {
  142. throw ex0;
  143. } finally {
  144. super.cleanUpServiceState();
  145. }
  146. }
  147. protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  148. {
  149. return super._getValue(ctx, pk, selector);
  150. }
  151. public SyncLogInfo getSyncLogInfo(Context ctx, String oql) throws BOSException, EASBizException
  152. {
  153. try {
  154. ServiceContext svcCtx = createServiceContext(new MetaDataPK("5ca8fbb3-20a7-4fae-920e-bca84d529e1c"), new Object[]{ctx, oql});
  155. invokeServiceBefore(svcCtx);
  156. if(!svcCtx.invokeBreak()) {
  157. SyncLogInfo retValue = (SyncLogInfo)_getValue(ctx, oql);
  158. svcCtx.setMethodReturnValue(retValue);
  159. }
  160. invokeServiceAfter(svcCtx);
  161. return (SyncLogInfo)svcCtx.getMethodReturnValue();
  162. } catch (BOSException ex) {
  163. throw ex;
  164. } catch (EASBizException ex0) {
  165. throw ex0;
  166. } finally {
  167. super.cleanUpServiceState();
  168. }
  169. }
  170. protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
  171. {
  172. return super._getValue(ctx, oql);
  173. }
  174. public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
  175. {
  176. return (CoreBillBaseCollection)(getSyncLogCollection(ctx).cast(CoreBillBaseCollection.class));
  177. }
  178. public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  179. {
  180. return (CoreBillBaseCollection)(getSyncLogCollection(ctx, view).cast(CoreBillBaseCollection.class));
  181. }
  182. public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
  183. {
  184. return (CoreBillBaseCollection)(getSyncLogCollection(ctx, oql).cast(CoreBillBaseCollection.class));
  185. }
  186. public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
  187. {
  188. return (ObjectBaseCollection)(getSyncLogCollection(ctx).cast(ObjectBaseCollection.class));
  189. }
  190. public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  191. {
  192. return (ObjectBaseCollection)(getSyncLogCollection(ctx, view).cast(ObjectBaseCollection.class));
  193. }
  194. public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
  195. {
  196. return (ObjectBaseCollection)(getSyncLogCollection(ctx, oql).cast(ObjectBaseCollection.class));
  197. }
  198. public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
  199. {
  200. return (CoreBaseCollection)(getSyncLogCollection(ctx).cast(CoreBaseCollection.class));
  201. }
  202. public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  203. {
  204. return (CoreBaseCollection)(getSyncLogCollection(ctx, view).cast(CoreBaseCollection.class));
  205. }
  206. public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
  207. {
  208. return (CoreBaseCollection)(getSyncLogCollection(ctx, oql).cast(CoreBaseCollection.class));
  209. }
  210. }