com.sybase.uep.bobclient.actions
Class NamedQueryAction

java.lang.Object
  extended by com.sybase.uep.bobclient.actions.Action
      extended by com.sybase.uep.bobclient.actions.NamedQueryAction
All Implemented Interfaces:
IBOBAction, java.lang.Runnable

public class NamedQueryAction
extends Action

This is the named query action class

This will perform a named query on a specific mobile application

Author:
tdang
See Also:
Action

Constructor Summary
NamedQueryAction(java.lang.String mobileAppID, java.lang.String namedQuery, IBOBScreen screen, java.util.Vector parameters, boolean saveParams)
          Constructor to create a named query action
NamedQueryAction(java.lang.String mobileAppID, java.lang.String namedQuery, IBOBScreen screen, java.util.Vector parameters, int requiredMessageRID, int tooLongMessageRID, boolean saveParams)
          Constructor to create a named query action
NamedQueryAction(java.lang.String mobileAppID, java.lang.String namedQuery, IBOBScreen screen, java.util.Vector parameters, java.lang.String requiredMessage, java.lang.String tooLongMessage, boolean saveParams)
          Constructor to create a named query action
 
Method Summary
 void finish(boolean finished)
          This gets called when the action is finished
 IBOBScreen getScreen()
          Retrieves the screen that displays this named query action progress.
 void run()
          (non-Javadoc)
 void setScreen(IBOBScreen screen)
          Sets the screen that displays this named query action progress.
 
Methods inherited from class com.sybase.uep.bobclient.actions.Action
hasFailed, isProcessing, setHasFailed, setIsProcessing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedQueryAction

public NamedQueryAction(java.lang.String mobileAppID,
                        java.lang.String namedQuery,
                        IBOBScreen screen,
                        java.util.Vector parameters,
                        int requiredMessageRID,
                        int tooLongMessageRID,
                        boolean saveParams)
Constructor to create a named query action

Parameters:
mobileAppID - String value of the mobile application ID
namedQuery - String value of the named query
screen - IBOBScreen screen to go to after performing the named query
parameters - Vector list of SubmitElement objects for the parameters
requiredMessageRID - localization resource ID for the required message that will be alerted to the user. example "Input \"{0}\" is required."
tooLongmessageRID - localization resource ID for the message to alert the user when the entered String exceeds the maximum length. example "Input {0} exceeds the maximum length of {1}."
saveParams - true to save the named query parameters for later, otherwise false
See Also:
IBOBScreen

NamedQueryAction

public NamedQueryAction(java.lang.String mobileAppID,
                        java.lang.String namedQuery,
                        IBOBScreen screen,
                        java.util.Vector parameters,
                        java.lang.String requiredMessage,
                        java.lang.String tooLongMessage,
                        boolean saveParams)
Constructor to create a named query action

Parameters:
mobileAppID - String value of the mobile application ID
namedQuery - String value of the named query
screen - IBOBScreen screen to go to after performing the named query
parameters - Vector list of SubmitElement objects for the parameters
requiredMessage - String value of the required message that will be alerted to the user. example "Input \"{0}\" is required."
tooLongmessage - String value of the message to alert the user when the entered String exceeds the maximum length. example "Input {0} exceeds the maximum length of {1}."
saveParams - true to save the named query parameters for later, otherwise false
See Also:
IBOBScreen

NamedQueryAction

public NamedQueryAction(java.lang.String mobileAppID,
                        java.lang.String namedQuery,
                        IBOBScreen screen,
                        java.util.Vector parameters,
                        boolean saveParams)
Constructor to create a named query action

Parameters:
mobileAppID - String value of the mobile application ID
namedQuery - String value of the named query
screen - IBOBScreen screen to go to after performing the named query
parameters - Vector list of SubmitElement objects for the parameters
saveParams - true to save the named query parameters for later, otherwise false
See Also:
IBOBScreen
Method Detail

finish

public void finish(boolean finished)
This gets called when the action is finished

Specified by:
finish in interface IBOBAction
Overrides:
finish in class Action
Parameters:
finished - true to specify if the action finished, otherwise false
See Also:
IBOBAction.finish(boolean success)

run

public void run()
(non-Javadoc)

See Also:
Runnable.run()

getScreen

public IBOBScreen getScreen()
Retrieves the screen that displays this named query action progress.

Returns:
IBOBScreen object
See Also:
IBOBScreen

setScreen

public void setScreen(IBOBScreen screen)
Sets the screen that displays this named query action progress.

Parameters:
screen - IBOBScreen object
See Also:
IBOBScreen