📄 sysdict.java
字号:
package org.minjey.cjsjk.core;import java.util.HashMap;import org.minjey.cjsjk.dao.Dao;import org.minjey.cjsjk.model.EnrollTime;import org.minjey.cjsjk.model.ExamType;import org.minjey.cjsjk.model.MajorLength;import org.minjey.cjsjk.model.MajorRecord;import org.minjey.cjsjk.model.MajorType;import org.minjey.cjsjk.model.Station;import org.minjey.cjsjk.model.StudentStatue;public class SysDict { public static final String PROPERTYFILENAME = "settings.properties"; private static HashMap<Integer, Object> STATION = null; private static HashMap<Integer, Object> ENROLLTIME = null; private static HashMap<Integer, Object> EXAMTYPE = null; private static HashMap<Integer, Object> MAJORRECORD = null; private static HashMap<Integer, Object> MAJORTYPE = null; private static HashMap<Integer, Object> MAJORLENGTH = null; private static HashMap<Integer, Object> STUDENTSTATUE = null; private static HashMap<Integer, Object> MAJOR = null; private static HashMap<Integer, Object> COURSE = null; private static HashMap<Integer, Object> STUDENT = null; public static void clearCache() { STATION = null; ENROLLTIME = null; EXAMTYPE = null; MAJORRECORD = null; MAJORTYPE = null; MAJORLENGTH = null; STUDENTSTATUE = null; MAJOR = null; COURSE = null; STUDENT = null; } public static HashMap<Integer, Object> getSTATION() { if(STATION == null) { STATION = Dao.getDao().loadall(Station.class); } return STATION; } public static HashMap<Integer, Object> getENROLLTIME() { if(ENROLLTIME == null) { ENROLLTIME = Dao.getDao().loadall(EnrollTime.class); } return ENROLLTIME; } public static HashMap<Integer, Object> getEXAMTYPE() { if(EXAMTYPE == null) { EXAMTYPE = Dao.getDao().loadall(ExamType.class); } return EXAMTYPE; } public static HashMap<Integer, Object> getMAJORRECORD() { if(MAJORRECORD == null) { MAJORRECORD = Dao.getDao().loadall(MajorRecord.class); } return MAJORRECORD; } public static HashMap<Integer, Object> getMAJORTYPE() { if(MAJORTYPE == null) { MAJORTYPE = Dao.getDao().loadall(MajorType.class); } return MAJORTYPE; } public static HashMap<Integer, Object> getMAJORLENGTH() { if(MAJORLENGTH == null) { MAJORLENGTH = Dao.getDao().loadall(MajorLength.class); } return MAJORLENGTH; } public static HashMap<Integer, Object> getSTUDENTSTATUE() { if(STUDENTSTATUE == null) { STUDENTSTATUE = Dao.getDao().loadall(StudentStatue.class); } return STUDENTSTATUE; } public static HashMap<Integer, Object> getMAJOR() { if(MAJOR == null) { MAJOR = Dao.getDao().loadall(StudentStatue.class); } return MAJOR; } public static HashMap<Integer, Object> getCOURSE() { if(COURSE == null) { COURSE = Dao.getDao().loadall(StudentStatue.class); } return COURSE; } public static HashMap<Integer, Object> getSTUDENT() { if(STUDENT == null) { STUDENT = Dao.getDao().loadall(StudentStatue.class); } return STUDENT; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -