com.bankframe.services.route
Class CachedRoute

java.lang.Object
  extended by com.bankframe.services.route.CachedRoute
All Implemented Interfaces:
EEntityRemote, Route, Serializable, Remote, EJBObject

public class CachedRoute
extends Object
implements Route, Serializable

This class represents route objects to be cached on the server. Every time a route entity is instantiated, it will be translated into an object of this type. As it implements the route interface it can be referred to as if it were the remote interface to a route entity.

See Also:
Serialized Form

Constructor Summary
CachedRoute(String requestId, String jndiName, String description, boolean isSessionManaged)
          Cached Route constructor.
 
Method Summary
 String getDescription()
          This method will get the description of the route.
 EJBHome getEJBHome()
          This method won't do anything.
 Handle getHandle()
          This method won't do anything.
 String getJNDIName()
          This method will get the JNDI name of the route.
 Object getPrimaryKey()
          This method won't do anything.
 String getRequestId()
          This method will get the REQUEST ID of the route.
 boolean isIdentical(EJBObject parm1)
          This method won't do anything.
 boolean isSessionManaged()
          This method will determine if this route is session managed.
 void remove()
          This method won't do anything.
 DataPacket toDataPacket()
          This method will put the instance variables of a route entity in DataPacket format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedRoute

public CachedRoute(String requestId,
                   String jndiName,
                   String description,
                   boolean isSessionManaged)
Cached Route constructor.

Parameters:
requestId - Request ID of the route
jndiName - JNDI Name of the route
description - Textual description of the route
isSessionManaged - Flag to say whether or not this route is subject to session management.
Method Detail

getDescription

public String getDescription()
                      throws RemoteException
This method will get the description of the route.

Specified by:
getDescription in interface Route
Returns:
a string describing the route
Throws:
RemoteException

getEJBHome

public EJBHome getEJBHome()
                   throws RemoteException
This method won't do anything. It is a requirement of the route interface that it is implemented.

Specified by:
getEJBHome in interface EJBObject
Throws:
RemoteException

getHandle

public Handle getHandle()
                 throws RemoteException
This method won't do anything. It is a requirement of the route interface that it is implemented.

Specified by:
getHandle in interface EJBObject
Throws:
RemoteException

getJNDIName

public String getJNDIName()
                   throws RemoteException
This method will get the JNDI name of the route.

Specified by:
getJNDIName in interface Route
Returns:
a string representation of the JNDI name
Throws:
RemoteException

getPrimaryKey

public Object getPrimaryKey()
                     throws RemoteException
This method won't do anything. It is a requirement of the route interface that it is implemented.

Specified by:
getPrimaryKey in interface EJBObject
Returns:
null
Throws:
RemoteException

getRequestId

public String getRequestId()
                    throws RemoteException
This method will get the REQUEST ID of the route.

Specified by:
getRequestId in interface Route
Returns:
String representation of the REQUEST_ID
Throws:
RemoteException

isIdentical

public boolean isIdentical(EJBObject parm1)
                    throws RemoteException
This method won't do anything. It is a requirement of the route interface that it is implemented.

Specified by:
isIdentical in interface EJBObject
Parameters:
parm1 - an EJB object
Returns:
boolean returns false
Throws:
RemoteException

isSessionManaged

public boolean isSessionManaged()
                         throws RemoteException
This method will determine if this route is session managed.

Specified by:
isSessionManaged in interface Route
Returns:
true if this route is session managed, otherwise false
Throws:
RemoteException

remove

public void remove()
            throws RemoveException,
                   RemoteException
This method won't do anything. It is a requirement of the route interface that it is implemented.

Specified by:
remove in interface EJBObject
Throws:
RemoveException
RemoteException

toDataPacket

public DataPacket toDataPacket()
                        throws RemoteException
This method will put the instance variables of a route entity in DataPacket format.

Specified by:
toDataPacket in interface EEntityRemote
Returns:
a DataPacket containing this route entity's instance variables.
Throws:
RemoteException


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