public IList<NodeRoute> Select(NodeRoute data) { IList<NodeRoute> datos = new List<NodeRoute>(); datos = GetHsql(data).List<NodeRoute>(); if (!Factory.IsTransactional) Factory.Commit(); return datos; }
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)); }
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; }
public void DeleteNodeRoute(NodeRoute data) { Factory.DaoNodeRoute().Delete(data); }
public void UpdateNodeRoute(NodeRoute data) { Factory.DaoNodeRoute().Update(data); }
public NodeRoute SaveNodeRoute(NodeRoute data) { return Factory.DaoNodeRoute().Save(data); }
public IList<NodeRoute> GetNodeRoute(NodeRoute data) { return Factory.DaoNodeRoute().Select(data); }
public NodeRoute SelectById(NodeRoute data) { return (NodeRoute)base.SelectById(data); }
public Boolean Delete(NodeRoute data) { return base.Delete(data); }
public Boolean Update(NodeRoute data) { return base.Update(data); }
public NodeRoute Save(NodeRoute data) { return (NodeRoute)base.Save(data); }