|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.data.AbstractPeer
org.liquidsite.core.data.UserPeer
A user database peer. This class contains static methods that handles all accesses to the LS_USER table.
| Method Summary | |
static int |
doCountByDomain(DataSource src,
java.lang.String domain,
java.lang.String filter)
Returns the number of users in a specified domain. |
static void |
doDelete(DataSource src,
UserData data)
Deletes a user from the data source. |
static void |
doDeleteDomain(DataSource src,
java.lang.String domain)
Deletes all users in a domain from the data source. |
static void |
doInsert(DataSource src,
UserData data)
Inserts a new user into the data source. |
static java.util.ArrayList |
doSelectByDomain(DataSource src,
java.lang.String domain,
java.lang.String filter,
int startPos,
int maxLength)
Returns a list of matching users in a specified domain. |
static UserData |
doSelectByName(DataSource src,
java.lang.String domain,
java.lang.String name)
Returns a user with a specified name. |
static void |
doUpdate(DataSource src,
UserData data)
Updates a user in the data source. |
protected AbstractData |
getDataObject()
Returns a new instance of the data object. |
| Methods inherited from class org.liquidsite.core.data.AbstractPeer |
count, delete, insert, select, selectList, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int doCountByDomain(DataSource src,
java.lang.String domain,
java.lang.String filter)
throws DataObjectException
src - the data source to usedomain - the domain namefilter - the search filter (empty for all)
DataObjectException - if the data source couldn't be
accessed properly
public static java.util.ArrayList doSelectByDomain(DataSource src,
java.lang.String domain,
java.lang.String filter,
int startPos,
int maxLength)
throws DataObjectException
src - the data source to usedomain - the domain namefilter - the search filter (empty for all)startPos - the list interval start positionmaxLength - the list interval maximum length
DataObjectException - if the data source couldn't be
accessed properly
public static UserData doSelectByName(DataSource src,
java.lang.String domain,
java.lang.String name)
throws DataObjectException
src - the data source to usedomain - the domain namename - the user name
DataObjectException - if the data source couldn't be
accessed properly
public static void doInsert(DataSource src,
UserData data)
throws DataObjectException
src - the data source to usedata - the user data object
DataObjectException - if the data source couldn't be
accessed properly
public static void doUpdate(DataSource src,
UserData data)
throws DataObjectException
src - the data source to usedata - the user data object
DataObjectException - if the data source couldn't be
accessed properly
public static void doDelete(DataSource src,
UserData data)
throws DataObjectException
src - the data source to usedata - the user data object
DataObjectException - if the data source couldn't be
accessed properly
public static void doDeleteDomain(DataSource src,
java.lang.String domain)
throws DataObjectException
src - the data source to usedomain - the domain name
DataObjectException - if the data source couldn't be
accessed properlyprotected AbstractData getDataObject()
getDataObject in class AbstractPeer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||