📄 productorderbean.java
字号:
/*
* @author : Neelesh
* @Version : 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the File : ProductOrderBean.java
* Creation/Modification History :
*
* Neelesh 11-Jan-2003 Created
*
*/
package oracle.otnsamples.vsm.entities;
import java.util.Collection;
import java.util.Date;
// EJB imports
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
/**
* The CMP implementation bean for ProductOrder entity. ejbCreate() and
* getter/setter methods for persistent fields and relational fields for the
* bean. Generated by Oracle9i JDeveloper Tool.
*/
public abstract class ProductOrderBean implements EntityBean {
private EntityContext context;
public String ejbCreate( String id, String user, Date date,
String address, String city, String state,
int zip, String country, String phone )
throws javax.ejb.CreateException {
setCity( city );
setCountry( country );
setId( id );
setOrderDate( date );
setShipToAddress( address );
setState( state );
setUserName( user );
setZip( new Integer( zip ) );
return id;
}
public void ejbPostCreate( String id, String user, Date date,
String address, String city,
String state, int zip, String country,
String phone ) {
}
public String ejbCreate( ) throws javax.ejb.CreateException {
return null;
}
public void ejbPostCreate( ) {
}
public String ejbCreate( String id, Date regDate, String userName )
throws javax.ejb.CreateException {
setId( id );
setOrderDate( regDate );
setUserName( userName );
return id;
}
public void ejbPostCreate( String id, Date regDate, String userName ) {
}
public void ejbActivate( ) {
}
public void ejbLoad( ) {
}
public void ejbPassivate( ) {
}
public void ejbRemove( ) {
}
public void ejbStore( ) {
}
public void setEntityContext( EntityContext ctx ) {
this.context = ctx;
}
public void unsetEntityContext( ) {
this.context = null;
}
public abstract String getId( );
public abstract void setId( String newId );
public abstract Date getOrderDate( );
public abstract void setOrderDate( Date newOrderDate );
public abstract String getUserName( );
public abstract void setUserName( String newUserName );
public abstract String getShipToAddress( );
public abstract void setShipToAddress( String newShipToAddress );
public abstract String getCity( );
public abstract void setCity( String newCity );
public abstract String getState( );
public abstract void setState( String newState );
public abstract String getCountry( );
public abstract void setCountry( String newCountry );
public abstract Integer getZip( );
public abstract void setZip( Integer newZip );
public abstract String getPhone( );
public abstract void setPhone( String newPhone );
public abstract Collection getOrderItems( );
public abstract void setOrderItems( Collection newOrderItems );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -