IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.formatter.client
Class CHAFormatterServicePureEJBProxy

java.lang.Object
  extended bycom.ibm.btt.formatter.client.CHAFormatterServicePureEJBProxy
All Implemented Interfaces:
CHAFormatterServiceProxy, javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class CHAFormatterServicePureEJBProxy
extends java.lang.Object
implements javax.ejb.SessionBean, CHAFormatterServiceProxy

This class uses EJB call to get a CHAFormatterService instance.

See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_JNDI_NAME
          Declares default jndi name.
static java.lang.String DEFAULT_PROVIDER_URL
          Declares default provider URL.
static java.lang.String INITIAL_CONTEXT_FACTORY
          Declares initial context factory.
 
Constructor Summary
CHAFormatterServicePureEJBProxy()
          The constructor gets initial context factory, provider url, jndi name, and ejb home interface from dse.ini.
 
Method Summary
 void ejbActivate()
          ejbActivate (EJB interface predefined)
 void ejbCreate()
          ejbCreate (EJB interface predefined)
 void ejbPassivate()
          ejbPassivate (EJB interface predefined)
 void ejbRemove()
          ejbRemove (EJB interface predefined)
 java.lang.String format(Context aContext, java.lang.String aFormatName)
          Formats a context by a given format.
 java.lang.String format(DataElement aDataElement, java.lang.String aFormatName)
          Formats a data element by a given format.
 java.util.Map formatHashtable(Context aContext, java.lang.String aFormatName)
          Formats a context by a given hashtable format.
 java.util.Map formatHashtable(KeyedCollection aKeyedCollection, java.lang.String aFormatName)
          Formats a KeyedCollection by a given hashtable format.
 javax.ejb.SessionContext getSessionContext()
          getSessionContext (EJB interface predefined)
 java.util.List mapContents(Context aInputContext, Context aOutputContext, java.lang.String aFormatName)
          Maps the contents of a context into another context.
 void setSessionContext(javax.ejb.SessionContext newSessionContext)
          setSessionContext (EJB interface predefined)
 java.util.List unformat(java.lang.String aString, Context aContext, java.lang.String aFormatName)
          Unformats a context by a given format.
 java.util.List unformat(java.lang.String aString, DataElement aDataElement, java.lang.String aFormatName)
          Unformats a data element by a given format.
 java.util.List unformatHashtable(java.util.Map aHashtable, Context aContext, java.lang.String aFormatName)
          Unformats a context by a given hashtable format.
 java.util.List unformatHashtable(java.util.Map aHashtable, KeyedCollection aKeyedCollection, java.lang.String aFormatName)
          Unformats a KeyedCollection by a given hashtable format.
 java.util.List unformatIndexedCollection(java.util.List aVector, Context aContext, java.lang.String aFormatName)
          Unformats a context by a given hashtable IndexedCollection format.
 java.util.List unformatIndexedCollection(java.util.List aVector, IndexedCollection anIndexedCollection, java.lang.String aFormatName)
          Unformats an IndexedCollection by a given hashtable IndexedCollection format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_JNDI_NAME

public static final java.lang.String DEFAULT_JNDI_NAME
Declares default jndi name.

See Also:
Constant Field Values

DEFAULT_PROVIDER_URL

public static final java.lang.String DEFAULT_PROVIDER_URL
Declares default provider URL.

See Also:
Constant Field Values

INITIAL_CONTEXT_FACTORY

public static final java.lang.String INITIAL_CONTEXT_FACTORY
Declares initial context factory.

See Also:
Constant Field Values
Constructor Detail

CHAFormatterServicePureEJBProxy

public CHAFormatterServicePureEJBProxy()
                                throws DSEObjectNotFoundException,
                                       DSEException,
                                       java.io.IOException
The constructor gets initial context factory, provider url, jndi name, and ejb home interface from dse.ini.

Method Detail

getSessionContext

public javax.ejb.SessionContext getSessionContext()
getSessionContext (EJB interface predefined)


setSessionContext

public void setSessionContext(javax.ejb.SessionContext newSessionContext)
setSessionContext (EJB interface predefined)

Specified by:
setSessionContext in interface javax.ejb.SessionBean

ejbActivate

public void ejbActivate()
ejbActivate (EJB interface predefined)

Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
ejbPassivate (EJB interface predefined)

Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()
ejbCreate (EJB interface predefined)


ejbRemove

public void ejbRemove()
ejbRemove (EJB interface predefined)

Specified by:
ejbRemove in interface javax.ejb.SessionBean

format

public java.lang.String format(Context aContext,
                               java.lang.String aFormatName)
                        throws java.rmi.RemoteException,
                               DSEException
Formats a context by a given format.

