IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.formatter.server
Class CHAFormatterServiceServiceBean

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

public class CHAFormatterServiceServiceBean
extends java.lang.Object
implements javax.ejb.SessionBean

This class is the bean implementation class for Enterprise Bean: CHAFormatterServiceService

It uses WSIF java binding to access CHAFormatterService and to perform formating and

unformating process.

See Also:
Serialized Form

Constructor Summary
CHAFormatterServiceServiceBean()
           
 
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 argAContext, java.lang.String argAFormatName)
          Formats a context by a given format.
 java.lang.String format(DataElement argDataElement, java.lang.String argAFormatName)
          Formats a data element by a given format.
 java.util.Map formatHashtable(Context argAContext, java.lang.String argAFormatName)
          Formats a context by a given hashtable format.
 java.util.Map formatHashtable(KeyedCollection argAKeyedCollection, java.lang.String argAFormatName)
          Formats a KeyedCollection by a given hashtable format.
 javax.ejb.SessionContext getSessionContext()
          Gets session context.
 void initialize()
          Initiates a WSIF java binding service.
 java.util.List mapContents(Context argInputContext, Context argOutputContext, java.lang.String argAFormatName)
          Maps the contents of a context into another context.
 void setSessionContext(javax.ejb.SessionContext newSessionContext)
          Sets session context.
 java.util.List unformat(java.lang.String argAString, Context argAContext, java.lang.String argAFormatName)
          Unformats a context by a given format.
 java.util.List unformat(java.lang.String argAString, DataElement argADataElement, java.lang.String argAFormatName)
          Unformats a data element by a given format.
 java.util.List unformatHashtable(java.util.Map argAHashtable, Context argAContext, java.lang.String argAFormatName)
          Unformats a context by a given hashtable format.
 java.util.List unformatHashtable(java.util.Map argAHashtable, KeyedCollection argAKeyedCollection, java.lang.String argAFormatName)
          Unformats a KeyedCollection by a given hashtable format.
 java.util.List unformatIndexedCollection(java.util.List argAVector, Context argContext, java.lang.String argAFormatName)
          Unformats a context by a given hashtable IndexedCollection format.
 java.util.List unformatIndexedCollection(java.util.List argAVector, IndexedCollection argAnIndexedCollection, java.lang.String argAFormatName)
          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
 

Constructor Detail

CHAFormatterServiceServiceBean

public CHAFormatterServiceServiceBean()
Method Detail

getSessionContext

public javax.ejb.SessionContext getSessionContext()
Gets session context.

Returns:
javax.ejb.SessionContext

setSessionContext

public void setSessionContext(javax.ejb.SessionContext newSessionContext)
Sets session context.

Specified by:
setSessionContext in interface javax.ejb.SessionBean
Parameters:
newSessionContext - javax.ejb.SessionContext

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

initialize

public void initialize()
                throws org.apache.wsif.WSIFException
Initiates a WSIF java binding service.

Throws:
org.apache.wsif.WSIFException

format

public java.lang.String format(Context argAContext,
                               java.lang.String argAFormatName)
                        throws DSEException
Formats a context by a given format.

Parameters:
argAContext - com.ibm.btt.base.Context
argAFormatName - java.lang.String
Returns:
java.lang.String
Throws:
DSEException

formatHashtable

public java.util.Map formatHashtable(Context argAContext,
                                     java.lang.String argAFormatName)
                              throws DSEException
Formats a context by a given hashtable format.

Parameters:
argAContext - com.ibm.btt.base.Context
argAFormatName - java.lang.String
Returns:
java.util.Map
Throws:
DSEException

mapContents

public java.util.List mapContents(Context argInputContext,
                                  Context argOutputContext,
                                  java.lang.String argAFormatName)
                           throws DSEException
Maps the contents of a context into another context.

Parameters:
argInputContext - com.ibm.btt.base.Context
argOutputContext - java.lang.String
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException

unformat

public java.util.List unformat(java.lang.String argAString,
                               DataElement argADataElement,
                               java.lang.String argAFormatName)
                        throws DSEException
Unformats a data element by a given format.

Parameters:
argADataElement - com.ibm.btt.base.DataElement
argAString - java.lang.String
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException

unformatHashtable

public java.util.List unformatHashtable(java.util.Map argAHashtable,
                                        Context argAContext,
                                        java.lang.String argAFormatName)
                                 throws DSEException
Unformats a context by a given hashtable format.

Parameters:
argAContext - com.ibm.btt.base.Context
argAHashtable - java.util.Map
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException

unformatIndexedCollection

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

Parameters:
argContext - com.ibm.btt.base.Context
argAVector - java.util.List
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.io.IOException

unformatHashtable

public java.util.List unformatHashtable(java.util.Map argAHashtable,
                                        KeyedCollection argAKeyedCollection,
                                        java.lang.String argAFormatName)
                                 throws DSEException
Unformats a KeyedCollection by a given hashtable format.

Parameters:
argAKeyedCollection - com.ibm.btt.base.KeyedCollection
argAHashtable - com.ibm.btt.base.Hashtable
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException

unformatIndexedCollection

public java.util.List unformatIndexedCollection(java.util.List argAVector,
                                                IndexedCollection argAnIndexedCollection,
                                                java.lang.String argAFormatName)
                                         throws DSEException,
                                                java.io.IOException
Unformats an IndexedCollection by a given hashtable IndexedCollection format

Parameters:
argAnIndexedCollection - com.ibm.btt.base.IndexedCollection
argAVector - java.util.List
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException
java.io.IOException

format

public java.lang.String format(DataElement argDataElement,
                               java.lang.String argAFormatName)
                        throws DSEException
Formats a data element by a given format.

Parameters:
argDataElement - com.ibm.btt.base.DataElement
argAFormatName - java.lang.String
Returns:
java.util.Map
Throws:
DSEException

formatHashtable

public java.util.Map formatHashtable(KeyedCollection argAKeyedCollection,
                                     java.lang.String argAFormatName)
                              throws DSEException
Formats a KeyedCollection by a given hashtable format.

Parameters:
argAKeyedCollection - com.ibm.btt.base.KeyedCollection
argAFormatName - java.lang.String
Returns:
java.util.Map
Throws:
DSEException

unformat

public java.util.List unformat(java.lang.String argAString,
                               Context argAContext,
                               java.lang.String argAFormatName)
                        throws DSEException
Unformats a context by a given format.

Parameters:
argAContext - com.ibm.btt.base.Context
argAString - java.lang.String
argAFormatName - java.lang.String
Returns:
java.util.List
Throws:
DSEException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005