MySQL(选择)在Java中检索null

MySQL(选择)在Java中检索null,java,mysql,jdbc,Java,Mysql,Jdbc,在文本框中检索信息时不会发生任何情况: Sql类(StudentImpl): 显示到另一个类中的文本框(JForm): 您不使用方法retrieve的返回值: Student student = new Student(); int se = Integer.parseInt(searchText.getText()); service.retrieve(se); 因此,请改写 int se = Integer.parseInt(searchText.getText()); Student

在文本框中检索信息时不会发生任何情况:

Sql类(StudentImpl):

显示到另一个类中的文本框(JForm):


您不使用方法
retrieve
的返回值:

Student student = new Student(); 
int se = Integer.parseInt(searchText.getText());
service.retrieve(se); 
因此,请改写

int se = Integer.parseInt(searchText.getText());
Student student = service.retrieve(se);

您不使用方法
retrieve
的返回值:

Student student = new Student(); 
int se = Integer.parseInt(searchText.getText());
service.retrieve(se); 
因此,请改写

int se = Integer.parseInt(searchText.getText());
Student student = service.retrieve(se);

是否记录/打印了任何错误/异常?否,仅打印“null”一词。是否记录/打印了任何错误/异常?否,仅打印“null”一词