|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.data.MobileApplicationDataHandler
public class MobileApplicationDataHandler
MobileApplicationDataHandler
is the base class which provides iteration facility to the mobile
application data.
The handler encapsulates the data fetching methods, and delegates the actual data access logic to the
MBOModel
. Each handler object is responsible of caching the recent retrieved data and can provide the
value objects to the consumer(client)
Field Summary | |
---|---|
protected MBOModel |
_application
|
protected AppLoggerWrapper |
_appLogger
|
protected java.lang.String |
_dynamicNamedQuery
|
protected boolean |
_isSearch
|
protected java.lang.String |
_namedQuery
|
protected java.util.Hashtable |
_namedQueryParameters
|
protected java.util.Vector |
_namedQuerySubmitElements
|
protected MBOModel |
_parentApplication
|
protected java.lang.String |
_parentAssociationName
|
protected java.lang.Object |
_parentSelectedRow
|
protected Query |
_query
|
protected java.util.Vector |
_rows
|
protected int |
_size
|
protected static java.lang.String |
FIND_ALL
|
Constructor Summary | |
---|---|
MobileApplicationDataHandler()
|
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()
|
protected boolean |
isFetchingThroughRelationship()
Utility method to determine whether the data should be fetched through a relationship query |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector _rows
protected MBOModel _application
protected MBOModel _parentApplication
protected java.lang.Object _parentSelectedRow
protected java.lang.String _parentAssociationName
protected Query _query
protected int _size
protected AppLoggerWrapper _appLogger
protected boolean _isSearch
protected java.lang.String _namedQuery
protected java.util.Vector _namedQuerySubmitElements
protected java.util.Hashtable _namedQueryParameters
protected java.lang.String _dynamicNamedQuery
protected static final java.lang.String FIND_ALL
Constructor Detail |
---|
public MobileApplicationDataHandler()
Method Detail |
---|
public int getSize()
getSize
in interface IMobileApplicationDataHandler
public java.util.Vector getRows()
getRows
in interface IMobileApplicationDataHandler
public java.lang.Object getRow(int rowIndex)
getRow
in interface IMobileApplicationDataHandler
public void clearCachedRows()
IMobileApplicationDataHandler
clearCachedRows
in interface IMobileApplicationDataHandler
protected boolean isFetchingThroughRelationship()
public void setRelationshipData(MBOModel parentApplication, java.lang.Object parentSelectedRow, java.lang.String associationName)
IMobileApplicationDataHandler
setRelationshipData
in interface IMobileApplicationDataHandler
public void setMobileApplication(MBOModel application)
IMobileApplicationDataHandler
setMobileApplication
in interface IMobileApplicationDataHandler
public void setQuery(Query query)
IMobileApplicationDataHandler
setQuery
in interface IMobileApplicationDataHandler
public void setNamedQuery(java.lang.String namedQuery)
IMobileApplicationDataHandler
setNamedQuery
in interface IMobileApplicationDataHandler
namedQuery
- String
value for the named querypublic java.lang.String getNamedQuery()
IMobileApplicationDataHandler
getNamedQuery
in interface IMobileApplicationDataHandler
public void setNamedQuerySubmitElements(java.util.Vector parameters)
IMobileApplicationDataHandler
setNamedQuerySubmitElements
in interface IMobileApplicationDataHandler
parameters
- Vector
list of SubmitElement objectspublic java.util.Vector getNamedQuerySubmitElements()
IMobileApplicationDataHandler
getNamedQuerySubmitElements
in interface IMobileApplicationDataHandler
public void setNamedQueryParameters(java.util.Hashtable parameters)
setNamedQueryParameters
in interface IMobileApplicationDataHandler
parameters
- Vector
list of name value pairpublic java.util.Hashtable getNamedQueryParameters()
IMobileApplicationDataHandler
getNamedQueryParameters
in interface IMobileApplicationDataHandler
public void setDynamicNamedQuery(java.lang.String namedQuery)
IMobileApplicationDataHandler
setDynamicNamedQuery
in interface IMobileApplicationDataHandler
namedQuery
- String
value for the dynamic named querypublic java.lang.String getDynamicNamedQuery()
IMobileApplicationDataHandler
getDynamicNamedQuery
in interface IMobileApplicationDataHandler
public void setDynamicNamedQueryParameters(java.util.Hashtable parameters)
IMobileApplicationDataHandler
setDynamicNamedQueryParameters
in interface IMobileApplicationDataHandler
parameters
- Vector
list of name value pairpublic java.util.Hashtable getDynamicNamedQueryParameters()
IMobileApplicationDataHandler
getDynamicNamedQueryParameters
in interface IMobileApplicationDataHandler
public Query getQuery()
IMobileApplicationDataHandler
getQuery
in interface IMobileApplicationDataHandler
public MBOModel getApplicationData()
getApplicationData
in interface IMobileApplicationDataHandler
public void setSearch(boolean isSearch)
IMobileApplicationDataHandler
setSearch
in interface IMobileApplicationDataHandler
isSearch
- - true if the query is for a search
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |