|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tekann.remotesync.pda.AppContext
public class AppContext
Handle information about an application in a PDA.
| Field Summary | |
|---|---|
java.lang.String |
creatorId
|
int |
id
|
static java.lang.String |
RANGES_TABLE_NAME
|
static java.lang.String |
SETTINGS_TABLE_NAME
|
| Method Summary | |
|---|---|
static boolean |
appContextTableExists(java.lang.String applicationId)
Verifies if the appContextTable already exists. |
TableRange |
getCurrentRange(java.lang.String tableName)
Gets the current range. |
static AppContext |
getInstance()
Gets the instance. |
java.lang.Object |
getProperty(java.lang.String name)
Gets a property |
totalcross.util.Vector |
getPropertyNames()
Gets a vector with all the added properties. |
int |
getRangedNextId(java.lang.String tableName,
int pkid)
Gets the next range ID. |
totalcross.util.Vector |
getTableRange(java.lang.String tableName)
Gets the TableRange of a table |
void |
loadProperties()
Load all the properties of the app_context table. |
static AppContext |
newInstance()
Creates a new instance. |
void |
removeProperty(java.lang.String name)
Removes a property. |
void |
saveProperties()
Drops if the app_context table exists and right after creates it again with all its properties. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Adds or replaces a property |
void |
setTableRange(java.lang.String tableName,
totalcross.util.Vector range)
Adds or replaces the TableRange of a Table. |
java.lang.String |
toXML()
Returns a XML file representing the app_context table with all your properties. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RANGES_TABLE_NAME
public static final java.lang.String SETTINGS_TABLE_NAME
public java.lang.String creatorId
public int id
| Method Detail |
|---|
public static boolean appContextTableExists(java.lang.String applicationId)
applicationId -
public static AppContext getInstance()
public static AppContext newInstance()
public TableRange getCurrentRange(java.lang.String tableName)
tableName -
public java.lang.Object getProperty(java.lang.String name)
name -
public totalcross.util.Vector getPropertyNames()
public int getRangedNextId(java.lang.String tableName,
int pkid)
throws java.lang.Exception
tableName - pkid -
java.lang.Exceptionpublic totalcross.util.Vector getTableRange(java.lang.String tableName)
tableName -
public void loadProperties()
throws java.lang.Exception
java.lang.Exceptionpublic void removeProperty(java.lang.String name)
name -
public void saveProperties()
throws java.lang.Exception
java.lang.Exception
public void setProperty(java.lang.String name,
java.lang.Object value)
name - value -
public void setTableRange(java.lang.String tableName,
totalcross.util.Vector range)
tableName - range - public java.lang.String toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||