📄 employee_sqldata.java
字号:
import java.sql.*;public class Employee_sqldata extends Person_sqldata{ public int empid; public String mgr; public Employee_sqldata () { super(); } public Employee_sqldata (String sql_type, int ssn, String name, String address, int empid, String mgr) { super (sql_type, ssn, name, address); this.empid = empid; this.mgr = mgr; } public void readSQL(SQLInput stream, String typeName) throws SQLException { sql_type = typeName; super.readSQL (stream, typeName); // read supertype attributes empid = stream.readInt (); mgr = stream.readString (); } public void writeSQL(SQLOutput stream) throws SQLException { super.writeSQL (stream); // write supertype attributes stream.writeInt (empid); stream.writeString (mgr); } public String toString () { return sql_type+" = "+ssn+", "+name+", "+address+", "+empid+", "+mgr; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -