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

📄 customersbean.java

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

import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;

public class CustomersBean implements EntityBean {

  public Integer customerId;
  public String customerFirstName;
  public String customerLastName;
  public String customerAddress1;
  public String customerAddress2;
  public String customerCity;
  public String customerPostalCode;

  /* Accessors */
  public Integer getCustomerId() {
    return customerId;
  } 
  ;

  public String getCustomerFirstName() {
    return customerFirstName;
  } 
  ;

  public String getCustomerLastName() {
    return customerLastName;
  } 
  ;

  public String getCustomerAddress1() {
    return customerAddress1;
  } 
  ;

  public String getCustomerAddress2() {
    return customerAddress2;
  } 
  ;

  public String getCustomerCity() {
    return customerCity;
  } 
  ;

  public String getCustomerPostalCode() {
    return customerPostalCode;
  } 
  ;

  /* Mutators */
  public void setCustomerId(Integer inCustomerId) {
    customerId = inCustomerId;
  } 
  ;

  public void setCustomerFirstName(String inCustomerFirstName) {
    customerFirstName = inCustomerFirstName;
  } 
  ;

  public void setCustomerLastName(String inCustomerLastName) {
    customerLastName = inCustomerLastName;
  } 
  ;

  public void setCustomerAddress1(String inCustomerAddress1) {
    customerAddress1 = inCustomerAddress1;
  } 
  ;

  public void setCustomerAddress2(String inCustomerAddress2) {
    customerAddress2 = inCustomerAddress2;
  } 
  ;

  public void setCustomerCity(String inCustomerCity) {
    customerCity = inCustomerCity;
  } 
  ;

  public void setCustomerPostalCode(String inCustomerPostalCode) {
    customerPostalCode = inCustomerPostalCode;
  } 
  ;

  public Integer ejbCreate(Integer newId) 
          throws CreateException, RemoteException {
    customerId = newId;
    return null;
  } 

  public void ejbPostCreate(Integer newId) {}

  public void ejbStore() {}
  public void ejbRemove() {}
  public void ejbActivate() {}
  public void ejbLoad() {}
  public void ejbPassivate() {}
  public void setEntityContext(EntityContext ctx) {}
  public void unsetEntityContext() {}
}

⌨️ 快捷键说明

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