com.sybase.uep.bobclient.interfaces
Interface IMobileApplicationDataHandler

All Known Implementing Classes:
MobileApplicationDataHandler, MobileApplicationDataPagingHandler, SPDataHandler

public interface IMobileApplicationDataHandler


Method Summary
 void clearCachedRows()
          Clears the cached rows in the handler
 MBOModel getApplicationData()
           
 java.lang.String getDynamicNamedQuery()
          Get the dynamic named query name
 java.util.Hashtable getDynamicNamedQueryParameters()
          Get the dynamic named query parameters hash table
 java.lang.String getNamedQuery()
          Get the named query name
 java.util.Hashtable getNamedQueryParameters()
          Get the named query parameters hash table
 java.util.Vector getNamedQuerySubmitElements()
          Get the named query submit elements
 Query getQuery()
          Returns the query object
 java.lang.Object getRow(int rowIndex)
           
 java.util.Vector getRows()
           
 int getSize()
           
 void setDynamicNamedQuery(java.lang.String namedQuery)
          Set the dynamic named query name
 void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
          Set the dynamic named query parameters hash table
 void setMobileApplication(MBOModel application)
          Sets the motile application to the data handler, calling this method would clear the cached rows if necessary
 void setNamedQuery(java.lang.String namedQuery)
          Set the named query name
 void setNamedQueryParameters(java.util.Hashtable parameters)
          Set the named query parameters hash table
 void setNamedQuerySubmitElements(java.util.Vector parameters)
          Set the named query submit elements
 void setQuery(Query query)
          Sets the query object to the data handler
 void setRelationshipData(MBOModel parentApplication, java.lang.Object parentSelectedRow, java.lang.String associationName)
          Sets the relationship data to the handler, including parent MBO,parent selected row and association name
 void setSearch(boolean isSearch)
          Sets if the query is for a search
 

Method Detail

getSize

int getSize()
Returns:
the total size of the returned results

getRows

java.util.Vector getRows()
Returns:
the cached rows in the handler instance

getRow

java.lang.Object getRow(int rowIndex)
Parameters:
rowIndex -
Returns:
the value object fetched at the given index

clearCachedRows

void clearCachedRows()
Clears the cached rows in the handler


setMobileApplication

void setMobileApplication(MBOModel application)
Sets the motile application to the data handler, calling this method would clear the cached rows if necessary

Parameters:
application -

getApplicationData

MBOModel getApplicationData()
Returns:
the application data maintained in the data handler

setQuery

void setQuery(Query query)
Sets the query object to the data handler

Parameters:
query -

getQuery

Query getQuery()
Returns the query object

Returns:
Query

setNamedQuery

void setNamedQuery(java.lang.String namedQuery)
Set the named query name

Parameters:
namedQuery - String value for the named query

getNamedQuery

java.lang.String getNamedQuery()
Get the named query name

Returns:

setNamedQuerySubmitElements

void setNamedQuerySubmitElements(java.util.Vector parameters)
Set the named query submit elements

Parameters:
parameters - Vector list of SubmitElement objects

setNamedQueryParameters

void setNamedQueryParameters(java.util.Hashtable parameters)
Set the named query parameters hash table

Parameters:
parameters - Hashtable map of name value pair

getNamedQueryParameters

java.util.Hashtable getNamedQueryParameters()
Get the named query parameters hash table

Returns:

getNamedQuerySubmitElements

java.util.Vector getNamedQuerySubmitElements()
Get the named query submit elements

Returns:

setRelationshipData

void setRelationshipData(MBOModel parentApplication,
                         java.lang.Object parentSelectedRow,
                         java.lang.String associationName)
Sets the relationship data to the handler, including parent MBO,parent selected row and association name


setDynamicNamedQuery

void setDynamicNamedQuery(java.lang.String namedQuery)
Set the dynamic named query name

Parameters:
namedQuery - String value for the dynamic named query

getDynamicNamedQuery

java.lang.String getDynamicNamedQuery()
Get the dynamic named query name

Returns:
the dynamic named query name

setDynamicNamedQueryParameters

void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
Set the dynamic named query parameters hash table

Parameters:
parameters - Vector list of name value pair

getDynamicNamedQueryParameters

java.util.Hashtable getDynamicNamedQueryParameters()
Get the dynamic named query parameters hash table

Returns:
the dynamic named query parameters hash table

setSearch

void setSearch(boolean isSearch)
Sets if the query is for a search

Parameters:
isSearch - - true if the query is for a search