|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbea.jolt.beans.JoltServiceBean
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.
JoltInputEvent,
JoltOutputEvent,
Serialized Form| Constructor Summary | |
JoltServiceBean()
Constructor |
|
| Method Summary | |
void |
addJoltOutputListener(JoltOutputListener listener)
Add a JoltOutputEvent listener. |
void |
callService()
Invoke the remote service. |
void |
clear()
This method clears the underlying input and output message buffers. |
void |
dataChanged(JoltInputEvent evt)
Event handler method for JoltInputEvents. |
boolean |
getDebug()
Get the value of the debug property. |
JoltOutputEvent |
getJoltOutputEvent()
Get to the JoltOutputEvent object encapsulated by the JoltServiceBean. |
int |
getOccurrenceCount(java.lang.String fieldName)
Get the number of occurrences of a field from the Jolt output message buffer. |
java.lang.String |
getOutputTextValue(java.lang.String fieldName)
Get the value of a field in the Jolt output message buffer as a String. |
java.lang.String |
getOutputTextValue(java.lang.String fieldName,
int index)
Get the value of one occurrence of a field in the Jolt output message buffer as a String. |
java.lang.String[] |
getOutputTextValues(java.lang.String fieldName)
Get all occurrences of a field in the Jolt output message buffer as String. |
java.lang.Object |
getOutputValue(java.lang.String fieldName)
Get the value of a field in the Jolt output message buffer using the field's native type. |
java.lang.Object |
getOutputValue(java.lang.String fieldName,
int index)
Get the value of one occurrence of a field in the Jolt output message buffer using the field's native type. |
java.lang.Object[] |
getOutputValues(java.lang.String fieldName)
Get all occurrences of a field in the Jolt output message buffer using the field's native type. |
java.lang.String |
getServiceName()
Gets the name of the remote service that this bean represents. |
JoltSessionBean |
getSession()
Get the JoltSessionBean object used by this JoltServiceBean. |
boolean |
getTransactional()
Returns true if the bean is in transactional mode, otherwise it returns false. |
boolean |
isTransactional()
Returns true if the bean is in transactional mode, otherwise it returns false. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Event handler for PropertyChange events. |
void |
removeJoltOutputListener(JoltOutputListener listener)
Remove a JoltOutputEvent listener. |
void |
setDebug(boolean value)
Set the debug property. |
void |
setInputTextValue(java.lang.String fieldName,
int index,
java.lang.String textValue)
Set one occurrence of a field in the Jolt input message buffer as a String. |
void |
setInputTextValue(java.lang.String fieldName,
java.lang.String textValue)
Set the value of a field in the Jolt input message buffer as a String. |
void |
setInputTextValues(java.lang.String fieldName,
java.lang.String[] textValues)
Set all occurrences of a field in the Jolt input message buffer as String. |
void |
setInputValue(java.lang.String fieldName,
int index,
java.lang.Object value)
Set the value of one occurrence of a field in the Jolt input message buffer using the field's native type. |
void |
setInputValue(java.lang.String fieldName,
java.lang.Object value)
Set the value of a field in the Jolt input message buffer using the field's native type. |
void |
setInputValues(java.lang.String fieldName,
java.lang.Object[] values)
Set all occurrences of a field in the Jolt input message buffer using the field's native type. |
void |
setServiceName(java.lang.String name)
Sets the name of the remote service that this bean represents. |
void |
setSession(JoltSessionBean value)
This method is used in cases when the JoltServiceBean is created after the logon event. |
void |
setTransactional(boolean mode)
Sets the transactional mode of the bean. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JoltServiceBean()
| Method Detail |
public JoltOutputEvent getJoltOutputEvent()
public void propertyChange(java.beans.PropertyChangeEvent evt)
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.
Note:This method should not be called directly.
propertyChange in interface java.beans.PropertyChangeListenerevt - The event object.
public void dataChanged(JoltInputEvent evt)
throws JoltException
Note:This method should not be called directly.
dataChanged in interface JoltInputListenerevt - The event object.
JoltExceptionpublic void setServiceName(java.lang.String name)
name - Service name.public java.lang.String getServiceName()
public boolean isTransactional()
public void setTransactional(boolean mode)
mode - true or falsepublic boolean getTransactional()
public void setSession(JoltSessionBean value)
value - The JoltSessionBean which is used by this service bean.public JoltSessionBean getSession()
public java.lang.Object getOutputValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.
java.lang.NoSuchFieldError
public java.lang.Object getOutputValue(java.lang.String fieldName,
int index)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.index - Index of the field.
java.lang.NoSuchFieldError
public java.lang.Object[] getOutputValues(java.lang.String fieldName)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.
java.lang.NoSuchFieldError
public java.lang.String getOutputTextValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.
java.lang.NoSuchFieldError
public java.lang.String getOutputTextValue(java.lang.String fieldName,
int index)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.index - The occurrence index of the field.
java.lang.NoSuchFieldError
public java.lang.String[] getOutputTextValues(java.lang.String fieldName)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.
java.lang.NoSuchFieldError
public void setInputValue(java.lang.String fieldName,
java.lang.Object value)
throws java.lang.NoSuchFieldError,
java.lang.ClassCastException
fieldName - Name of the field.
java.lang.NoSuchFieldError
java.lang.ClassCastException
public void setInputValue(java.lang.String fieldName,
int index,
java.lang.Object value)
throws java.lang.NoSuchFieldError,
java.lang.ClassCastException
fieldName - Name of the field.
java.lang.NoSuchFieldError
java.lang.ClassCastException
public void setInputValues(java.lang.String fieldName,
java.lang.Object[] values)
throws java.lang.NoSuchFieldError,
java.lang.ClassCastException
fieldName - Name of the field.values - The value to set.
java.lang.NoSuchFieldError
java.lang.ClassCastException
public void setInputTextValue(java.lang.String fieldName,
java.lang.String textValue)
throws java.lang.NoSuchFieldError,
java.lang.NumberFormatException
fieldName - Name of the field.textValue - The value to set.
java.lang.NoSuchFieldError
java.lang.NumberFormatException
public void setInputTextValue(java.lang.String fieldName,
int index,
java.lang.String textValue)
throws java.lang.NoSuchFieldError,
java.lang.NumberFormatException
fieldName - Name of the field.index - Index of the field.textValue - The value to set.
java.lang.NoSuchFieldError
java.lang.NumberFormatException
public void setInputTextValues(java.lang.String fieldName,
java.lang.String[] textValues)
throws java.lang.NoSuchFieldError,
java.lang.ClassCastException
fieldName - Name of the field.textValues - The values to set.
java.lang.NoSuchFieldError
java.lang.ClassCastException
public int getOccurrenceCount(java.lang.String fieldName)
throws java.lang.NoSuchFieldError
fieldName - Name of the field.
java.lang.NoSuchFieldErrorpublic void clear()
public void callService()
throws ServiceException,
TransactionException,
ApplicationException
ServiceException
TransactionException
ApplicationExceptionpublic void addJoltOutputListener(JoltOutputListener listener)
listener - Event listener to be added.public void removeJoltOutputListener(JoltOutputListener listener)
listener - Event listener to be removed.public boolean getDebug()
public void setDebug(boolean value)
value - the debug state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||