java实训-万年历日程管理系统
java课程实训-java实训-万年历日程管理系统,java课程实训-java实训-万年历日程管理系统
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-09-11 18:26 Power Note
文件 401 2017-09-11 18:40 Power Note.classpath
文件 386 2017-09-10 13:31 Power Note.project
目录 0 2017-09-11 18:26 Power Note.settings
文件 598 2017-09-10 13:31 Power Note.settingsorg.eclipse.jdt.core.prefs
目录 0 2017-09-13 07:25 Power Notein
目录 0 2017-09-13 07:25 Power Noteindao
文件 1583 2017-09-13 07:25 Power NoteindaoDatabaseDAO.class
文件 7216 2017-09-13 08:07 Power NoteindaoNoteDAO.class
文件 4097 2017-09-13 07:25 Power NoteindaoUsersDAO.class
目录 0 2017-09-13 07:25 Power Noteinentity
文件 3219 2017-09-13 07:25 Power NoteinentityNote.class
文件 1522 2017-09-13 07:25 Power NoteinentityUser.class
目录 0 2017-09-13 07:25 Power Noteinui
文件 712 2017-09-13 07:25 Power NoteinuiAddPop$1.class
文件 2382 2017-09-13 07:25 Power NoteinuiAddPop$MouseClick.class
文件 1117 2017-09-13 07:25 Power NoteinuiAddPop$MouseMove.class
文件 3690 2017-09-13 07:25 Power NoteinuiAddPop.class
文件 749 2017-09-13 07:30 Power NoteinuiBackgroundPanel.class
文件 796 2017-09-13 07:25 Power NoteinuiChangePop$1.class
文件 2298 2017-09-13 07:25 Power NoteinuiChangePop$MouseClick.class
文件 1173 2017-09-13 07:25 Power NoteinuiChangePop$MouseMove.class
文件 4571 2017-09-13 07:25 Power NoteinuiChangePop.class
文件 742 2017-09-13 07:25 Power NoteinuiFindPassword$1.class
文件 2050 2017-09-13 07:25 Power NoteinuiFindPassword$MouseClick.class
文件 1212 2017-09-13 07:25 Power NoteinuiFindPassword$MouseMove.class
文件 3349 2017-09-13 07:25 Power NoteinuiFindPassword.class
文件 727 2017-09-13 07:25 Power NoteinuiLoginForm$1.class
文件 2970 2017-09-13 07:25 Power NoteinuiLoginForm$MouseClick.class
文件 1307 2017-09-13 07:25 Power NoteinuiLoginForm$MouseMove.class
文件 3200 2017-09-13 07:25 Power NoteinuiLoginForm.class
............此处省略34个文件信息
package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DatabaseDAO {
public Connection openConnection(){
Connection conn=null;
try {
Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver“);
conn = DriverManager.getConnection(“jdbc:sqlserver://localhost:1433;databaseName=Power Note“ “sa“ “sa“);
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return conn;
}
public void closeAll(ResultSet rsPreparedStatement psstConnection conn){
if(rs!=null){
try {
rs.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
if(psst!=null){
try {
psst.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
if(conn!=null){
try {
conn.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-09-11 18:26 Power Note
文件 401 2017-09-11 18:40 Power Note.classpath
文件 386 2017-09-10 13:31 Power Note.project
目录 0 2017-09-11 18:26 Power Note.settings
文件 598 2017-09-10 13:31 Power Note.settingsorg.eclipse.jdt.core.prefs
目录 0 2017-09-13 07:25 Power Notein
目录 0 2017-09-13 07:25 Power Noteindao
文件 1583 2017-09-13 07:25 Power NoteindaoDataba
文件 7216 2017-09-13 08:07 Power NoteindaoNoteDAO.class
文件 4097 2017-09-13 07:25 Power NoteindaoUsersDAO.class
目录 0 2017-09-13 07:25 Power Noteinentity
文件 3219 2017-09-13 07:25 Power NoteinentityNote.class
文件 1522 2017-09-13 07:25 Power NoteinentityUser.class
目录 0 2017-09-13 07:25 Power Noteinui
文件 712 2017-09-13 07:25 Power NoteinuiAddPop$1.class
文件 2382 2017-09-13 07:25 Power NoteinuiAddPop$MouseClick.class
文件 1117 2017-09-13 07:25 Power NoteinuiAddPop$MouseMove.class
文件 3690 2017-09-13 07:25 Power NoteinuiAddPop.class
文件 749 2017-09-13 07:30 Power NoteinuiBackgroundPanel.class
文件 796 2017-09-13 07:25 Power NoteinuiChangePop$1.class
文件 2298 2017-09-13 07:25 Power NoteinuiChangePop$MouseClick.class
文件 1173 2017-09-13 07:25 Power NoteinuiChangePop$MouseMove.class
文件 4571 2017-09-13 07:25 Power NoteinuiChangePop.class
文件 742 2017-09-13 07:25 Power NoteinuiFindPassword$1.class
文件 2050 2017-09-13 07:25 Power NoteinuiFindPassword$MouseClick.class
文件 1212 2017-09-13 07:25 Power NoteinuiFindPassword$MouseMove.class
文件 3349 2017-09-13 07:25 Power NoteinuiFindPassword.class
文件 727 2017-09-13 07:25 Power NoteinuiLoginForm$1.class
文件 2970 2017-09-13 07:25 Power NoteinuiLoginForm$MouseClick.class
文件 1307 2017-09-13 07:25 Power NoteinuiLoginForm$MouseMove.class
文件 3200 2017-09-13 07:25 Power NoteinuiLoginForm.class
............此处省略34个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)