And here are the java files, to whoever cares to look at this.
Local interface:

  | package x1.db;
  | 
  | import java.sql.Timestamp;
  | import javax.ejb.EJBLocalObject;
  | 
  | public interface Logtrk2 extends EJBLocalObject {
  |     
  |     public  void    setID(Integer iD);
  |     public  Integer getID();
  |     
  |     public  void    setLogtPhraseID(Integer logtPhraseID);
  |     public  Integer getLogtPhraseID();
  |     
  |     public  void    setLogtStartID(Integer logtParentID);
  |     public  Integer getLogtStartID();
  |     
  |     public  void    setPhraseID(Integer phraseID);
  |     public  Integer getPhraseID();
  |     
  |     public  void    setNumQry(Double nymQry );
  |     public  Double getNumQry();
  |     
  |     public  void    setType(int type);
  |     public  int     getType();
  | 
  |     public  void    setTimeLog(Timestamp timeLog);
  |     public  Timestamp       getTimeLog();
  |     
  |     public  void    setTimeTrans(Timestamp timeTrans);
  |     public  Timestamp       getTimeTrans();
  |     
  |     public  void    setTimeMS(int timeMS);
  |     public  int     getTimeMS();
  | }
---------------------------------------------------------------------------------------

And the ejbCreate of the bean:

  |     public Integer ejbCreate(Integer iD, int type, Integer logtPhraseID, 
Integer phraseID ,Timestamp timeTX) throws CreateException {
  |             RamTimestamp rts = new RamTimestamp(); //this is a custom, 
similar-to, Timestamp class
  |             setID(iD);
  |             setType(type);
  |             setLogtPhraseID(logtPhraseID);
  |             setPhraseID(phraseID);
  |             Timestamp now = rts.getLogTime();
  |             setTimeLog(now);
  |             if (timeTX==null) timeTX=now;
  |             setTimeTrans(timeTX);
  |             return null;
  |     }
----------------------------------------------------------------------------------

And the Home thingajabig:

  | package x1.db;
  | 
  | import java.sql.Timestamp;
  | import javax.ejb.CreateException;
  | import javax.ejb.EJBLocalHome;
  | import javax.ejb.FinderException;
  | 
  | public interface Logtrk2Home extends EJBLocalHome {
  |     
  |     public Logtrk2 create(Integer iD, int type, Integer logtPhraseID, 
Integer phraseID ,Timestamp timeTX) throws CreateException;   
  |     public Logtrk2 findByPrimaryKey(Integer iD) throws FinderException;     
  | }


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909895#3909895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909895


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to