| java.lang.Object de.danet.an.util.KeyGenEJB
KeyGenEJB | public class KeyGenEJB implements SessionBean(Code) | | This stateless session bean is part of the primary key generator in
JDBCUtil JDBCUtil .
|
Method Summary | |
public void | ejbActivate() Not called for stateless session beans. | public void | ejbCreate() Create an new instance of StaffDirectoryEJB. | public void | ejbPassivate() Not called for stateless session beans. | public void | ejbRemove() A container invokes this method before it ends the life of the session
object. | public long | newHigh(String keyTable, String tabName, long min) Returns a new high value for the high/low key generator.
Parameters: keyTable - the table used for storing the high keys. Parameters: tabName - the table for which a new key is requested. Parameters: min - minimum value. | public void | setSessionContext(SessionContext context) Set the associated session context. |
ejbActivate | public void ejbActivate()(Code) | | Not called for stateless session beans.
See Also: javax.ejb.SessionBean |
ejbCreate | public void ejbCreate() throws CreateException(Code) | | Create an new instance of StaffDirectoryEJB.
throws: CreateException - if the StaffDirectoryEJB can notbe create. |
ejbPassivate | public void ejbPassivate()(Code) | | Not called for stateless session beans.
See Also: javax.ejb.SessionBean |
ejbRemove | public void ejbRemove()(Code) | | A container invokes this method before it ends the life of the session
object. This happens as a result of a client's invoking a remove
operation, or when a container decides to terminate the session object
after a timeout.
See Also: javax.ejb.SessionBean |
newHigh | public long newHigh(String keyTable, String tabName, long min)(Code) | | Returns a new high value for the high/low key generator.
Parameters: keyTable - the table used for storing the high keys. Parameters: tabName - the table for which a new key is requested. Parameters: min - minimum value. Note that this value is only significantwhen the first key for a table is generated. a new high value. |
setSessionContext | public void setSessionContext(SessionContext context)(Code) | | Set the associated session context. The container calls this method
after the instance creation.
See Also: javax.ejb.SessionBean Parameters: context - a SessionContext interface for the instance |
|
|