public class DatabaseResult
extends java.lang.Object
DatabaseResult| Constructor and Description |
|---|
DatabaseResult(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResult(ResultModel resultModel)
---------------------------------------------------------------------------------
Method Name : addResult
Description : Insert data in table
Date of Creation : 25/02/15
|
void |
close()
---------------------------------------------------------------------------------
Method Name : close
Description : Close database connection.
|
void |
deleteAll()
---------------------------------------------------------------------------------
Method Name : deleteAll
Description : Remove all record from database table
Date of Creation : 25/02/15
|
boolean |
deleteFirstRecord()
---------------------------------------------------------------------------------
Method Name : deleteFirstRecord
Description : Delete first row from table
Date of Creation : 25/02/15
|
java.util.List<ResultModel> |
getResults(java.lang.String where,
java.lang.String[] args,
java.lang.String limit)
---------------------------------------------------------------------------------
Method Name : addResult
Description : Insert data in table
Date of Creation : 25/02/15
|
void |
open()
---------------------------------------------------------------------------------
Method Name : open
Description : open database connection in writing mode.
|
void |
testSelect(java.lang.String where,
java.lang.String[] args) |
public void open()
throws android.database.SQLException
java.sql.SQLException - -------------------------------------------------------------------------------------
Update Log:
Date: By: Details:
25/2/15 Rajan Create full class
24/3/15 Bhadresh Refactor code as per coding standard.
-----------------------------------------------------------------------------------android.database.SQLExceptionpublic void close()
public boolean addResult(ResultModel resultModel)
resultModel - -------------------------------------------------------------------------------------
Update Log:
Date: By: Details:
25/2/15 Rajan Create full class
24/3/15 Bhadresh Refactor code as per coding standard.
-----------------------------------------------------------------------------------public void testSelect(java.lang.String where,
java.lang.String[] args)
public boolean deleteFirstRecord()
public void deleteAll()
public java.util.List<ResultModel> getResults(java.lang.String where, java.lang.String[] args, java.lang.String limit)
where - args - limit -