/// <summary> /// Gets all Syslog objects /// <remarks> /// Returns Syslog objects in an array list /// using the given criteria /// </remarks> /// <retvalue>ArrayList containing Syslog object</retvalue> /// </summary> public ArrayList Get(long pLngSyslogID, long pLngInteractionID, DateTime pDtBeginDateCreated, DateTime pDtEndDateCreated, DateTime pDtBeginDateModified, DateTime pDtEndDateModified, string pStrMsgsource, string pStrMsgaction, string pStrMsgtxt) { Syslog data = null; _arrlstEntities = new ArrayList(); EnumSyslog enumSyslog = new EnumSyslog(_conn); enumSyslog.SP_ENUM_NAME = (!string.IsNullOrEmpty(SP_ENUM_NAME)) ? SP_ENUM_NAME : enumSyslog.SP_ENUM_NAME; enumSyslog.SyslogID = pLngSyslogID; enumSyslog.InteractionID = pLngInteractionID; enumSyslog.BeginDateCreated = pDtBeginDateCreated; enumSyslog.EndDateCreated = pDtEndDateCreated; enumSyslog.BeginDateModified = pDtBeginDateModified; enumSyslog.EndDateModified = pDtEndDateModified; enumSyslog.Msgsource = pStrMsgsource; enumSyslog.Msgaction = pStrMsgaction; enumSyslog.Msgtxt = pStrMsgtxt; enumSyslog.EnumData(); while (enumSyslog.hasMoreElements()) { data = (Syslog)enumSyslog.nextElement(); _arrlstEntities.Add(data); } enumSyslog = null; ArrayList.ReadOnly(_arrlstEntities); return(_arrlstEntities); }
/// <summary> /// SyslogGetList /// </summary> /// <param name="">pEnumSyslog</param> /// <returns>ArrayList</returns> /// public ArrayList SyslogGetList(EnumSyslog pEnumSyslog) { ArrayList items = null; bool bConn = false; SqlConnection conn = getDBConnection(); if (conn != null) { BusSyslog busSyslog = null; busSyslog = new BusSyslog(conn); items = busSyslog.Get(pEnumSyslog); // close the db connection bConn = CloseConnection(conn); _hasError = busSyslog.HasError; if (busSyslog.HasError) { // error ErrorCode error = new ErrorCode(); } } return(items); }
/// <summary> /// Gets all Syslog objects /// <remarks> /// Returns ArrayList containing object passed in /// </remarks> /// <param name="o">Syslog to be returned</param> /// <retvalue>ArrayList containing Syslog object</retvalue> /// </summary> public ArrayList Get(EnumSyslog o) { return(Get(o.SyslogID, o.InteractionID, o.BeginDateCreated, o.EndDateCreated, o.BeginDateModified, o.EndDateModified, o.Msgsource, o.Msgaction, o.Msgtxt)); }