|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tekann.webservice.client.WSHandler
public class WSHandler
Used to call methods from the Web Service generated by TKN Mobile Studio.
| Field Summary | |
|---|---|
static int |
TIME_OUT
Connection time out - GPRS. |
static boolean |
useGPRS
Used to make the connection call |
| Constructor Summary | |
|---|---|
WSHandler(java.lang.String uri)
Default constructor. |
|
WSHandler(java.lang.String url,
java.lang.String service)
Deprecated. Use public WSHandler(String uri) |
|
| Method Summary | |
|---|---|
static boolean |
connectGPRS()
Connect the GPRS connection. |
int |
delete(com.tekann.codegen.pda.db.IDTO dto)
Executes the delete method. |
int |
delete(java.lang.String tableName,
java.lang.String whereClause)
Executes the delete method |
static boolean |
disconnectGPRS()
Disconnect the GPRS connection. |
AppContext |
getAppContextTableData(java.lang.String dataExchangeProjectName)
Gets the app context table data |
com.tekann.codegen.pda.ILogger |
getLogger()
Get the logger. |
long |
getNextId(java.lang.String columnName,
java.lang.String tableName)
Executes the getNextID method. |
totalcross.util.Hashtable |
getRangesByPDAContext(java.lang.String dataExchangeProjectName)
Gets the ranges XML of a PDA |
totalcross.util.Vector |
getSyncTables(java.lang.String dataExchangeProjectName)
Gets the tables to synchronize |
totalcross.util.Vector |
getTablesMetaData(java.lang.String dataExchangeProjectName)
Gets the table metadata according to the passed project name |
java.lang.String |
getURI()
Gets the URI |
int |
insert(com.tekann.codegen.pda.db.IDTO dto)
Executes the insert. |
int |
insert(totalcross.util.Vector dtos)
Executes the insert. |
java.lang.Object |
select(com.tekann.codegen.pda.db.IDAO[] daos,
java.lang.String tableGroupName,
boolean scriptMode)
Select for multiple tables. |
java.lang.Object |
select(java.lang.String query)
Executes the select. |
java.lang.Object |
select(java.lang.String tableName,
java.lang.String pdaTableName,
java.lang.String whereClause)
Executes the select. |
java.lang.Object |
select(java.lang.String tableName,
java.lang.String pdaTableName,
java.lang.String columns,
java.lang.String whereClause)
Executes the select. |
int |
sendData(totalcross.util.Vector dtos)
|
void |
setLogger(com.tekann.codegen.pda.ILogger logger)
|
void |
setURI(java.lang.String uri,
java.lang.String service)
Sets the URI |
java.lang.Object |
syncDBtoPDA(java.lang.String dataExchangeProjectName)
Extract the database data from the server according to the synchronization project |
int |
syncPDAtoDB(java.lang.Object[] dtos,
java.lang.String dataExchangeProjectName)
Executes the syncPDAtoDB |
int |
update(com.tekann.codegen.pda.db.IDTO dto,
java.lang.String whereClause)
Executes the update. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int TIME_OUT
public static boolean useGPRS
| Constructor Detail |
|---|
public WSHandler(java.lang.String url,
java.lang.String service)
url - URI service.service - Service name.public WSHandler(java.lang.String uri)
uri - URI service.| Method Detail |
|---|
public static boolean connectGPRS()
throws totalcross.io.IOException
timeout - Connection time out.
totalcross.io.IOException
public static boolean disconnectGPRS()
throws totalcross.io.IOException
totalcross.io.IOException
public java.lang.Object select(java.lang.String query)
throws java.lang.Exception
TKNMSWSClient
select in interface TKNMSWSClientjava.lang.Exception
public java.lang.Object select(java.lang.String tableName,
java.lang.String pdaTableName,
java.lang.String whereClause)
throws java.lang.Exception
TKNMSWSClient
select in interface TKNMSWSClientjava.lang.Exception
public java.lang.Object select(java.lang.String tableName,
java.lang.String pdaTableName,
java.lang.String columns,
java.lang.String whereClause)
throws java.lang.Exception
TKNMSWSClient
select in interface TKNMSWSClientjava.lang.Exception
public java.lang.Object select(com.tekann.codegen.pda.db.IDAO[] daos,
java.lang.String tableGroupName,
boolean scriptMode)
throws java.lang.Exception
daos - tableGroupName - scriptMode - True: file with insertsjava.lang.Exception
public int update(com.tekann.codegen.pda.db.IDTO dto,
java.lang.String whereClause)
throws java.lang.Exception
TKNMSWSClient
update in interface TKNMSWSClientjava.lang.Exception
public int insert(com.tekann.codegen.pda.db.IDTO dto)
throws java.lang.Exception
TKNMSWSClient
insert in interface TKNMSWSClientjava.lang.Exception
public int sendData(totalcross.util.Vector dtos)
throws java.lang.Exception
java.lang.Exception
public int insert(totalcross.util.Vector dtos)
throws java.lang.Exception
TKNMSWSClient
insert in interface TKNMSWSClientjava.lang.Exception
public int delete(com.tekann.codegen.pda.db.IDTO dto)
throws java.lang.Exception
TKNMSWSClient
delete in interface TKNMSWSClientjava.lang.Exception
public int delete(java.lang.String tableName,
java.lang.String whereClause)
throws java.lang.Exception
TKNMSWSClient
delete in interface TKNMSWSClientjava.lang.Exception
public AppContext getAppContextTableData(java.lang.String dataExchangeProjectName)
throws java.lang.Exception
dataExchangeProjectName -
java.lang.Exception
public long getNextId(java.lang.String columnName,
java.lang.String tableName)
throws java.lang.Exception
TKNMSWSClient
getNextId in interface TKNMSWSClientjava.lang.Exception
public totalcross.util.Hashtable getRangesByPDAContext(java.lang.String dataExchangeProjectName)
throws java.lang.Exception
TKNMSWSClient
getRangesByPDAContext in interface TKNMSWSClientjava.lang.Exception
public totalcross.util.Vector getSyncTables(java.lang.String dataExchangeProjectName)
throws java.lang.Exception
TKNMSWSClient
getSyncTables in interface TKNMSWSClientjava.lang.Exception
public totalcross.util.Vector getTablesMetaData(java.lang.String dataExchangeProjectName)
throws java.lang.Exception
dataExchangeProjectName -
java.lang.Exceptionpublic java.lang.String getURI()
public void setURI(java.lang.String uri,
java.lang.String service)
uri - service -
public java.lang.Object syncDBtoPDA(java.lang.String dataExchangeProjectName)
throws java.lang.Exception
TKNMSWSClient
syncDBtoPDA in interface TKNMSWSClientjava.lang.Exception
public int syncPDAtoDB(java.lang.Object[] dtos,
java.lang.String dataExchangeProjectName)
throws java.lang.Exception
TKNMSWSClient
syncPDAtoDB in interface TKNMSWSClientdtos - DTOs array to be synchronized
java.lang.Exceptionpublic com.tekann.codegen.pda.ILogger getLogger()
TKNMSWSClient
getLogger in interface TKNMSWSClientpublic void setLogger(com.tekann.codegen.pda.ILogger logger)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||