📄 databasec.java
字号:
package com.db;import java.sql.*;import java.util.*;import com.db.face.*;public abstract class Databasec implements DBInterface { protected Connection con; protected PreparedStatement pst; //实现接口的方法 public void open() throws Exception { Class.forName(this.DRIVER); con = DriverManager.getConnection(this.URL); }//实现接口的关闭方法 public void close() throws Exception { if (pst != null) { pst.close(); } if (con != null) { con.close(); } } public abstract ArrayList select(String tabName) throws Exception;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -