首页 > 其他分享 >考试基础类定义

考试基础类定义

时间:2022-12-25 15:23:24浏览次数:37  
标签:return 定义 void 基础 private sex public 考试 String

Student类:

package passage;

public class Student {
private String StuID;
private String StuName;
private String sex;
private String College;
private String Professionals;
private String Phone;
private String Position;
public String getStuID() {
	return StuID;
}
public void setStuID(String stuID) {
	StuID = stuID;
}
public String getStuName() {
	return StuName;
}
public void setStuName(String stuName) {
	StuName = stuName;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getCollege() {
	return College;
}
public void setCollege(String college) {
	College = college;
}
public String getProfessionals() {
	return Professionals;
}
public void setProfessionals(String professionals) {
	Professionals = professionals;
}
public String getPhone() {
	return Phone;
}
public void setPhone(String phone) {
	Phone = phone;
}
public String getPosition() {
	return Position;
}
public void setPosition(String position) {
	Position = position;
}
public Student(String stuID, String stuName, String sex, String college, String professionals, String phone,
		String position) {
	super();
	StuID = stuID;
	StuName = stuName;
	this.sex = sex;
	College = college;
	Professionals = professionals;
	Phone = phone;
	Position = position;
}

}

  Teacher类:

package passage;

public class Teacher {
private String TeacherID;
private String Name;
private String College;
private String Professionals;
private String Role;
public String getTeacherID() {
	return TeacherID;
}
public void setTeacherID(String teacherID) {
	TeacherID = teacherID;
}
public String getName() {
	return Name;
}
public void setName(String name) {
	Name = name;
}
public String getCollege() {
	return College;
}
public void setCollege(String college) {
	College = college;
}
public String getProfessionals() {
	return Professionals;
}
public void setProfessionals(String professionals) {
	Professionals = professionals;
}
public String getRole() {
	return Role;
}
public void setRole(String role) {
	Role = role;
}
public Teacher(String teacherID, String name, String college, String professionals, String role) {
	super();
	TeacherID = teacherID;
	Name = name;
	College = college;
	Professionals = professionals;
	Role = role;
}

}

  Card类:

package passage;
public class Card {
private String CardId;
private String CardData;
private String CourseName;
private String CourseTeacher;
private String CourseID;
private String CourseNature;
private String Credit;
private String CourseClass;
private String CourseMajor;
private String TestWay;
private String TestData;
private String TestCount;
private String TestMethod;
private String TestGrade;
private String TestEvaluation;
private String TestAnalysis;
private String Professional;
private String ProfessionalConclusion;
private String Reasonable;
private String ReasonableConclusion;
private String AuditStatus;
public String getCardId() {
	return CardId;
}
public void setCardId(String cardId) {
	CardId = cardId;
}
public String getCardData() {
	return CardData;
}
public void setCardData(String cardData) {
	CardData = cardData;
}
public String getCourseName() {
	return CourseName;
}
public void setCourseName(String courseName) {
	CourseName = courseName;
}
public String getCourseTeacher() {
	return CourseTeacher;
}
public void setCourseTeacher(String courseTeacher) {
	CourseTeacher = courseTeacher;
}
public String getCourseID() {
	return CourseID;
}
public void setCourseID(String courseID) {
	CourseID = courseID;
}
public String getCourseNature() {
	return CourseNature;
}
public void setCourseNature(String courseNature) {
	CourseNature = courseNature;
}
public String getCredit() {
	return Credit;
}
public void setCredit(String credit) {
	Credit = credit;
}
public String getCourseClass() {
	return CourseClass;
}
public void setCourseClass(String courseClass) {
	CourseClass = courseClass;
}
public String getCourseMajor() {
	return CourseMajor;
}
public void setCourseMajor(String courseMajor) {
	CourseMajor = courseMajor;
}
public String getTestWay() {
	return TestWay;
}
public void setTestWay(String testWay) {
	TestWay = testWay;
}
public String getTestData() {
	return TestData;
}
public void setTestData(String testData) {
	TestData = testData;
}
public String getTestCount() {
	return TestCount;
}
public void setTestCount(String testCount) {
	TestCount = testCount;
}
public String getTestMethod() {
	return TestMethod;
}
public void setTestMethod(String testMethod) {
	TestMethod = testMethod;
}
public String getTestGrade() {
	return TestGrade;
}
public void setTestGrade(String testGrade) {
	TestGrade = testGrade;
}
public String getTestEvaluation() {
	return TestEvaluation;
}
public void setTestEvaluation(String testEvaluation) {
	TestEvaluation = testEvaluation;
}
public String getTestAnalysis() {
	return TestAnalysis;
}
public void setTestAnalysis(String testAnalysis) {
	TestAnalysis = testAnalysis;
}
public String getProfessional() {
	return Professional;
}
public void setProfessional(String professional) {
	Professional = professional;
}
public String getProfessionalConclusion() {
	return ProfessionalConclusion;
}
public void setProfessionalConclusion(String professionalConclusion) {
	ProfessionalConclusion = professionalConclusion;
}
public String getReasonable() {
	return Reasonable;
}
public void setReasonable(String reasonable) {
	Reasonable = reasonable;
}
public String getReasonableConclusion() {
	return ReasonableConclusion;
}
public void setReasonableConclusion(String reasonableConclusion) {
	ReasonableConclusion = reasonableConclusion;
}
public String getAuditStatus() {
	return AuditStatus;
}
public void setAuditStatus(String auditStatus) {
	AuditStatus = auditStatus;
}
public Card(String cardId, String cardData, String courseName, String courseTeacher, String courseID,
		String courseNature, String credit, String courseClass, String courseMajor, String testWay, String testData,
		String testCount, String testMethod, String testGrade, String testEvaluation, String testAnalysis,
		String professional, String professionalConclusion, String reasonable, String reasonableConclusion,
		String auditStatus) {
	super();
	CardId = cardId;
	CardData = cardData;
	CourseName = courseName;
	CourseTeacher = courseTeacher;
	CourseID = courseID;
	CourseNature = courseNature;
	Credit = credit;
	CourseClass = courseClass;
	CourseMajor = courseMajor;
	TestWay = testWay;
	TestData = testData;
	TestCount = testCount;
	TestMethod = testMethod;
	TestGrade = testGrade;
	TestEvaluation = testEvaluation;
	TestAnalysis = testAnalysis;
	Professional = professional;
	ProfessionalConclusion = professionalConclusion;
	Reasonable = reasonable;
	ReasonableConclusion = reasonableConclusion;
	AuditStatus = auditStatus;
}

}

  链接工具:Tool类:

package tool;
import java.sql.*;
public class Tool {
private static Connection connection;
private static String url="jdbc:mysql://localhost:3306/TEACH?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC";
private static String user="root";
private static String pass="020907";
static {
	try {
		Class.forName("com.mysql.cj.jdbc.Driver");
	}catch(ClassNotFoundException e){
		e.printStackTrace();
	}
}
public static Connection getConnection() {
	try {
		connection=DriverManager.getConnection(url,user,pass);
	}catch(SQLException e) {
		e.printStackTrace();
	}
	return connection;
}
public static void release(Connection connection,Statement statement,ResultSet resultSet) {
	try {
		if(connection!=null) {
			connection.close();
		}
		if(statement!=null) {
			statement.close();
		}
		if(resultSet!=null) {
			resultSet.close();
		}
	}
	catch(SQLException e) {
		e.printStackTrace();
	}
}
}

  

标签:return,定义,void,基础,private,sex,public,考试,String
From: https://www.cnblogs.com/syhxx/p/17004069.html

相关文章

  • 树的定义
    树是由n(n >=0)个结点组成的有限集合。如果n=0,称为空树;如果n>0,则有一个特定的称之为根的结点,它只有直接后继,但没有直接前驱;除根以外的其它结点划分为m(m>=......
  • 预定义符号
    有一些预处理定义的符号串,它们的值或者是字符串常量,或者是十进制数字常量,它们通常在调试程序时用于输出源程序的各项信息。     ——FILE ————LINE  ......
  • CMFCShellList和自定义ShellList结合使用,达到“直接浏览缩略图,双击打开图片”...
    在GOPaint的设计研究过程中,我一直希望能够实现这样的结果(ABC3个步骤)在我之前的博客里面,曾经有过缩略图显示的现就,也应用到了实际的项目中。但是现在过了一......
  • PCIe网卡驱动实现分析(-)--- PCIe基础知识
    pcie基础知识1、物理链路2、PCIe数据通信方式3、链路训练4、总线拓扑结构5、PCIe设备地址空间管理6、设备枚举 一、物理链路区别于PCI的共享总线方式,PCIe链......
  • 基础的基于QT的图像查看程序
    一、基本功能基于"混合UI"界面设计,以及QTreeWidget、QDockWidget使用(通过将一个QTreeWidget组件防止在QDockWidget区域上,并设置其可以在主窗体的左边或右边......
  • Linux网络基础
    网络就是把分布在不同地理位置上的主机,通过传输介质(网线、卫星等)连接起来,实现主机之间数据传输共享的目的。OSI7层网络模型传输过程数据从一个主机A发送到主机B时候,......
  • 工作表函数的代码嘴脸(可定义名称的函数合集)
    ​​LET函数​​​​Lambda公式,函数公式or函数名?​​​​华丽丽地越过了多维引用的MakeArray​​​​有了ByRow和ByCol,MM函数还要怎么混?​​​​同样华丽丽地越过了多维引用......
  • Vue 自定义指令
    自定义指令-函数式需求1:定义一个v-big指令,和v-text功能类似,但会把绑定的数值放大10倍。<!DOCTYPEhtml><html><head><metacharset="UTF-8"/>......
  • makefile中常用的预定义变量
      AR      库文件维护程序的名称,默认值为ar。ASCCCppCxxFCRMarflagsASflagsCflagsCPPFlagsCXXflagsFFlags例如:       #预定义变量的使用......
  • MOOD|不想考试啊啊啊
       完全复习不进去怎么办。。。感觉已经逐渐丧失学习能力了。。。   为什么要在圣诞节后一天期末考?就不能让人好好过个节吗?为什么要求还那么多那么严?明明都大四......