protected Dch月締確定台帳CB xcreateColumnQueryCB() { Dch月締確定台帳CB cb = new Dch月締確定台帳CB(); cb.xsetupForColumnQuery((Dch月締確定台帳CB)this); return(cb); }
// =============================================================================== // 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))); }
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); }
// =============================================================================== // 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月締確定台帳)); }
// =============================================================================== // 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]); }
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); }
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); }
// =============================================================================== // 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)); }
// =============================================================================== // Delegate Method // =============== #region Delegate Method protected int DelegateSelectCount(Dch月締確定台帳CB cb) { AssertConditionBeanNotNull(cb); return(this.Dao.SelectCount(cb)); }
// =============================================================================== // 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))); }
public Dch月締確定台帳CBColQySpQyCall(Dch月締確定台帳CB mainCB) { _mainCB = mainCB; }
public InternalSelectPagingHandler(Dch月締確定台帳Bhv bhv, Dch月締確定台帳CB cb) { _bhv = bhv; _cb = cb; }
// =============================================================================== // Count Select // ============ #region Count Select public virtual int SelectCount(Dch月締確定台帳CB cb) { AssertConditionBeanNotNull(cb); return(this.DelegateSelectCount(cb)); }
protected IList <Dch月締確定台帳> DelegateSelectList(Dch月締確定台帳CB cb) { AssertConditionBeanNotNull(cb); return(this.Dao.SelectList(cb)); }
public int QueryDelete(Dch月締確定台帳CB cb) { AssertConditionBeanNotNull(cb); return(this.Dao.DeleteByQuery(cb)); }