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