public override IQuery GetHsql(object data)
        {
            StringBuilder        sql = new StringBuilder("select a from MessageRuleExtension a  where  ");
            MessageRuleExtension MessageRuleExtension = (MessageRuleExtension)data;

            if (MessageRuleExtension != null)
            {
                Parms = new List <Object[]>();

                if (MessageRuleExtension.RowID != 0)
                {
                    sql.Append(" a.RowID = :id     and    ");
                    Parms.Add(new Object[] { "id", MessageRuleExtension.RowID });
                }

                if (MessageRuleExtension.Rule != null && MessageRuleExtension.Rule.RowID != 0)
                {
                    sql.Append(" a.Rule.RowID = :id1     and   ");
                    Parms.Add(new Object[] { "id1", MessageRuleExtension.Rule.RowID });
                }
            }

            sql = new StringBuilder(sql.ToString());
            sql.Append("1=1 order by a.RowID asc ");
            IQuery query = Factory.Session.CreateQuery(sql.ToString());

            SetParameters(query);
            return(query);
        }
        public IList <MessageRuleExtension> Select(MessageRuleExtension data)
        {
            IList <MessageRuleExtension> datos = new List <MessageRuleExtension>();

            datos = GetHsql(data).List <MessageRuleExtension>();
            if (!Factory.IsTransactional)
            {
                Factory.Commit();
            }
            return(datos);
        }
Beispiel #3
0
 public void UpdateMessageRuleExtension(MessageRuleExtension data) { Factory.DaoMessageRuleExtension().Update(data); }
Beispiel #4
0
 public void DeleteMessageRuleExtension(MessageRuleExtension data) { Factory.DaoMessageRuleExtension().Delete(data); }
Beispiel #5
0
 public MessageRuleExtension SaveMessageRuleExtension(MessageRuleExtension data) { return Factory.DaoMessageRuleExtension().Save(data); }
Beispiel #6
0
 public IList<MessageRuleExtension> GetMessageRuleExtension(MessageRuleExtension data) { return Factory.DaoMessageRuleExtension().Select(data); }
Beispiel #7
0
 public void DeleteMessageRuleExtension(MessageRuleExtension data)
 {
     try
     {
         SetService(); SerClient.DeleteMessageRuleExtension(data);
     }
     finally
     {
         SerClient.Close();
         if (SerClient.State == CommunicationState.Faulted)
             SerClient.Abort();
     }
 }
Beispiel #8
0
 public MessageRuleExtension SaveMessageRuleExtension(MessageRuleExtension data)
 {
     try
     {
         SetService(); return SerClient.SaveMessageRuleExtension(data);
     }
     finally
     {
         SerClient.Close();
         if (SerClient.State == CommunicationState.Faulted)
             SerClient.Abort();
     }
 }
 public MessageRuleExtension SelectById(MessageRuleExtension data)
 {
     return((MessageRuleExtension)base.SelectById(data));
 }
 public Boolean Delete(MessageRuleExtension data)
 {
     return(base.Delete(data));
 }
 public Boolean Update(MessageRuleExtension data)
 {
     return(base.Update(data));
 }
 public MessageRuleExtension Save(MessageRuleExtension data)
 {
     return((MessageRuleExtension)base.Save(data));
 }