com.bankframe.ejb.extension
Class EBeanManagedEntityBean

java.lang.Object
  extended by com.bankframe.ejb.extension.EEntityBean
      extended by com.bankframe.ejb.extension.EBeanManagedEntityBean
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public abstract class EBeanManagedEntityBean
extends EEntityBean

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

See Also:
Serialized Form

Field Summary
static String SYSTEM_OFF_LINE_MESSAGE
           
 
Constructor Summary
EBeanManagedEntityBean()
           
 
Method Summary
 String checkForDouble(String data)
          This method checks if the specified String can be converted to a Double
 String checkForInteger(String data)
          This method checks if the specified String can be converted to a Integer
 String checkForLong(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(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 String SYSTEM_OFF_LINE_MESSAGE
Constructor Detail

EBeanManagedEntityBean

public EBeanManagedEntityBean()
Method Detail

checkForDouble

public String checkForDouble(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 String checkForInteger(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 String checkForLong(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 EntityBean
Overrides:
ejbActivate in class EEntityBean

ejbPassivate

public void ejbPassivate()
This method passivates the EJB.

Specified by:
ejbPassivate in interface EntityBean
Overrides:
ejbPassivate in class EEntityBean

getConnection

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

Returns:
a conenction to the transactionHandler
Throws:
ProcessingErrorException - if an error occurs during processing
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(EntityContext ctx)
                      throws RemoteException
This method sets the entity's context.

Specified by:
setEntityContext in interface EntityBean
Overrides:
setEntityContext in class EEntityBean
Parameters:
ctx - EntityContext the new context for the entity.
Throws:
RemoteException

setModified

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

Parameters:
flag -


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