com.jxml.qare.qhome.db
Class DBAccount
java.lang.Object
|
+--com.jxml.qare.qhome.db.DBBase
|
+--com.jxml.qare.qhome.db.DBAccount
- All Implemented Interfaces:
- DeleteListener, EventListener
- public final class DBAccount
- extends DBBase
- implements DeleteListener
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 |
SIMPLE_ACCOUNT
public static final int SIMPLE_ACCOUNT
- Simple account type
GROUP_ACCOUNT
public static final int GROUP_ACCOUNT
- Group account type
P2P_ACCOUNT
public static final int P2P_ACCOUNT
- P2P account type
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
create
public DBAccount.Row create(DBUser.Row user,
String password)
throws Exception
createGroup
public DBAccount.Row createGroup(DBUser.Row byUser,
String groupName,
boolean personal)
throws Exception
createP2P
public DBAccount.Row createP2P(DBUser.Row user)
throws Exception
get
public DBAccount.Row get(DBUser.Row user)
throws Exception
get
public DBAccount.Row get(DBSession.Row session)
throws Exception
get
public List get()
throws Exception
getMaxPendingId
public int getMaxPendingId()
throws Exception
createObj
public DBRow createObj(ResultSet rs)
throws Exception
- Overrides:
createObj
in class DBBase
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