protected Dch従業員職位履歴台帳CB xcreateColumnQueryCB()
        {
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB();

            cb.xsetupForColumnQuery((Dch従業員職位履歴台帳CB)this);
            return(cb);
        }
예제 #2
0
        // ===============================================================================
        //                                                                     Page Select
        //                                                                     ===========
        #region Page Select
        public virtual PagingResultBean <Dch従業員職位履歴台帳> SelectPage(Dch従業員職位履歴台帳CB cb)
        {
            AssertConditionBeanNotNull(cb);
            PagingInvoker <Dch従業員職位履歴台帳> invoker = new PagingInvoker <Dch従業員職位履歴台帳>(TableDbName);

            return(invoker.InvokePaging(new InternalSelectPagingHandler(this, cb)));
        }
예제 #3
0
        // ===============================================================================
        //                                                                   Entity Select
        //                                                                   =============
        #region Entity Select
        public virtual Dch従業員職位履歴台帳 SelectEntity(Dch従業員職位履歴台帳CB cb)
        {
            AssertConditionBeanNotNull(cb);
            if (!cb.HasWhereClause() && cb.FetchSize != 1)   // if no condition for one
            {
                throwSelectEntityConditionNotFoundException(cb);
            }
            int preSafetyMaxResultSize = xcheckSafetyResultAsOne(cb);
            IList <Dch従業員職位履歴台帳> ls    = null;

            try {
                ls = this.DelegateSelectList(cb);
            } catch (DangerousResultSizeException e) {
                ThrowEntityDuplicatedException("{over safetyMaxResultSize '1'}", cb, e);
                return(null); // unreachable
            } finally {
                xrestoreSafetyResult(cb, preSafetyMaxResultSize);
            }
            if (ls.Count == 0)
            {
                return(null);
            }
            AssertEntitySelectedAsOne(ls, cb);
            return((Dch従業員職位履歴台帳)ls[0]);
        }
예제 #4
0
 // ===============================================================================
 //                                                                    Query Update
 //                                                                    ============
 public int QueryUpdate(Dch従業員職位履歴台帳 dch従業員職位履歴台帳, Dch従業員職位履歴台帳CB cb)
 {
     AssertObjectNotNull("dch従業員職位履歴台帳", dch従業員職位履歴台帳); AssertConditionBeanNotNull(cb);
     SetupCommonColumnOfUpdateIfNeeds(dch従業員職位履歴台帳);
     FilterEntityOfUpdate(dch従業員職位履歴台帳); AssertEntityOfUpdate(dch従業員職位履歴台帳);
     return(this.Dao.UpdateByQuery(cb, dch従業員職位履歴台帳));
 }
        public virtual void UnionAll(UnionQuery <Dch従業員職位履歴台帳CB> unionQuery)
        {
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB();

            cb.xsetupForUnion(this); xsyncUQ(cb); unionQuery.Invoke(cb);
            Dch従業員職位履歴台帳CQ cq = cb.Query(); Query().xsetUnionAllQuery(cq);
        }
예제 #6
0
        private Dch従業員職位履歴台帳CB BuildPKCB(long?id)
        {
            AssertObjectNotNull("id", id);
            Dch従業員職位履歴台帳CB cb = NewMyConditionBean();

            cb.Query().SetId_Equal(id);
            return(cb);
        }
예제 #7
0
        public virtual Dch従業員職位履歴台帳 SelectEntityWithDeletedCheck(Dch従業員職位履歴台帳CB cb)
        {
            AssertConditionBeanNotNull(cb);
            Dch従業員職位履歴台帳 entity = SelectEntity(cb);

            AssertEntityNotDeleted(entity, cb);
            return(entity);
        }
        protected void xscalarSubQuery(String function, SubQuery <Dch従業員職位履歴台帳CB> subQuery, String operand)
        {
            assertObjectNotNull("subQuery<Dch従業員職位履歴台帳CB>", subQuery);
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB(); cb.xsetupForScalarCondition(this); subQuery.Invoke(cb);
            String         subQueryPropertyName = keepScalarSubQuery(cb.Query()); // for saving query-value.

            registerScalarSubQuery(function, cb.Query(), subQueryPropertyName, operand);
        }
        public void xsderiveDch従業員職位履歴台帳List(String function, SubQuery <Dch従業員職位履歴台帳CB> subQuery, String aliasName)
        {
            assertObjectNotNull("subQuery<Dch従業員職位履歴台帳CB>", subQuery);
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB(); cb.xsetupForDerivedReferrer(this); subQuery.Invoke(cb);
            String         subQueryPropertyName = keep職位コード_SpecifyDerivedReferrer_Dch従業員職位履歴台帳List(cb.Query());

            registerSpecifyDerivedReferrer(function, cb.Query(), "職位コード", "職位コード", subQueryPropertyName, aliasName);
        }
        public void ExistsDch従業員職位履歴台帳List(SubQuery <Dch従業員職位履歴台帳CB> subQuery)
        {
            assertObjectNotNull("subQuery<Dch従業員職位履歴台帳CB>", subQuery);
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB(); cb.xsetupForExistsReferrer(this); subQuery.Invoke(cb);
            String         subQueryPropertyName = keep職位コード_ExistsSubQuery_Dch従業員職位履歴台帳List(cb.Query());

            registerExistsSubQuery(cb.Query(), "職位コード", "職位コード", subQueryPropertyName);
        }
        public void NotInScopeDch従業員職位履歴台帳List(SubQuery <Dch従業員職位履歴台帳CB> subQuery)
        {
            assertObjectNotNull("subQuery<Dch従業員職位履歴台帳CB>", subQuery);
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB(); cb.xsetupForInScopeRelation(this); subQuery.Invoke(cb);
            String         subQueryPropertyName = keep職位コード_NotInScopeSubQuery_Dch従業員職位履歴台帳List(cb.Query());

            registerNotInScopeSubQuery(cb.Query(), "職位コード", "職位コード", subQueryPropertyName);
        }
        // ===============================================================================
        //                                                                  MySelf InScope
        //                                                                  ==============
        public void MyselfInScope(SubQuery <Dch従業員職位履歴台帳CB> subQuery)
        {
            assertObjectNotNull("subQuery<Dch従業員職位履歴台帳CB>", subQuery);
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB(); cb.xsetupForInScopeRelation(this); subQuery.Invoke(cb);
            String         subQueryPropertyName = keepMyselfInScopeSubQuery(cb.Query()); // for saving query-value.

            registerInScopeSubQuery(cb.Query(), "id", "id", subQueryPropertyName);
        }
        public void xqderiveDch従業員職位履歴台帳List(String function, SubQuery <Dch従業員職位履歴台帳CB> subQuery, String operand, Object value)
        {
            assertObjectNotNull("subQuery<Dch従業員職位履歴台帳CB>", subQuery);
            Dch従業員職位履歴台帳CB cb = new Dch従業員職位履歴台帳CB(); cb.xsetupForDerivedReferrer(this); subQuery.Invoke(cb);
            String         subQueryPropertyName  = keep職位コード_QueryDerivedReferrer_Dch従業員職位履歴台帳List(cb.Query()); // for saving query-value.
            String         parameterPropertyName = keep職位コード_QueryDerivedReferrer_Dch従業員職位履歴台帳ListParameter(value);

            registerQueryDerivedReferrer(function, cb.Query(), "職位コード", "職位コード", subQueryPropertyName, operand, value, parameterPropertyName);
        }
        // ===============================================================================
        //                                                                    Purpose Type
        //                                                                    ============
        public void xsetupForColumnQuery(Dch従業員職位履歴台帳CB mainCB)
        {
            xinheritSubQueryInfo(mainCB.LocalCQ);
            //xchangePurposeSqlClause(HpCBPurpose.COLUMN_QUERY);
            _forColumnQuery = true; // old style

            // inherits a parent query to synchronize real name
            // (and also for suppressing query check)
            Specify().xsetSyncQyCall(new Dch従業員職位履歴台帳CBColQySpQyCall(mainCB));
        }
예제 #15
0
 // ===============================================================================
 //                                                                 Delegate Method
 //                                                                 ===============
 #region Delegate Method
 protected int DelegateSelectCount(Dch従業員職位履歴台帳CB cb)
 {
     AssertConditionBeanNotNull(cb); return(this.Dao.SelectCount(cb));
 }
 public Dch従業員職位履歴台帳CBColQySpQyCall(Dch従業員職位履歴台帳CB mainCB)
 {
     _mainCB = mainCB;
 }
예제 #17
0
 // ===============================================================================
 //                                                                     List Select
 //                                                                     ===========
 #region List Select
 public virtual ListResultBean <Dch従業員職位履歴台帳> SelectList(Dch従業員職位履歴台帳CB cb)
 {
     AssertConditionBeanNotNull(cb);
     return(new ResultBeanBuilder <Dch従業員職位履歴台帳>(TableDbName).BuildListResultBean(cb, this.DelegateSelectList(cb)));
 }
예제 #18
0
 // ===============================================================================
 //                                                                    Count Select
 //                                                                    ============
 #region Count Select
 public virtual int SelectCount(Dch従業員職位履歴台帳CB cb)
 {
     AssertConditionBeanNotNull(cb);
     return(this.DelegateSelectCount(cb));
 }
예제 #19
0
 protected IList <Dch従業員職位履歴台帳> DelegateSelectList(Dch従業員職位履歴台帳CB cb)
 {
     AssertConditionBeanNotNull(cb); return(this.Dao.SelectList(cb));
 }
예제 #20
0
 public int QueryDelete(Dch従業員職位履歴台帳CB cb)
 {
     AssertConditionBeanNotNull(cb);
     return(this.Dao.DeleteByQuery(cb));
 }
예제 #21
0
 public InternalSelectPagingHandler(Dch従業員職位履歴台帳Bhv bhv, Dch従業員職位履歴台帳CB cb)
 {
     _bhv = bhv; _cb = cb;
 }