C# 클래스 gov.va.medora.mdws.dao.sql.UsageDao

파일 보기 프로젝트 열기: OSEHRA/mdws 1 사용 예제들

공개 메소드들

메소드 설명
UsageDao ( ) : System
UsageDao ( string connectionString ) : System
deleteSession ( string sessionId ) : gov.va.medora.mdws.dto.BoolTO

Delete a session by it's ID and all the corresponding saved requests

getSessions ( System.DateTime start, System.DateTime end ) : ApplicationSessionsTO

Get all the MDWS sessions and the related requests for a given date range

saveSession ( ApplicationSession session ) : gov.va.medora.mdws.dto.BoolTO

Save a ApplicationSession object and it's requests

비공개 메소드들

메소드 설명
addApplicationRequest ( DataRow row, ApplicationSession parentSession ) : void
buildDeleteSessionAdapter ( string sessionId, SqlConnection conn, SqlTransaction tx ) : SqlDataAdapter
buildInsertRequestAdapter ( ApplicationRequest request, SqlConnection conn, SqlTransaction tx ) : SqlDataAdapter

This is going to be commented out because it becomes unusably slow after a few hundred thousand unique sessions are created. Use the getSessions(int howMany) function instead to retrieve the latest howMany number of sessions

buildInsertSessionAdapter ( ApplicationSession session, SqlConnection conn, SqlTransaction tx ) : SqlDataAdapter
buildSelectSessionRequestsAdapter ( SqlConnection conn, SqlTransaction tx ) : SqlDataAdapter
buildSelectSessionsAdapter ( System.DateTime start, System.DateTime end, SqlConnection conn, SqlTransaction tx ) : SqlDataAdapter

Build SQL adapter for selecting all MDWS sessions saved to database that where started between a given date range

getApplicationSessions ( DataSet dataSet ) : ApplicationSessions
getConnection ( ) : SqlConnection

메소드 상세

UsageDao() 공개 메소드

public UsageDao ( ) : System
리턴 System

UsageDao() 공개 메소드

public UsageDao ( string connectionString ) : System
connectionString string
리턴 System

deleteSession() 공개 메소드

Delete a session by it's ID and all the corresponding saved requests
public deleteSession ( string sessionId ) : gov.va.medora.mdws.dto.BoolTO
sessionId string The session ID to be deleted
리턴 gov.va.medora.mdws.dto.BoolTO

getSessions() 공개 메소드

Get all the MDWS sessions and the related requests for a given date range
public getSessions ( System.DateTime start, System.DateTime end ) : ApplicationSessionsTO
start System.DateTime The start date
end System.DateTime The end date
리턴 ApplicationSessionsTO

saveSession() 공개 메소드

Save a ApplicationSession object and it's requests
public saveSession ( ApplicationSession session ) : gov.va.medora.mdws.dto.BoolTO
session ApplicationSession The session object to save
리턴 gov.va.medora.mdws.dto.BoolTO