com.jxml.qare.qhome.db
Class DBAppData

java.lang.Object
  |
  +--com.jxml.qare.qhome.db.DBBase
        |
        +--com.jxml.qare.qhome.db.DBAppData
All Implemented Interfaces:
DeleteListener, EventListener

public final class DBAppData
extends DBBase
implements DeleteListener

Generic table of application data.


Inner Class Summary
 class DBAppData.Row
           
 
Fields inherited from class com.jxml.qare.qhome.db.DBBase
createListeners, dbBases, deleteListeners, fileDateFormat, restored
 
Method Summary
 void backup(DataOutputStream dos)
           
 DBAppData.Row create(DBApplication.Row application, String xmlData, String gkey)
           
 DBAppData.Row create(P2PPlugin qapp, AppData appData)
           
 DBAppData.Row create(P2PPlugin qapp, AppData appData, String gkey)
           
 DBRow createObj(ResultSet rs)
           
 void createTable()
           
 void deleteEvent(DeleteEvent deleteEvent)
           
 DBAppData.Row get(int id)
           
 DBAppData.Row get(String gkey)
           
 int getMaxPendingId()
           
 void purgePeerDeleted(P2PPlugin qapp)
           
 void restore(String fileNamePrefix, DataInputStream dis)
           
 String tableName()
           
 
Methods inherited from class com.jxml.qare.qhome.db.DBBase
addCreateListener, addDeleteListener, addKey, backup, backupString, clearRef, create, createCurrentDate, createTable, deleteWeak, executeUpdate, getRow, getRows, getRows, getWeak, removeCreateListener, removeDeleteListener, restore, restoreString, sendCreateEvent, sendDeleteEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tableName

public String tableName()
Overrides:
tableName in class DBBase

createTable

public void createTable()
                 throws Exception
Overrides:
createTable in class DBBase

deleteEvent

public void deleteEvent(DeleteEvent deleteEvent)
                 throws Exception
Specified by:
deleteEvent in interface DeleteListener

get

public DBAppData.Row get(int id)
                  throws Exception

get

public DBAppData.Row get(String gkey)
                  throws Exception

purgePeerDeleted

public void purgePeerDeleted(P2PPlugin qapp)
                      throws Exception

getMaxPendingId

public int getMaxPendingId()
                    throws Exception

createObj

public DBRow createObj(ResultSet rs)
                throws Exception
Overrides:
createObj in class DBBase

create

public DBAppData.Row create(P2PPlugin qapp,
                            AppData appData)
                     throws Exception

create

public DBAppData.Row create(P2PPlugin qapp,
                            AppData appData,
                            String gkey)
                     throws Exception

create

public DBAppData.Row create(DBApplication.Row application,
                            String xmlData,
                            String gkey)
                     throws Exception

backup

public void backup(DataOutputStream dos)
            throws Exception
Overrides:
backup in class DBBase

restore

public void restore(String fileNamePrefix,
                    DataInputStream dis)
             throws Exception
Overrides:
restore in class DBBase