com.bankframe.ejb.extension
Class EBeanManagedEntityBean

java.lang.Object
  extended bycom.bankframe.ejb.extension.EEntityBean
      extended bycom.bankframe.ejb.extension.EBeanManagedEntityBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public abstract class EBeanManagedEntityBean
extends EEntityBean

BankFrame superclass for BMP Beans. All BMP EntityBeans subclass from this

See Also:
Serialized Form

Field Summary
static java.lang.String SYSTEM_OFF_LINE_MESSAGE
           
 
Constructor Summary
EBeanManagedEntityBean()
           
 
Method Summary
 java.lang.String checkForDouble(java.lang.String data)
          This method checks if the specified String can be converted to a Double
 java.lang.String checkForInteger(java.lang.String data)
          This method checks if the specified String can be converted to a Integer
 java.lang.String checkForLong(java.lang.String data)
          This method checks if the specified String can be converted to a Long
 void ejbActivate()
          This method activates the EJB.
 void ejbPassivate()
          This method passivates the EJB.
 TransactionHandler getConnection()
          This method gets a connection to the transaction handler.
 boolean isModified()
          This method checks if the entity bean has been modified.
 void setEntityContext(javax.ejb.EntityContext ctx)
          This method sets the entity's context.
 void setModified(boolean flag)
          This method sets the modidifed flag.
 
Methods inherited from class com.bankframe.ejb.extension.EEntityBean
ejbLoad, ejbRemove, ejbStore, getEntityContext, getPopulator, toDataPacket, toString, unsetEntityContext, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYSTEM_OFF_LINE_MESSAGE

public static java.lang.String SYSTEM_OFF_LINE_MESSAGE
Constructor Detail

EBeanManagedEntityBean

public EBeanManagedEntityBean()
Method Detail

checkForDouble

public java.lang.String checkForDouble(java.lang.String data)
This method checks if the specified String can be converted to a Double

Parameters:
data - the String to check
Returns:
the original string, or "0" if the String cannot be converted

checkForInteger

public java.lang.String checkForInteger(java.lang.String data)
This method checks if the specified String can be converted to a Integer

Parameters:
data - the String to check
Returns:
the original string, or "0" if the String cannot be converted

checkForLong

public java.lang.String checkForLong(java.lang.String data)
This method checks if the specified String can be converted to a Long

Parameters:
data - the String to check
Returns:
the original string, or "0" if the String cannot be converted

ejbActivate

public void ejbActivate()
This method activates the EJB.

Specified by:
ejbActivate in interface javax.ejb.EntityBean
Overrides:
ejbActivate in class EEntityBean

ejbPassivate

public void ejbPassivate()
This method passivates the EJB.

Specified by:
ejbPassivate in interface javax.ejb.EntityBean
Overrides:
ejbPassivate in class EEntityBean

getConnection

public TransactionHandler getConnection()
                                 throws ProcessingErrorException,
                                        java.rmi.RemoteException
This method gets a connection to the transaction handler.

Returns:
a conenction to the transactionHandler
Throws:
ProcessingErrorException - if an error occurs during processing
java.rmi.RemoteException

isModified

public boolean isModified()
This method checks if the entity bean has been modified.

Returns:
true if modified, otherwise false

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws java.rmi.RemoteException
This method sets the entity's context.

Specified by:
setEntityContext in interface javax.ejb.EntityBean
Overrides:
setEntityContext in class EEntityBean
Throws:
java.rmi.RemoteException

setModified

public void setModified(boolean flag)
This method sets the modidifed flag.

Parameters:
flag -


Copyright © 2005, 2007, Oracle. All rights reserved.