All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.beans.JoltServiceBean

java.lang.Object
   |
   +----bea.jolt.beans.JoltServiceBean

public class JoltServiceBean
extends Object
implements JoltInputListener, Serializable, PropertyChangeListener
The JoltServiceBean represents a remote TUXEDO service. It

All getOutputValue/getOutputTextValue methods operate on service output parameters only.

All setInputValue/setInputTextValue methods operate on service input parameters only.

See Also:
JoltInputEvent, JoltOutputEvent

Constructor Index

 o JoltServiceBean()
Constructor

Method Index

 o addJoltOutputListener(JoltOutputListener)
Add a JoltOutputEvent listener.
 o callService()
Invoke the remote service.
 o clear()
This method clears the underlying input and output message buffers.
 o dataChanged(JoltInputEvent)
Event handler method for JoltInputEvents.
 o getDebug()
Get the value of the debug property.
 o getJoltOutputEvent()
Get to the JoltOutputEvent object encapsulated by the JoltServiceBean.
 o getOccurrenceCount(String)
Get the number of occurrences of a field from the Jolt output message buffer.
 o getOutputTextValue(String)
Get the value of a field in the Jolt output message buffer as a String.
 o getOutputTextValue(String, int)
Get the value of one occurrence of a field in the Jolt output message buffer as a String.
 o getOutputTextValues(String)
Get all occurrences of a field in the Jolt output message buffer as String.
 o getOutputValue(String)
Get the value of a field in the Jolt output message buffer using the field's native type.
 o getOutputValue(String, int)
Get the value of one occurrence of a field in the Jolt output message buffer using the field's native type.
 o getOutputValues(String)
Get all occurrences of a field in the Jolt output message buffer using the field's native type.
 o getServiceName()
Gets the name of the remote service that this bean represents.
 o getSession()
Get the JoltSessionBean object used by this JoltServiceBean.
 o getTransactional()
Returns true if the bean is in transactional mode, otherwise it returns false.
 o isTransactional()
Returns true if the bean is in transactional mode, otherwise it returns false.
 o propertyChange(PropertyChangeEvent)
Event handler for PropertyChange events.
 o removeJoltOutputListener(JoltOutputListener)
Remove a JoltOutputEvent listener.
 o setDebug(boolean)
Set the debug property.
 o setInputTextValue(String, int, String)
Set one occurrence of a field in the Jolt input message buffer as a String.
 o setInputTextValue(String, String)
Set the value of a field in the Jolt input message buffer as a String.
 o setInputTextValues(String, String[])
Set all occurrences of a field in the Jolt input message buffer as String.
 o setInputValue(String, int, Object)
Set the value of one occurrence of a field in the Jolt input message buffer using the field's native type.
 o setInputValue(String, Object)
Set the value of a field in the Jolt input message buffer using the field's native type.
 o setInputValues(String, Object[])
Set all occurrences of a field in the Jolt input message buffer using the field's native type.
 o setServiceName(String)
Sets the name of the remote service that this bean represents.
 o setSession(JoltSessionBean)
This method is used in cases when the JoltServiceBean is created after the logon event.
 o setTransactional(boolean)
Sets the transactional mode of the bean.

Constructors

 o JoltServiceBean
 public JoltServiceBean()
Constructor

Methods

 o getJoltOutputEvent
 public JoltOutputEvent getJoltOutputEvent()
Get to the JoltOutputEvent object encapsulated by the JoltServiceBean.

 o propertyChange
 public void propertyChange(PropertyChangeEvent evt)
Event handler for PropertyChange events. In this case the JoltSessionBean will notify the JoltServiceBean when it logs on and off by raising a PropertyChangeEvent about its "LoggedOn" property.

Note that a logoff of a session other than the current session will not affect the JoltServiceBean, but a logon of a session other than the current session will change the session.

This method should not be called directly.

Parameters:
evt - The event object.
 o dataChanged
 public void dataChanged(JoltInputEvent evt) throws JoltException
Event handler method for JoltInputEvents. The JoltServiceBean updates the input buffer field specified in the JoltInputEvent to the value specified in the event.

This method should not be called directly.

Parameters:
evt - The event object.
 o setServiceName
 public void setServiceName(String name)
Sets the name of the remote service that this bean represents.

Parameters:
name - Service name.
 o getServiceName
 public String getServiceName()
Gets the name of the remote service that this bean represents.

Returns:
name of the TUXEDO service
 o isTransactional
 public boolean isTransactional()
Returns true if the bean is in transactional mode, otherwise it returns false.

Returns:
true or false
 o setTransactional
 public void setTransactional(boolean mode)
Sets the transactional mode of the bean.

Parameters:
mode - true or false
 o getTransactional
 public boolean getTransactional()
Returns true if the bean is in transactional mode, otherwise it returns false.

