|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.torque.util.BasePeer | +--org.apache.turbine.om.security.peer.TurbineUserPeer
This class handles all the database access for the User/User table. This table contains all the information for a given user.
Field Summary | |
static java.lang.String[] |
columnNames
The names of the columns. |
static java.lang.String |
CONFIRM_DATA
This is the value that is stored in the database for confirmed users. |
static java.lang.String |
CONFIRM_VALUE
The key name for the confirm_value field. |
static java.lang.String |
CREATED
The key name for the created field. |
static java.lang.String[] |
criteriaKeys
The keys for the criteria. |
static java.lang.String |
EMAIL
The key name for the email field. |
static java.lang.String |
FIRST_NAME
The key name for the first name field. |
static java.lang.String |
LAST_LOGIN
The key name for the last_login field. |
static java.lang.String |
LAST_NAME
The key name for the last name field. |
static java.lang.String |
MODIFIED
The key name for the modified field. |
static java.lang.String |
OBJECT_DATA
The key name for the object_data field. |
static java.lang.String |
PASSWORD
The key name for the password field. |
static java.lang.String |
USER_ID
The key name for the visitor id field. |
static java.lang.String |
USERNAME
The key name for the username field. |
Fields inherited from class org.apache.torque.util.BasePeer |
category, ctx, DEFAULT_MAP_BUILDER, IGNORE_CASE, ORDER_BY, TABLE_NAME |
Constructor Summary | |
TurbineUserPeer()
|
Method Summary | |
static void |
addSelectColumns(org.apache.torque.util.Criteria criteria)
Add all the columns needed to create a new object |
static org.apache.torque.util.Criteria |
buildCriteria(User user)
Builds a criteria object based upon an User object |
static boolean |
checkExists(User user)
Checks if a User is defined in the system. |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria)
Issues a select based on a criteria. |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria,
java.sql.Connection dbConn)
Issues a select based on a criteria. |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria,
User current)
Issues a select based on a criteria. |
static void |
doUpdate(org.apache.torque.util.Criteria criteria)
Issues an update based on a criteria. |
static java.lang.String |
getColumnName(java.lang.String name)
Returns the full name of a column. |
java.lang.String |
getFullColumnName(java.lang.String name)
Returns the full name of a column. |
static java.lang.Class |
getOMClass()
The type of User this peer will instantiate. |
protected static org.apache.torque.map.TableMap |
getTableMap()
Returns the TableMap related to this peer. |
static java.lang.String |
getTableName()
Get the name of this table. |
static void |
populateObject(com.workingdogs.village.Record row,
int offset,
User obj)
|
static User |
row2Object(com.workingdogs.village.Record row,
int offset,
java.lang.Class cls)
Implementss torque peers' method. |
static java.util.List |
selectAllConfirmedUsers()
Returns a vector of all confirmed User objects. |
static java.util.List |
selectAllUsers()
Returns a vector of all User objects. |
Methods inherited from class org.apache.torque.util.BasePeer |
beginTransaction, closeConnection, commitTransaction, createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doInsert, doInsert, doPSSelect, doPSSelect, doUpdate, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getMapBuilder, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultiple, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema, rollBackTransaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONFIRM_DATA
public static final java.lang.String USER_ID
public static final java.lang.String USERNAME
public static final java.lang.String PASSWORD
public static final java.lang.String FIRST_NAME
public static final java.lang.String LAST_NAME
public static final java.lang.String MODIFIED
public static final java.lang.String CREATED
public static final java.lang.String EMAIL
public static final java.lang.String LAST_LOGIN
public static final java.lang.String CONFIRM_VALUE
public static final java.lang.String OBJECT_DATA
public static java.lang.String[] columnNames
public static java.lang.String[] criteriaKeys
Constructor Detail |
public TurbineUserPeer()
Method Detail |
public static java.lang.String getTableName()
public static java.lang.String getColumnName(java.lang.String name)
public java.lang.String getFullColumnName(java.lang.String name)
getFullColumnName
in interface UserPeer
public static org.apache.torque.util.Criteria buildCriteria(User user)
public static void addSelectColumns(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
public static void populateObject(com.workingdogs.village.Record row, int offset, User obj) throws org.apache.torque.TorqueException
public static java.util.List doSelect(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- Object containing data that is used to create
the SELECT statement.Exception,
- a generic exception.public static java.util.List doSelect(org.apache.torque.util.Criteria criteria, User current) throws org.apache.torque.TorqueException
criteria
- Object containing data that is used to create
the SELECT statement.current
- User object that is to be used as part of the
results - if not passed, then a new one is created.Exception,
- a generic exception.public static java.util.List doSelect(org.apache.torque.util.Criteria criteria, java.sql.Connection dbConn) throws org.apache.torque.TorqueException
criteria
- Object containing data that is used to create
the SELECT statement.current
- User object that is to be used as part of the
results - if not passed, then a new one is created.Exception,
- a generic exception.public static User row2Object(com.workingdogs.village.Record row, int offset, java.lang.Class cls) throws org.apache.torque.TorqueException
public static java.lang.Class getOMClass() throws java.lang.Exception
public static void doUpdate(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- Object containing data that is used to create
the UPDATE statement.Exception,
- a generic exception.public static boolean checkExists(User user) throws DataBackendException, java.lang.Exception
permission
- The User to be checked.true
if given User exists in the system.DataBackendException
- when more than one User with
the same name exists.Exception,
- a generic exception.public static java.util.List selectAllUsers() throws java.lang.Exception
Exception,
- a generic exception.public static java.util.List selectAllConfirmedUsers() throws java.lang.Exception
Exception,
- a generic exception.protected static org.apache.torque.map.TableMap getTableMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |