C# 클래스 TRManager.UtilityDB

파일 보기 프로젝트 열기: UristMcMiner/SE-Projekt_RWB.csharp

공개 메소드들

메소드 설명
addFullIncident ( int ticket_ID, int student_ID, int teacher_ID, System.DateTime arrival, String comment, System.DateTime leave ) : System.Boolean

Adds an Complete incident to the database.

addIncident ( int ticket_ID, int student_ID, int teacher_ID, System.DateTime arrival, String comment ) : System.Boolean

Adds an incident to the database.

getAllIncidents ( ) : List
getClass ( String className ) : Class

Gets a class object by ClassName.

getClass ( int class_ID ) : Class

Gets a class object by Class_ID.

getClassTable ( ) : List

Gets the class table for export.

getClassTeacher ( String className ) : Teacher

Gets a teacher object by className.

getClasses ( ) : List

Gets a list of all classes.

getCommentTable ( ) : List
getExportData ( ) : List

Gets all incidents combined with related data for export.

getIncident ( int incident_ID ) : Incident

Gets an incident object by Incident_ID.

getIncidentTable ( ) : List

Gets the incident table for export.

getMaxTicket_ID ( ) : String

Gets the maximum ticket_ identifier.

getOpenIncidents ( ) : List

Gets a list of the open incidents.

getOpenIncidents ( List StudentIDs, List TeacherIDs, int TicketID ) : List
getReturnerTicketID ( int StudentID ) : int

Gets the teacher table for export.

getStudent ( int student_ID ) : Student

Gets a student object.

getStudent ( string givenName, string surname ) : Student

Gets a student object by givenName and surname of the student.

getStudentFilter ( string name ) : List
getStudentIncidents ( int student_ID ) : List
getStudentTable ( ) : List

Gets the student table for export.

getStudents ( int class_ID ) : List

Gets the students of a class by Class_ID.

getStudents ( string className ) : List

Gets a list of student objects by the name of the class.

getTeacher ( String initials ) : Teacher

Gets a teacher objectby the initials.

getTeacher ( String givenName, String surname ) : Teacher

Gets a teacher objectby the full name.

getTeacher ( int teacher_ID ) : Teacher

Gets a teacher object by Teacher_ID.

getTeacherFilter ( String filter ) : List
getTeacherTable ( ) : List
incidentIsOpen ( int inc_id ) : System.Boolean
setAdminPassword ( String pass ) : System.Boolean

Set Admin-Password in DB

setLeaveTime ( Incident i ) : System.Boolean

Sets the leave time of an incident to the current time.

validateAdmin ( String pass ) : System.Boolean

Validate Admin-Password

비공개 메소드들

메소드 설명
closeconnection ( ) : void

Closes the connection to the database.

openconnection ( ) : void

Opens the connection to the database.

메소드 상세

addFullIncident() 공개 정적인 메소드

Adds an Complete incident to the database.
public static addFullIncident ( int ticket_ID, int student_ID, int teacher_ID, System.DateTime arrival, String comment, System.DateTime leave ) : System.Boolean
ticket_ID int The ticket identifier.
student_ID int The student identifier.
teacher_ID int The teacher identifier.
arrival System.DateTime The arrival time.
comment String The comment.
leave System.DateTime
리턴 System.Boolean

addIncident() 공개 정적인 메소드

Adds an incident to the database.
public static addIncident ( int ticket_ID, int student_ID, int teacher_ID, System.DateTime arrival, String comment ) : System.Boolean
ticket_ID int The ticket identifier.
student_ID int The student identifier.
teacher_ID int The teacher identifier.
arrival System.DateTime The arrival time.
comment String The comment.
리턴 System.Boolean

getAllIncidents() 공개 정적인 메소드

public static getAllIncidents ( ) : List
리턴 List

getClass() 공개 정적인 메소드

Gets a class object by ClassName.
public static getClass ( String className ) : Class
className String The Name of the class.
리턴 Class

getClass() 공개 정적인 메소드

Gets a class object by Class_ID.
public static getClass ( int class_ID ) : Class
class_ID int
리턴 Class

getClassTable() 공개 정적인 메소드

Gets the class table for export.
public static getClassTable ( ) : List
리턴 List

getClassTeacher() 공개 정적인 메소드

Gets a teacher object by className.
public static getClassTeacher ( String className ) : Teacher
className String The name of the class.
리턴 Teacher

getClasses() 공개 정적인 메소드

Gets a list of all classes.
public static getClasses ( ) : List
리턴 List

getCommentTable() 공개 정적인 메소드

public static getCommentTable ( ) : List
리턴 List

getExportData() 공개 정적인 메소드

Gets all incidents combined with related data for export.
public static getExportData ( ) : List
리턴 List

getIncident() 공개 정적인 메소드

Gets an incident object by Incident_ID.
public static getIncident ( int incident_ID ) : Incident
incident_ID int The incident identifier.
리턴 Incident

getIncidentTable() 공개 정적인 메소드

Gets the incident table for export.
public static getIncidentTable ( ) : List
리턴 List

getMaxTicket_ID() 공개 정적인 메소드

Gets the maximum ticket_ identifier.
public static getMaxTicket_ID ( ) : String
리턴 String

getOpenIncidents() 공개 정적인 메소드

Gets a list of the open incidents.
public static getOpenIncidents ( ) : List
리턴 List

getOpenIncidents() 공개 정적인 메소드

public static getOpenIncidents ( List StudentIDs, List TeacherIDs, int TicketID ) : List
StudentIDs List
TeacherIDs List
TicketID int
리턴 List

getReturnerTicketID() 공개 정적인 메소드

Gets the teacher table for export.
public static getReturnerTicketID ( int StudentID ) : int
StudentID int
리턴 int

getStudent() 공개 정적인 메소드

Gets a student object.
public static getStudent ( int student_ID ) : Student
student_ID int The identifier of the student.
리턴 Student

getStudent() 공개 정적인 메소드

Gets a student object by givenName and surname of the student.
public static getStudent ( string givenName, string surname ) : Student
givenName string The given name of the student.
surname string The surname of the student.
리턴 Student

getStudentFilter() 공개 정적인 메소드

public static getStudentFilter ( string name ) : List
name string
리턴 List

getStudentIncidents() 공개 정적인 메소드

public static getStudentIncidents ( int student_ID ) : List
student_ID int The student identifier.
리턴 List

getStudentTable() 공개 정적인 메소드

Gets the student table for export.
public static getStudentTable ( ) : List
리턴 List

getStudents() 공개 정적인 메소드

Gets the students of a class by Class_ID.
public static getStudents ( int class_ID ) : List
class_ID int The class identifier.
리턴 List

getStudents() 공개 정적인 메소드

Gets a list of student objects by the name of the class.
public static getStudents ( string className ) : List
className string Name of the class.
리턴 List

getTeacher() 공개 정적인 메소드

Gets a teacher objectby the initials.
public static getTeacher ( String initials ) : Teacher
initials String The Initials of the teacher.
리턴 Teacher

getTeacher() 공개 정적인 메소드

Gets a teacher objectby the full name.
public static getTeacher ( String givenName, String surname ) : Teacher
givenName String The given Name of the teacher.
surname String The Surname of the teacher.
리턴 Teacher

getTeacher() 공개 정적인 메소드

Gets a teacher object by Teacher_ID.
public static getTeacher ( int teacher_ID ) : Teacher
teacher_ID int The identifier of the teacher.
리턴 Teacher

getTeacherFilter() 공개 정적인 메소드

public static getTeacherFilter ( String filter ) : List
filter String
리턴 List

getTeacherTable() 공개 정적인 메소드

public static getTeacherTable ( ) : List
리턴 List

incidentIsOpen() 공개 정적인 메소드

public static incidentIsOpen ( int inc_id ) : System.Boolean
inc_id int
리턴 System.Boolean

setAdminPassword() 공개 정적인 메소드

Set Admin-Password in DB
public static setAdminPassword ( String pass ) : System.Boolean
pass String The new Password
리턴 System.Boolean

setLeaveTime() 공개 정적인 메소드

Sets the leave time of an incident to the current time.
public static setLeaveTime ( Incident i ) : System.Boolean
i Incident The incident which leave time should be set.
리턴 System.Boolean

validateAdmin() 공개 정적인 메소드

Validate Admin-Password
public static validateAdmin ( String pass ) : System.Boolean
pass String The Password
리턴 System.Boolean