|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jxml.qare.qhome.SDO | +--com.jxml.qare.qhome.AppData
This is the base class for all Application Data
Field Summary | |
DBAppData.Row |
appDataRow
The DBAppData.Row containing this AppData. |
Constructor Summary | |
AppData()
|
Method Summary | |
void |
dbAdd(P2PPlugin qapp)
Add this object to the database using a randomly generated key. |
void |
dbAdd(P2PPlugin qapp,
String key)
Add to the database. |
void |
dbAddRoot(P2PPlugin qapp)
Add this object to the database as the application root. |
void |
dbDelete()
Remove from the database. |
static AppData |
dbGet(P2PPlugin qapp,
String key)
Fetch from the database, given a unique key. |
static AppData |
dbGetRoot(P2PPlugin qapp)
Fetch the application root object from the database. |
void |
dbUpdate()
Update the database. |
void |
emptyTable(String tableName)
Empty table. |
void |
emptyWithKey(String entryKey)
Remove all content from all tables with the given entryKey. |
void |
eval(Map properties,
List args,
ClassLoader cl)
P2P response messages are not displayed in inbox. |
String |
getAction()
This method specifies the action defined by all application data. |
abstract QSchemaFactory |
getAppDataFactory()
Returns the QSchemaFactory for processing the application's data. |
DBApplication.Row |
getApplication()
Returns the application |
List |
getContents(String tableName,
String entryKey)
Returns a List of AppData objects with matching tableName and entryKey. |
List |
getContentsWithKey(String entryKey)
Returns a List of AppData objects with matching entryKey ordered by tableName. |
QSchemaFactory |
getFactory()
Returns the QSchemaFactory for processing the application's data. |
int |
getId()
Returns the appData ID |
String |
getKey()
Returns the unique key |
List |
getKeys(String tableName)
Returns a List of entry keys. |
P2PPlugin |
getPlugin()
Returns the application plugin |
List |
getTable(String tableName)
Returns a List of DBAppTable.Row objects describing the table, ordered by entryKey. |
List |
getTables()
Returns a List of table names with this as the container. |
List |
getWithKey(String entryKey)
Returns a List of DBAppTable.Row objects describing the table, ordered by tableName. |
boolean |
inDB()
Return true if this object has been added to the database. |
boolean |
inTable(AppData container,
String tableName,
String entryKey)
Returns true when the entry is in the table. |
void |
peerDeleted()
Deletes this object from the database when an inbox peer object has been deleted. |
String |
process(String arg,
InboxAgent inboxAgent)
Process the template arguments. |
void |
removedFromTable(AppData container,
String tableName,
String entryKey)
Deletes this object from the database when removed from an appData table. |
void |
tableAdd(AppData container,
String tableName)
Add to table using the time as the key. |
void |
tableAdd(AppData container,
String tableName,
String entryKey)
Add to table. |
void |
tableDelete(AppData container,
String tableName)
Remove from table. |
void |
tableDelete(AppData container,
String tableName,
String entryKey)
Remove from table. |
Methods inherited from class com.jxml.qare.qhome.SDO |
createInboxMsg, createInboxMsg, exceptionTraceString, getFactoryClassName, getQDoc, getSchema, toXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public DBAppData.Row appDataRow
Constructor Detail |
public AppData()
Method Detail |
public static final AppData dbGetRoot(P2PPlugin qapp) throws Exception
public static final AppData dbGet(P2PPlugin qapp, String key) throws Exception
public abstract QSchemaFactory getAppDataFactory()
public String process(String arg, InboxAgent inboxAgent) throws Exception
public void peerDeleted() throws Exception
public void removedFromTable(AppData container, String tableName, String entryKey) throws Exception
public final QSchemaFactory getFactory()
getFactory
in class SDO
public final boolean inDB()
public final void dbAdd(P2PPlugin qapp) throws Exception
public final void dbAddRoot(P2PPlugin qapp) throws Exception
public final void dbAdd(P2PPlugin qapp, String key) throws Exception
public void dbUpdate() throws Exception
public final void dbDelete() throws Exception
public final void tableAdd(AppData container, String tableName) throws Exception
public final void tableAdd(AppData container, String tableName, String entryKey) throws Exception
public final void emptyTable(String tableName) throws Exception
public final void emptyWithKey(String entryKey) throws Exception
public final void tableDelete(AppData container, String tableName) throws Exception
public final void tableDelete(AppData container, String tableName, String entryKey) throws Exception
public final List getTable(String tableName) throws Exception
public final List getWithKey(String entryKey) throws Exception
public final List getTables() throws Exception
public final boolean inTable(AppData container, String tableName, String entryKey) throws Exception
public final List getKeys(String tableName) throws Exception
public final List getContents(String tableName, String entryKey) throws Exception
public final List getContentsWithKey(String entryKey) throws Exception
public final P2PPlugin getPlugin()
public final DBApplication.Row getApplication()
public final String getKey() throws Exception
public final int getId()
public final String getAction()
getAction
in class SDO
public final void eval(Map properties, List args, ClassLoader cl) throws Exception
eval
in class SDO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |