Exemple #1
0
        public static RowAction AddInsertAction(Session session, TableBase table, Row row)
        {
            RowAction action = new RowAction(session, table, 1, row, null);

            row.rowAction = action;
            return(action);
        }
Exemple #2
0
        public static RowAction AddDeleteAction(Session session, TableBase table, Row row, int[] colMap)
        {
            RowAction rowAction = row.rowAction;

            if (rowAction == null)
            {
                rowAction     = new RowAction(session, table, 2, row, colMap);
                row.rowAction = rowAction;
                return(rowAction);
            }
            return(rowAction.AddDeleteAction(session, colMap));
        }
Exemple #3
0
 private RowAction MergeExpiredRefActions()
 {
     if (this.UpdatedAction != null)
     {
         this.UpdatedAction = this.UpdatedAction.MergeExpiredRefActions();
     }
     if (this.HasCurrentRefAction())
     {
         return(this);
     }
     return(this.UpdatedAction);
 }
Exemple #4
0
        public virtual bool IsDeleted(Session session, IPersistentStore store)
        {
            RowAction rowAction = ((Row)store.Get(this, false)).rowAction;

            return((rowAction != null) && !rowAction.CanRead(session, 0));
        }