⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 artist.java

📁 此程序都是企业级 的数据库开发程序 全面揭示了JAVA对数据库的操作
💻 JAVA
字号:
package sql99;

import java.sql.*;
import java.io.*;

public class Artist implements SQLData, Serializable {
  public String name;
  public String imagespec;
  public String bio;

  private String sql_type;

  public Artist() {}
  public Artist(String type, String aName, String image, String bioText) {
    sql_type = type;
    name = aName;
    imagespec = image;
    bio = bioText;
  }

  public String getSQLTypeName() {
    return sql_type;
  } 

  public void readSQL(SQLInput stream, String type) throws SQLException {
    sql_type = type;
    name = stream.readString();
    imagespec = stream.readString();
    bio = stream.readString();
  } 

  public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(name);
    stream.writeString(imagespec);
    stream.writeString(bio);
  } 
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -