📄 guestbookbean.java
字号:
/*
* @author : Neelesh
* @Version : 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the File : GuestbookBean.java
* Creation/Modification History :
*
* Neelesh 11-Jan-2003 Created
*
*/
package oracle.otnsamples.vsm.entities;
import java.util.Date;
// EJB imports
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
/**
* This is the abstract implementation for the Guestbook bean. The class has
* abstract getXXX and setXXX methods for the entity fields The class also
* implements ejbCreate() methods
*/
public abstract class GuestbookBean implements EntityBean {
private EntityContext context;
public String ejbCreate( String id, String userName, String email,
String comment, Date entryDate, String langID,
String rating ) throws javax.ejb.CreateException {
setComment( comment );
setEmail( email );
if ( entryDate == null ) {
entryDate = new Date( );
}
setEntryDate( entryDate );
setId( id );
setLanguageID( langID );
setRating( rating );
setUserName( userName );
return id;
}
public void ejbPostCreate( String id, String userName, String email,
String comment, Date entryDate, String langID,
String rating ) {
}
public String ejbCreate( ) throws javax.ejb.CreateException {
return null;
}
public void ejbPostCreate( ) {
}
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 String getUserName( );
public abstract void setUserName( String newUserName );
public abstract String getEmail( );
public abstract void setEmail( String newEmail );
public abstract Date getEntryDate( );
public abstract void setEntryDate( Date newEntryDate );
public abstract String getRating( );
public abstract void setRating( String newRating );
public abstract String getComment( );
public abstract void setComment( String newComment );
public abstract String getLanguageID( );
public abstract void setLanguageID( String newLanguageID );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -