예제 #1
0
        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
        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);
        }
예제 #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月締確定台帳));
 }
예제 #5
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]);
        }
예제 #6
0
        private Dch月締確定台帳CB BuildPKCB(String 対象年月)
        {
            AssertObjectNotNull("対象年月", 対象年月);
            Dch月締確定台帳CB cb = NewMyConditionBean();

            cb.Query().Set対象年月_Equal(対象年月);
            return(cb);
        }
        // ===============================================================================
        //                                                                  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(), "対象年月", "対象年月", subQueryPropertyName);
        }
예제 #8
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);
        }
예제 #10
0
        // ===============================================================================
        //                                                                    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));
        }
예제 #11
0
 // ===============================================================================
 //                                                                 Delegate Method
 //                                                                 ===============
 #region Delegate Method
 protected int DelegateSelectCount(Dch月締確定台帳CB cb)
 {
     AssertConditionBeanNotNull(cb); return(this.Dao.SelectCount(cb));
 }
예제 #12
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)));
 }
예제 #13
0
 public Dch月締確定台帳CBColQySpQyCall(Dch月締確定台帳CB mainCB)
 {
     _mainCB = mainCB;
 }
예제 #14
0
 public InternalSelectPagingHandler(Dch月締確定台帳Bhv bhv, Dch月締確定台帳CB cb)
 {
     _bhv = bhv; _cb = cb;
 }
예제 #15
0
 // ===============================================================================
 //                                                                    Count Select
 //                                                                    ============
 #region Count Select
 public virtual int SelectCount(Dch月締確定台帳CB cb)
 {
     AssertConditionBeanNotNull(cb);
     return(this.DelegateSelectCount(cb));
 }
예제 #16
0
 protected IList <Dch月締確定台帳> DelegateSelectList(Dch月締確定台帳CB cb)
 {
     AssertConditionBeanNotNull(cb); return(this.Dao.SelectList(cb));
 }
예제 #17
0
 public int QueryDelete(Dch月締確定台帳CB cb)
 {
     AssertConditionBeanNotNull(cb);
     return(this.Dao.DeleteByQuery(cb));
 }