Returns:
true or false
 o setSession
 public void setSession(JoltSessionBean value)
This method is used in cases when the JoltServiceBean is created after the logon event. Otherwise the JoltServiceBean gets access to a TUXEDO client session by listening to JoltSessionEvents.

Parameters:
value - The JoltSessionBean which is used by this service bean.
 o getSession
 public JoltSessionBean getSession()
Get the JoltSessionBean object used by this JoltServiceBean.

Returns:
JoltSessionBean object.
 o getOutputValue
 public Object getOutputValue(String fieldName) throws NoSuchFieldError
Get the value of a field in the Jolt output message buffer using the field's native type.

Parameters:
fieldName - Name of the field.
Returns:
Value of the field.
 o getOutputValue
 public Object getOutputValue(String fieldName,
                              int index) throws NoSuchFieldError
Get the value of one occurrence of a field in the Jolt output message buffer using the field's native type.

Parameters:
fieldName - Name of the field.
index - Index of the field.
Returns:
Value of the field.
 o getOutputValues
 public Object[] getOutputValues(String fieldName) throws NoSuchFieldError
Get all occurrences of a field in the Jolt output message buffer using the field's native type.

Parameters:
fieldName - Name of the field.
Returns:
The occurrences of the field.
 o getOutputTextValue
 public String getOutputTextValue(String fieldName) throws NoSuchFieldError
Get the value of a field in the Jolt output message buffer as a String.

Parameters:
fieldName - Name of the field.
Returns:
The value of the field as a String.
 o getOutputTextValue
 public String getOutputTextValue(String fieldName,
                                  int index) throws NoSuchFieldError
Get the value of one occurrence of a field in the Jolt output message buffer as a String.

Parameters:
fieldName - Name of the field.
index - The occurrence index of the field.
Returns:
The value of the field as a String.
 o getOutputTextValues
 public String[] getOutputTextValues(String fieldName) throws NoSuchFieldError
Get all occurrences of a field in the Jolt output message buffer as String.

Parameters:
fieldName - Name of the field.
Returns:
The occurrences of the field as a String.
 o setInputValue
 public void setInputValue(String fieldName,
                           Object value) throws NoSuchFieldError, ClassCastException
Set the value of a field in the Jolt input message buffer using the field's native type.

Parameters:
fieldName - Name of the field.
Value - to set.
 o setInputValue
 public void setInputValue(String fieldName,
                           int index,
                           Object value) throws NoSuchFieldError, ClassCastException
Set the value of one occurrence of a field in the Jolt input message buffer using the field's native type.

Parameters:
fieldName - Name of the field.
Value - to set.
 o setInputValues
 public void setInputValues(String fieldName,
                            Object values[]) throws NoSuchFieldError, ClassCastException
Set all occurrences of a field in the Jolt input message buffer using the field's native type.

Parameters:
fieldName - Name of the field.
values - The value to set.
 o setInputTextValue
 public void setInputTextValue(String fieldName,
                               String textValue) throws NoSuchFieldError, NumberFormatException
Set the value of a field in the Jolt input message buffer as a String.

Parameters:
fieldName - Name of the field.
textValue - The value to set.
 o setInputTextValue
 public void setInputTextValue(String fieldName,
                               int index,
                               String textValue) throws NoSuchFieldError, NumberFormatException
Set one occurrence of a field in the Jolt input message buffer as a String.

Parameters:
fieldName - Name of the field.
index - Index of the field.
textValue - The value to set.
 o setInputTextValues
 public void setInputTextValues(String fieldName,
                                String textValues[]) throws NoSuchFieldError, ClassCastException
Set all occurrences of a field in the Jolt input message buffer as String.

Parameters:
fieldName - Name of the field.
textValues - The values to set.
 o getOccurrenceCount
 public int getOccurrenceCount(String fieldName) throws NoSuchFieldError
Get the number of occurrences of a field from the Jolt output message buffer.

Parameters:
fieldName - Name of the field.
Returns:
Number of occurrences.
 o clear
 public void clear()
This method clears the underlying input and output message buffers.

 o callService
 public void callService() throws ServiceException, TransactionException, ApplicationException
Invoke the remote service.

 o addJoltOutputListener
 public synchronized void addJoltOutputListener(JoltOutputListener listener)
Add a JoltOutputEvent listener.

Parameters:
listener - Event listener to be added.
 o removeJoltOutputListener
 public synchronized void removeJoltOutputListener(JoltOutputListener listener)
Remove a JoltOutputEvent listener.

Parameters:
listener - Event listener to be removed.
 o getDebug
 public boolean getDebug()
Get the value of the debug property.

Returns:
The debug state.
 o setDebug
 public void setDebug(boolean value)
Set the debug property.

Parameters:
value - the debug state

All Packages  Class Hierarchy  This Package  Previous  Next  Index