public void setEntityContext ( EntityContext ctx ) {
log ( "setEntityContext called ( " + id ( ) + " ) " ) ;
this.ctx = ctx ;
}
public void unsetEntityContext ( ) {
log ( "BoardBean.unsetEntityContext ( " + id ( ) + " ) " ) ;
this.ctx = null ;
}
public boolean isModified ( ) {
log ( "isModified ( ) : isDirty = " + ( isDirty ? "true" : "false" ) ) ;
isDirty = true ;
return isDirty ;
}
public void setModified ( boolean flag ) {
flag = true ;
isDirty = flag ;
log ( "setModified ( ) : " + id ( ) + ( String ) ( flag ? ": requires saving" : ": saving not required"));
}
private String id ( ) {
return "" + System.identityHashCode ( this ) + ", PK = " + (String) ((ctx == null) ? "nullctx" : ((ctx.getPrimaryKey() == null ? "null" : ctx.getPrimaryKey().toString()))) + "; isDirty = " + isDirty;
}
public void ejbActivate ( ) {
log ( "BoardBean.ejbActivate ( " + id ( ) + " ) " ) ;
}
public void ejbPassivate ( ) {
log ( "BoardBean.ejbPassivate ( " + id ( ) + " ) " ) ;
}
public void ejbLoad ( ) {
log ( "BoardBean.ejbLoad ( " + id ( ) + " ) " ) ;
}
public void ejbStore ( ) {
log ( "BoardBean.ejbStore ( " + id ( ) + " ) " ) ;
setModified ( true ) ;
}
public void ejbRemove ( ) throws RemoveException {
log ( "BoardBean.ejbRemove ( " + id ( ) + " ) " ) ;
}
private void log ( String s ) {
System.out.println ( s ) ;
}
public java.lang.Integer ejbCreate ( BoardData bData ) throws CreateException {
this.date = ( java.sql.Date ) bData.date ;
this.num = new Integer ( bData.num ) ;
this.title = bData.title ;
this.name = bData.name ;
this.email = bData.email ;
this.detail = bData.detail ;
this.password = bData.password ;
this.content = bData.content ;
return null ;
}
}
public Date getDate ( ) {
return date ;
}
public void setDate ( Date date ) {
this.date = ( java.sql.Date ) date ;
}
public int getNum ( ) {
return num.intValue ( ) ;
}
public void setNum ( int num ) {
this.num = new Integer ( num ) ;
}
public String getTitle ( ) {
return title ;
}
public void setTitle ( String title ) {
this.title = title ;
}
public String getName ( ) {
return name ;
}
public void setName ( String name ) {
this.name = name ;
}
public String getEmail ( ) {
return email ;
}
public void setEmail ( String email ) {
this.email = email ;
}
public String getDetail ( ) {
return detail ;
}
public void setDetail ( String detail ) {
this.detail = detail ;
}
public String getPassword ( ) {
return password ;
}
public void setPassword ( String password ) {
this.password = password ;
}
public String getContent ( ) {
return content ;
}
public void setContent ( String content ) {
this.content = content ;
}
