Example #1
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従業員職位履歴台帳));
 }
Example #2
0
 protected int DelegateDelete(Dch従業員職位履歴台帳 e)
 {
     if (!ProcessBeforeDelete(e))
     {
         return(1);
     }
     return(this.Dao.DeleteNonstrict(e));
 }
Example #3
0
 protected int DelegateUpdate(Dch従業員職位履歴台帳 e)
 {
     if (!ProcessBeforeUpdate(e))
     {
         return(1);
     }
     return(this.Dao.UpdateNonstrictModifiedOnly(e));
 }
Example #4
0
 protected int DelegateInsert(Dch従業員職位履歴台帳 e)
 {
     if (!ProcessBeforeInsert(e))
     {
         return(1);
     }
     return(this.Dao.Insert(e));
 }
Example #5
0
        public virtual Dch従業員職位履歴台帳 SelectEntityWithDeletedCheck(Dch従業員職位履歴台帳CB cb)
        {
            AssertConditionBeanNotNull(cb);
            Dch従業員職位履歴台帳 entity = SelectEntity(cb);

            AssertEntityNotDeleted(entity, cb);
            return(entity);
        }
Example #6
0
        public virtual void Update(Dch従業員職位履歴台帳 entity)
        {
            AssertEntityNotNull(entity);
            AssertEntityHasVersionNoValue(entity);
            AssertEntityHasUpdateDateValue(entity);
            int updatedCount = this.DelegateUpdate(entity);

            AssertUpdatedEntity(entity, updatedCount);
        }
Example #7
0
 public virtual void Delete(Dch従業員職位履歴台帳 entity)
 {
     HelpDeleteInternally <Dch従業員職位履歴台帳>(entity, new MyInternalDeleteCallback(this));
 }
Example #8
0
 public void InsertOrUpdate(Dch従業員職位履歴台帳 entity)
 {
     HelpInsertOrUpdateInternally <Dch従業員職位履歴台帳, Dch従業員職位履歴台帳CB>(entity, new MyInternalInsertOrUpdateCallback(this));
 }
Example #9
0
 // ===============================================================================
 //                                                                   Entity Update
 //                                                                   =============
 #region Basic Entity Update
 public virtual void Insert(Dch従業員職位履歴台帳 entity)
 {
     AssertEntityNotNull(entity);
     this.DelegateInsert(entity);
 }
Example #10
0
        protected override void SetupNextValueToPrimaryKey(Entity entity)  // Very Internal
        {
            Dch従業員職位履歴台帳 myEntity = (Dch従業員職位履歴台帳)entity;

            myEntity.Id = SelectNextVal();
        }