package com.kingdee.eas.custom.log.app; import javax.ejb.*; import java.rmi.RemoteException; import com.kingdee.bos.*; import com.kingdee.bos.util.BOSObjectType; import com.kingdee.bos.metadata.IMetaDataPK; import com.kingdee.bos.metadata.rule.RuleExecutor; import com.kingdee.bos.metadata.MetaDataPK; //import com.kingdee.bos.metadata.entity.EntityViewInfo; import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean; import com.kingdee.bos.framework.ejb.AbstractBizControllerBean; //import com.kingdee.bos.dao.IObjectPK; import com.kingdee.bos.dao.IObjectValue; import com.kingdee.bos.dao.IObjectCollection; import com.kingdee.bos.service.ServiceContext; import com.kingdee.bos.service.IServiceContext; import com.kingdee.eas.framework.Result; import com.kingdee.eas.framework.LineResult; import com.kingdee.eas.framework.exception.EASMultiException; import com.kingdee.bos.dao.ormapping.ObjectUuidPK; import com.kingdee.bos.dao.IObjectPK; import com.kingdee.eas.framework.CoreBillBaseCollection; import com.kingdee.eas.framework.app.CoreBillBaseControllerBean; import com.kingdee.bos.metadata.entity.SelectorItemCollection; import com.kingdee.eas.common.EASBizException; import com.kingdee.eas.framework.CoreBaseCollection; import com.kingdee.eas.framework.CoreBaseInfo; import com.kingdee.bos.metadata.entity.EntityViewInfo; import com.kingdee.eas.custom.log.SyncLogCollection; import java.lang.String; import com.kingdee.eas.custom.log.SyncLogInfo; import com.kingdee.eas.framework.ObjectBaseCollection; public abstract class AbstractSyncLogControllerBean extends CoreBillBaseControllerBean implements SyncLogController { protected AbstractSyncLogControllerBean() { } protected BOSObjectType getBOSType() { return new BOSObjectType("95A0551A"); } public SyncLogCollection getSyncLogCollection(Context ctx) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("f02064df-5e88-4cb3-9542-d5b29a6cc54b"), new Object[]{ctx}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SyncLogCollection retValue = (SyncLogCollection)_getCollection(ctx, svcCtx); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SyncLogCollection)svcCtx.getMethodReturnValue(); } catch (BOSException ex) { throw ex; } finally { super.cleanUpServiceState(); } } protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException { return super._getCollection(ctx, svcCtx); } public SyncLogCollection getSyncLogCollection(Context ctx, EntityViewInfo view) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("9206b953-e6db-4453-bd1b-4f30ed2d70dc"), new Object[]{ctx, view}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SyncLogCollection retValue = (SyncLogCollection)_getCollection(ctx, svcCtx, view); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SyncLogCollection)svcCtx.getMethodReturnValue(); } catch (BOSException ex) { throw ex; } finally { super.cleanUpServiceState(); } } protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException { return super._getCollection(ctx, svcCtx, view); } public SyncLogCollection getSyncLogCollection(Context ctx, String oql) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("5c89d33b-2936-417f-941f-228b981f0662"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SyncLogCollection retValue = (SyncLogCollection)_getCollection(ctx, svcCtx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SyncLogCollection)svcCtx.getMethodReturnValue(); } catch (BOSException ex) { throw ex; } finally { super.cleanUpServiceState(); } } protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException { return super._getCollection(ctx, svcCtx, oql); } public SyncLogInfo getSyncLogInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("8b59d9e3-2fd7-4d5d-8553-adc57f45d727"), new Object[]{ctx, pk}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SyncLogInfo retValue = (SyncLogInfo)_getValue(ctx, pk); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SyncLogInfo)svcCtx.getMethodReturnValue(); } catch (BOSException ex) { throw ex; } catch (EASBizException ex0) { throw ex0; } finally { super.cleanUpServiceState(); } } protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException { return super._getValue(ctx, pk); } public SyncLogInfo getSyncLogInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("05ad2c1e-f785-423b-be77-4cbbfc7243a9"), new Object[]{ctx, pk, selector}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SyncLogInfo retValue = (SyncLogInfo)_getValue(ctx, pk, selector); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SyncLogInfo)svcCtx.getMethodReturnValue(); } catch (BOSException ex) { throw ex; } catch (EASBizException ex0) { throw ex0; } finally { super.cleanUpServiceState(); } } protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException { return super._getValue(ctx, pk, selector); } public SyncLogInfo getSyncLogInfo(Context ctx, String oql) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("5ca8fbb3-20a7-4fae-920e-bca84d529e1c"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SyncLogInfo retValue = (SyncLogInfo)_getValue(ctx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SyncLogInfo)svcCtx.getMethodReturnValue(); } catch (BOSException ex) { throw ex; } catch (EASBizException ex0) { throw ex0; } finally { super.cleanUpServiceState(); } } protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException { return super._getValue(ctx, oql); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException { return (CoreBillBaseCollection)(getSyncLogCollection(ctx).cast(CoreBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBillBaseCollection)(getSyncLogCollection(ctx, view).cast(CoreBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBillBaseCollection)(getSyncLogCollection(ctx, oql).cast(CoreBillBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException { return (ObjectBaseCollection)(getSyncLogCollection(ctx).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (ObjectBaseCollection)(getSyncLogCollection(ctx, view).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException { return (ObjectBaseCollection)(getSyncLogCollection(ctx, oql).cast(ObjectBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException { return (CoreBaseCollection)(getSyncLogCollection(ctx).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBaseCollection)(getSyncLogCollection(ctx, view).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBaseCollection)(getSyncLogCollection(ctx, oql).cast(CoreBaseCollection.class)); } }