com.bankframe.services.route
Class CachedRoute

java.lang.Object
  extended bycom.bankframe.services.route.CachedRoute
All Implemented Interfaces:
EEntityRemote, javax.ejb.EJBObject, java.rmi.Remote, Route, java.io.Serializable

public class CachedRoute
extends java.lang.Object
implements Route, java.io.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(java.lang.String requestId, java.lang.String jndiName, java.lang.String description, boolean isSessionManaged)
          Cached Route constructor.
 
Method Summary
 java.lang.String getDescription()
          This method will get the description of the route.
 javax.ejb.EJBHome getEJBHome()
          This method won't do anything.
 javax.ejb.Handle getHandle()
          This method won't do anything.
 java.lang.String getJNDIName()
          This method will get the JNDI name of the route.
 java.lang.Object getPrimaryKey()
          This method won't do anything.
 java.lang.String getRequestId()
          This method will get the REQUEST ID of the route.
 boolean isIdentical(javax.ejb.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(java.lang.String requestId,
                   java.lang.String jndiName,
                   java.lang.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 java.lang.String getDescription()
                                throws java.rmi.RemoteException
This method will get the description of the route.

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

getEJBHome

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

Specified by:
getEJBHome in interface javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

getHandle

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

Specified by:
getHandle in interface javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

getJNDIName

public java.lang.String getJNDIName()
                             throws java.rmi.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:
java.rmi.RemoteException

getPrimaryKey

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

Specified by:
getPrimaryKey in interface javax.ejb.EJBObject
Returns:
null
Throws:
java.rmi.RemoteException

getRequestId

public java.lang.String getRequestId()
                              throws java.rmi.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:
java.rmi.RemoteException

isIdentical

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

Specified by:
isIdentical in interface javax.ejb.EJBObject
Returns:
false
Throws:
java.rmi.RemoteException

isSessionManaged

public boolean isSessionManaged()
                         throws java.rmi.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:
java.rmi.RemoteException

remove

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

Specified by:
remove in interface javax.ejb.EJBObject
Throws:
javax.ejb.RemoveException
java.rmi.RemoteException

toDataPacket

public DataPacket toDataPacket()
                        throws java.rmi.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:
java.rmi.RemoteException


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