protected Mst客室タイプマスタCB xcreateColumnQueryCB() { Mst客室タイプマスタCB cb = new Mst客室タイプマスタCB(); cb.xsetupForColumnQuery((Mst客室タイプマスタCB)this); return(cb); }
// =============================================================================== // Page Select // =========== #region Page Select public virtual PagingResultBean <Mst客室タイプマスタ> SelectPage(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); PagingInvoker <Mst客室タイプマスタ> invoker = new PagingInvoker <Mst客室タイプマスタ>(TableDbName); return(invoker.InvokePaging(new InternalSelectPagingHandler(this, cb))); }
public virtual void UnionAll(UnionQuery <Mst客室タイプマスタCB> unionQuery) { Mst客室タイプマスタCB cb = new Mst客室タイプマスタCB(); cb.xsetupForUnion(this); xsyncUQ(cb); unionQuery.Invoke(cb); Mst客室タイプマスタCQ cq = cb.Query(); Query().xsetUnionAllQuery(cq); }
// =============================================================================== // Query Update // ============ public int QueryUpdate(Mst客室タイプマスタ mst客室タイプマスタ, Mst客室タイプマスタCB cb) { AssertObjectNotNull("mst客室タイプマスタ", mst客室タイプマスタ); AssertConditionBeanNotNull(cb); SetupCommonColumnOfUpdateIfNeeds(mst客室タイプマスタ); FilterEntityOfUpdate(mst客室タイプマスタ); AssertEntityOfUpdate(mst客室タイプマスタ); return(this.Dao.UpdateByQuery(cb, mst客室タイプマスタ)); }
// =============================================================================== // Entity Select // ============= #region Entity Select public virtual Mst客室タイプマスタ SelectEntity(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); if (!cb.HasWhereClause() && cb.FetchSize != 1) // if no condition for one { throwSelectEntityConditionNotFoundException(cb); } int preSafetyMaxResultSize = xcheckSafetyResultAsOne(cb); IList <Mst客室タイプマスタ> 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((Mst客室タイプマスタ)ls[0]); }
private Mst客室タイプマスタCB BuildPKCB(String 客室タイプコード) { AssertObjectNotNull("客室タイプコード", 客室タイプコード); Mst客室タイプマスタCB cb = NewMyConditionBean(); cb.Query().Set客室タイプコード_Equal(客室タイプコード); return(cb); }
public void NotInScopeMst客室タイプマスタ(SubQuery <Mst客室タイプマスタCB> subQuery) { assertObjectNotNull("subQuery<Mst客室タイプマスタCB>", subQuery); Mst客室タイプマスタCB cb = new Mst客室タイプマスタCB(); cb.xsetupForInScopeRelation(this); subQuery.Invoke(cb); String subQueryPropertyName = keep客室タイプコード_NotInScopeSubQuery_Mst客室タイプマスタ(cb.Query()); registerNotInScopeSubQuery(cb.Query(), "客室タイプコード", "客室タイプコード", subQueryPropertyName); }
// =============================================================================== // MySelf InScope // ============== public void MyselfInScope(SubQuery <Mst客室タイプマスタCB> subQuery) { assertObjectNotNull("subQuery<Mst客室タイプマスタCB>", subQuery); Mst客室タイプマスタCB cb = new Mst客室タイプマスタCB(); cb.xsetupForInScopeRelation(this); subQuery.Invoke(cb); String subQueryPropertyName = keepMyselfInScopeSubQuery(cb.Query()); // for saving query-value. registerInScopeSubQuery(cb.Query(), "客室タイプコード", "客室タイプコード", subQueryPropertyName); }
public virtual Mst客室タイプマスタ SelectEntityWithDeletedCheck(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); Mst客室タイプマスタ entity = SelectEntity(cb); AssertEntityNotDeleted(entity, cb); return(entity); }
protected void xscalarSubQuery(String function, SubQuery <Mst客室タイプマスタCB> subQuery, String operand) { assertObjectNotNull("subQuery<Mst客室タイプマスタCB>", subQuery); Mst客室タイプマスタCB cb = new Mst客室タイプマスタ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(Mst客室タイプマスタ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 Mst客室タイプマスタCBColQySpQyCall(mainCB)); }
protected IList <Mst客室タイプマスタ> DelegateSelectList(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); return(this.Dao.SelectList(cb)); }
// =============================================================================== // List Select // =========== #region List Select public virtual ListResultBean <Mst客室タイプマスタ> SelectList(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); return(new ResultBeanBuilder <Mst客室タイプマスタ>(TableDbName).BuildListResultBean(cb, this.DelegateSelectList(cb))); }
public Mst客室タイプマスタCBColQySpQyCall(Mst客室タイプマスタCB mainCB) { _mainCB = mainCB; }
public InternalSelectPagingHandler(Mst客室タイプマスタBhv bhv, Mst客室タイプマスタCB cb) { _bhv = bhv; _cb = cb; }
// =============================================================================== // Count Select // ============ #region Count Select public virtual int SelectCount(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); return(this.DelegateSelectCount(cb)); }
// =============================================================================== // Delegate Method // =============== #region Delegate Method protected int DelegateSelectCount(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); return(this.Dao.SelectCount(cb)); }
public int QueryDelete(Mst客室タイプマスタCB cb) { AssertConditionBeanNotNull(cb); return(this.Dao.DeleteByQuery(cb)); }