Specified by:
format in interface CHAFormatterServiceProxy
Parameters:
aContext - com.ibm.btt.base.Context
aFormatName - java.lang.String
Returns:
java.lang.String
Throws:
DSEException
java.rmi.RemoteException

format

public java.lang.String format(DataElement aDataElement,
                               java.lang.String aFormatName)
                        throws java.rmi.RemoteException,
                               DSEException
Formats a data element by a given format.

Specified by:
format in interface CHAFormatterServiceProxy
Parameters:
aDataElement - com.ibm.btt.base.DataElement
aFormatName - java.lang.String
Returns:
java.lang.String
Throws:
DSEException
java.rmi.RemoteException

unformat

public java.util.List unformat(java.lang.String aString,
                               Context aContext,
                               java.lang.String aFormatName)
                        throws java.rmi.RemoteException,
                               DSEException
Unformats a context by a given format.

Specified by:
unformat in interface CHAFormatterServiceProxy
Parameters:
aContext - com.ibm.btt.base.Context
aString - java.lang.String
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.rmi.RemoteException

unformat

public java.util.List unformat(java.lang.String aString,
                               DataElement aDataElement,
                               java.lang.String aFormatName)
                        throws java.rmi.RemoteException,
                               DSEException
Unformats a data element by a given format.

Specified by:
unformat in interface CHAFormatterServiceProxy
Parameters:
aDataElement - com.ibm.btt.base.DataElement
aString - java.lang.String
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.rmi.RemoteException

mapContents

public java.util.List mapContents(Context aInputContext,
                                  Context aOutputContext,
                                  java.lang.String aFormatName)
                           throws java.rmi.RemoteException,
                                  DSEException
Maps the contents of a context into another context.

Specified by:
mapContents in interface CHAFormatterServiceProxy
Parameters:
aInputContext - com.ibm.btt.base.Context
aOutputContext - java.lang.String
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.rmi.RemoteException

formatHashtable

public java.util.Map formatHashtable(Context aContext,
                                     java.lang.String aFormatName)
                              throws java.rmi.RemoteException,
                                     DSEException
Formats a context by a given hashtable format.

Specified by:
formatHashtable in interface CHAFormatterServiceProxy
Parameters:
aContext - com.ibm.btt.base.aContext
aFormatName - java.lang.String
Returns:
java.util.Map
Throws:
DSEException
java.rmi.RemoteException

formatHashtable

public java.util.Map formatHashtable(KeyedCollection aKeyedCollection,
                                     java.lang.String aFormatName)
                              throws java.rmi.RemoteException,
                                     DSEException
Formats a KeyedCollection by a given hashtable format.

Specified by:
formatHashtable in interface CHAFormatterServiceProxy
Parameters:
aKeyedCollection - com.ibm.btt.base.KeyedCollection
aFormatName - java.lang.String
Returns:
java.util.Map
Throws:
DSEException
java.rmi.RemoteException

unformatHashtable

public java.util.List unformatHashtable(java.util.Map aHashtable,
                                        Context aContext,
                                        java.lang.String aFormatName)
                                 throws java.rmi.RemoteException,
                                        DSEException
Unformats a context by a given hashtable format.

Specified by:
unformatHashtable in interface CHAFormatterServiceProxy
Parameters:
aContext - com.ibm.btt.base.Context
aHashtable - java.util.Map
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.rmi.RemoteException

unformatHashtable

public java.util.List unformatHashtable(java.util.Map aHashtable,
                                        KeyedCollection aKeyedCollection,
                                        java.lang.String aFormatName)
                                 throws java.rmi.RemoteException,
                                        DSEException
Unformats a KeyedCollection by a given hashtable format.

Specified by:
unformatHashtable in interface CHAFormatterServiceProxy
Parameters:
aKeyedCollection - com.ibm.btt.base.KeyedCollection
aHashtable - java.util.Map
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.rmi.RemoteException

unformatIndexedCollection

public java.util.List unformatIndexedCollection(java.util.List aVector,
                                                Context aContext,
                                                java.lang.String aFormatName)
                                         throws DSEException,
                                                java.io.IOException
Unformats a context by a given hashtable IndexedCollection format.

Specified by:
unformatIndexedCollection in interface CHAFormatterServiceProxy
Parameters:
aContext - com.ibm.btt.base.Context
aVector - java.util.List
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.io.IOException

unformatIndexedCollection

public java.util.List unformatIndexedCollection(java.util.List aVector,
                                                IndexedCollection anIndexedCollection,
                                                java.lang.String aFormatName)
                                         throws DSEException,
                                                java.io.IOException
Unformats an IndexedCollection by a given hashtable IndexedCollection format.

Specified by:
unformatIndexedCollection in interface CHAFormatterServiceProxy
Parameters:
anIndexedCollection - com.ibm.btt.base.IndexedCollection
aVector - java.util.List
aFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.io.IOException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005