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

📄 recording.java

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

public class Recording {
  public Recording(int recordingId, String title, int publisherId, 
                   String catalogNumber, int recordingFormat, 
                   Date releaseDate, int languageId, double price) {

    this.recordingId = recordingId;
    this.title = title;
    this.publisherId = publisherId;
    this.catalogNumber = catalogNumber;
    this.recordingFormat = recordingFormat;
    this.releaseDate = releaseDate;
    this.languageId = languageId;
    this.price = price;
  }

  public int getId() {
    return recordingId;
  } 

  public String getTitle() {
    return title;
  } 

  public int getPublisherId() {
    return publisherId;
  } 

  public String getCatalogNumber() {
    return catalogNumber;
  } 

  public int getRecordingFormat() {
    return recordingFormat;
  } 

  public Date getReleaseDate() {
    return releaseDate;
  } 

  public double getPrice() {
    return price;
  } 

  public String toString() {
    return new String("recording ID: " + Integer.toString(recordingId) +
                      "\ntitle     : " + title + "\npublisherId  : " +
                      Integer.toString(publisherId) +
                      "\ncatalogNumber : " + catalogNumber +
                      "\nrecording format :" + recordingFormat +
                      "\nrelease date :" + releaseDate.toString() +
                      "\nprice : " +
                      java.text.NumberFormat.getCurrencyInstance()
                        .format(price));
  } 

  int recordingId;
  String title;
  int publisherId;
  String catalogNumber;
  int recordingFormat;
  Date releaseDate;
  int languageId;
  double price;
}

⌨️ 快捷键说明

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