package com.kingdee.eas.custom.bd.param.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.framework.CoreBaseInfo; import com.kingdee.bos.dao.IObjectPK; import com.kingdee.eas.custom.bd.param.ParamCollection; import com.kingdee.shr.base.syssetting.app.SHRBaseItemControllerBean; import com.kingdee.eas.custom.bd.param.ParamInfo; import com.kingdee.bos.metadata.entity.SelectorItemCollection; import com.kingdee.shr.base.syssetting.SHRBaseItemCollection; import com.kingdee.eas.common.EASBizException; import com.kingdee.eas.framework.CoreBaseCollection; import com.kingdee.bos.metadata.entity.EntityViewInfo; import java.lang.String; import com.kingdee.eas.framework.DataBaseCollection; import com.kingdee.eas.framework.ObjectBaseCollection; public abstract class AbstractParamControllerBean extends SHRBaseItemControllerBean implements ParamController { protected AbstractParamControllerBean() { } protected BOSObjectType getBOSType() { return new BOSObjectType("1C90B28B"); } public ParamInfo getParamInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("ac1d7b1d-bde8-455d-9d32-bc51e1ee1898"), new Object[]{ctx, pk}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { ParamInfo retValue = (ParamInfo)_getValue(ctx, pk); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (ParamInfo)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 ParamInfo getParamInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("bc87a4e8-a40a-41e4-b2fc-3d7b6af6023a"), new Object[]{ctx, pk, selector}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { ParamInfo retValue = (ParamInfo)_getValue(ctx, pk, selector); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (ParamInfo)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 ParamInfo getParamInfo(Context ctx, String oql) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("9d770d6b-b94c-4fd0-9ca8-138722bdaca2"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { ParamInfo retValue = (ParamInfo)_getValue(ctx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (ParamInfo)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 ParamCollection getParamCollection(Context ctx) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("ec5f993d-46f1-4e26-ae56-465c0c075bd7"), new Object[]{ctx}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { ParamCollection retValue = (ParamCollection)_getCollection(ctx, svcCtx); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (ParamCollection)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 ParamCollection getParamCollection(Context ctx, EntityViewInfo view) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("db91aad9-a32c-4b7a-a5e6-87a40674b5af"), new Object[]{ctx, view}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { ParamCollection retValue = (ParamCollection)_getCollection(ctx, svcCtx, view); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (ParamCollection)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 ParamCollection getParamCollection(Context ctx, String oql) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("15bd8ffe-a6a0-407e-89f0-8f7e46d9dbd4"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { ParamCollection retValue = (ParamCollection)_getCollection(ctx, svcCtx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (ParamCollection)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 SHRBaseItemCollection getSHRBaseItemCollection (Context ctx) throws BOSException { return (SHRBaseItemCollection)(getParamCollection(ctx).cast(SHRBaseItemCollection.class)); } public SHRBaseItemCollection getSHRBaseItemCollection (Context ctx, EntityViewInfo view) throws BOSException { return (SHRBaseItemCollection)(getParamCollection(ctx, view).cast(SHRBaseItemCollection.class)); } public SHRBaseItemCollection getSHRBaseItemCollection (Context ctx, String oql) throws BOSException { return (SHRBaseItemCollection)(getParamCollection(ctx, oql).cast(SHRBaseItemCollection.class)); } public DataBaseCollection getDataBaseCollection (Context ctx) throws BOSException { return (DataBaseCollection)(getParamCollection(ctx).cast(DataBaseCollection.class)); } public DataBaseCollection getDataBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (DataBaseCollection)(getParamCollection(ctx, view).cast(DataBaseCollection.class)); } public DataBaseCollection getDataBaseCollection (Context ctx, String oql) throws BOSException { return (DataBaseCollection)(getParamCollection(ctx, oql).cast(DataBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException { return (ObjectBaseCollection)(getParamCollection(ctx).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (ObjectBaseCollection)(getParamCollection(ctx, view).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException { return (ObjectBaseCollection)(getParamCollection(ctx, oql).cast(ObjectBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException { return (CoreBaseCollection)(getParamCollection(ctx).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBaseCollection)(getParamCollection(ctx, view).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBaseCollection)(getParamCollection(ctx, oql).cast(CoreBaseCollection.class)); } }