예제 #1
0
        public IList<NodeRoute> Select(NodeRoute data)
        {

                IList<NodeRoute> datos = new List<NodeRoute>();

                datos = GetHsql(data).List<NodeRoute>();
                if (!Factory.IsTransactional)
                    Factory.Commit();
                return datos;
        }
예제 #2
0
        public override Boolean Equals(object obj)
        {
            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }
            NodeRoute castObj = (NodeRoute)obj;

            return((castObj != null) &&
                   (this.RowID == castObj.RowID));
        }
예제 #3
0
파일: Rules.cs 프로젝트: erwin-hamid/LogPro
        public Boolean ValidateNodeRoute(Label label, Node node, Boolean autoThrow)
        {
            NodeRoute nodeRoute = new NodeRoute
            {
                NextNode = node,
                CurNode = label.Node
            };

            if (Factory.DaoNodeRoute().Select(nodeRoute).Count == 0)
            {
                if (autoThrow)
                {
                    Factory.Rollback();
                    throw new Exception("Transaction from " + label.Node.Name + " to " + node.Name + " not allowed.");
                }
                else
                    return false;
            }

            return true;
        }
예제 #4
0
 public void DeleteNodeRoute(NodeRoute data) { Factory.DaoNodeRoute().Delete(data); }
예제 #5
0
 public void UpdateNodeRoute(NodeRoute data) { Factory.DaoNodeRoute().Update(data); }
예제 #6
0
 public NodeRoute SaveNodeRoute(NodeRoute data) { return Factory.DaoNodeRoute().Save(data); }
예제 #7
0
 public IList<NodeRoute> GetNodeRoute(NodeRoute data) { return Factory.DaoNodeRoute().Select(data); }
예제 #8
0
 public NodeRoute SelectById(NodeRoute data)
 {
     return (NodeRoute)base.SelectById(data);
 }
예제 #9
0
 public Boolean Delete(NodeRoute data)
 {
     return base.Delete(data);
 }
예제 #10
0
 public Boolean Update(NodeRoute data)
 {
     return base.Update(data);
 }
예제 #11
0
 public NodeRoute Save(NodeRoute data)
 {
     return (NodeRoute)base.Save(data);
 }