package com.kingdee.eas.custom.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.eas.custom.PlatPreResCollection; import com.kingdee.bos.dao.IObjectPK; import com.kingdee.eas.framework.ObjectBaseCollection; import com.kingdee.eas.custom.PlatPreResInfo; import java.lang.String; import com.kingdee.eas.framework.CoreBillBaseCollection; import com.kingdee.eas.hr.base.HRBillBaseCollection; import com.kingdee.bos.metadata.entity.EntityViewInfo; import com.kingdee.eas.hr.base.app.HRBillBaseControllerBean; import com.kingdee.eas.framework.CoreBaseCollection; import com.kingdee.eas.framework.CoreBaseInfo; import com.kingdee.eas.common.EASBizException; import com.kingdee.bos.metadata.entity.SelectorItemCollection; public abstract class AbstractPlatPreResControllerBean extends HRBillBaseControllerBean implements PlatPreResController { protected AbstractPlatPreResControllerBean() { } protected BOSObjectType getBOSType() { return new BOSObjectType("E9FDC711"); } public PlatPreResCollection getPlatPreResCollection(Context ctx) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("eb7645f2-ccf8-4d80-bafb-19cb11b90c5c"), new Object[]{ctx}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResCollection retValue = (PlatPreResCollection)_getCollection(ctx, svcCtx); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResCollection)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 PlatPreResCollection getPlatPreResCollection(Context ctx, EntityViewInfo view) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("044b6ac5-39eb-4502-ae43-b7dd8a9ca197"), new Object[]{ctx, view}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResCollection retValue = (PlatPreResCollection)_getCollection(ctx, svcCtx, view); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResCollection)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 PlatPreResCollection getPlatPreResCollection(Context ctx, String oql) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("bf5e407a-6da6-441e-85a2-c689ccc58401"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResCollection retValue = (PlatPreResCollection)_getCollection(ctx, svcCtx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResCollection)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 PlatPreResInfo getPlatPreResInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("6da7d9ae-09a1-41ca-82a1-743392ec27c8"), new Object[]{ctx, pk}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResInfo retValue = (PlatPreResInfo)_getValue(ctx, pk); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResInfo)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 PlatPreResInfo getPlatPreResInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("7d20736d-b0a6-4995-90ce-d772d8fa2ad3"), new Object[]{ctx, pk, selector}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResInfo retValue = (PlatPreResInfo)_getValue(ctx, pk, selector); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResInfo)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 PlatPreResInfo getPlatPreResInfo(Context ctx, String oql) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("2ea07743-6e0c-43b0-8106-986f769b1e4c"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResInfo retValue = (PlatPreResInfo)_getValue(ctx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResInfo)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 HRBillBaseCollection getHRBillBaseCollection (Context ctx) throws BOSException { return (HRBillBaseCollection)(getPlatPreResCollection(ctx).cast(HRBillBaseCollection.class)); } public HRBillBaseCollection getHRBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (HRBillBaseCollection)(getPlatPreResCollection(ctx, view).cast(HRBillBaseCollection.class)); } public HRBillBaseCollection getHRBillBaseCollection (Context ctx, String oql) throws BOSException { return (HRBillBaseCollection)(getPlatPreResCollection(ctx, oql).cast(HRBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException { return (CoreBillBaseCollection)(getPlatPreResCollection(ctx).cast(CoreBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBillBaseCollection)(getPlatPreResCollection(ctx, view).cast(CoreBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBillBaseCollection)(getPlatPreResCollection(ctx, oql).cast(CoreBillBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException { return (ObjectBaseCollection)(getPlatPreResCollection(ctx).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (ObjectBaseCollection)(getPlatPreResCollection(ctx, view).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException { return (ObjectBaseCollection)(getPlatPreResCollection(ctx, oql).cast(ObjectBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException { return (CoreBaseCollection)(getPlatPreResCollection(ctx).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBaseCollection)(getPlatPreResCollection(ctx, view).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBaseCollection)(getPlatPreResCollection(ctx, oql).cast(CoreBaseCollection.class)); } }