| org.apache.james.userrepository.AbstractUsersRepository org.apache.james.userrepository.AbstractJdbcUsersRepository org.apache.james.userrepository.DefaultUsersJdbcRepository
DefaultUsersJdbcRepository | public class DefaultUsersJdbcRepository extends AbstractJdbcUsersRepository (Code) | | A Jdbc-backed UserRepository which handles User instances
of the DefaultUser class.
Although this repository can handle subclasses of DefaultUser,
like DefaultJamesUser , only properties from
the DefaultUser class are persisted.
TODO Please note that default configuration uses JamesUsersJdbcRepository
instead of this class. So we could also delete this implementation.
|
readUserFromResultSet | protected User readUserFromResultSet(ResultSet rsUsers) throws SQLException(Code) | | Reads properties for a User from an open ResultSet.
Parameters: rsUsers - A ResultSet with a User record in the current row. A User instance throws: SQLException - if an exception occurs reading from the ResultSet |
setUserForInsertStatement | protected void setUserForInsertStatement(User user, PreparedStatement userInsert) throws SQLException(Code) | | Set parameters of a PreparedStatement object with
property values from a User instance.
Parameters: user - a User instance, which should be an implementation class whichis handled by this Repostory implementation. Parameters: userInsert - a PreparedStatement initialised with SQL taken from the "insert" SQL definition. throws: SQLException - if an exception occurs while setting parameter values. |
setUserForUpdateStatement | protected void setUserForUpdateStatement(User user, PreparedStatement userUpdate) throws SQLException(Code) | | Set parameters of a PreparedStatement object with
property values from a User instance.
Parameters: user - a User instance, which should be an implementation class whichis handled by this Repostory implementation. Parameters: userUpdate - a PreparedStatement initialised with SQL taken from the "update" SQL definition. throws: SQLException - if an exception occurs while setting parameter values. |
|
|