org.apache.james.user.jdbc
Class JamesUsersJdbcRepository
java.lang.Object
org.apache.james.user.lib.AbstractUsersRepository
org.apache.james.user.lib.AbstractJamesUsersRepository
org.apache.james.user.jdbc.AbstractJdbcUsersRepository
org.apache.james.user.jdbc.JamesUsersJdbcRepository
- All Implemented Interfaces:
- Configurable, LogEnabled, RecipientRewriteTable, JamesUsersRepository, UsersRepository
Deprecated.
@Deprecated
public class JamesUsersJdbcRepository
- extends AbstractJdbcUsersRepository
A Jdbc-backed UserRepository which handles User instances of the
DefaultJamesUser class, or any superclass.
| Methods inherited from class org.apache.james.user.jdbc.AbstractJdbcUsersRepository |
contains, containsCaseInsensitive, countUsers, doAddUser, doConfigure, doRemoveUser, doUpdateUser, getUserByName, getUserByName, getUserByNameIterating, init, list, listAllUsers, listUserNames, removeUser, setDatasource, setFileSystem, test |
| Methods inherited from class org.apache.james.user.lib.AbstractJamesUsersRepository |
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doAddUser, getAllMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setEnableAliases, setEnableForwarding, setIgnoreCase, updateUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JamesUsersJdbcRepository
public JamesUsersJdbcRepository()
- Deprecated.
readUserFromResultSet
protected User readUserFromResultSet(ResultSet rsUsers)
throws SQLException
- Deprecated.
- Description copied from class:
AbstractJdbcUsersRepository
- Reads properties for a User from an open ResultSet. Subclass
implementations of this method must have knowledge of the fields
presented by the "select" and "selectByLowercaseName" SQL statements.
These implemenations may generate a subclass-specific User instance.
- Specified by:
readUserFromResultSet in class AbstractJdbcUsersRepository
- Parameters:
rsUsers - A ResultSet with a User record in the current row.
- Returns:
- A User instance
- Throws:
SQLException - if an exception occurs reading from the ResultSet- See Also:
AbstractJdbcUsersRepository.readUserFromResultSet(java.sql.ResultSet)
setUserForInsertStatement
protected void setUserForInsertStatement(User user,
PreparedStatement userInsert)
throws SQLException
- Deprecated.
- Description copied from class:
AbstractJdbcUsersRepository
- Set parameters of a PreparedStatement object with property values from a
User instance. Implementations of this method have knowledge of the
parameter ordering of the "insert" SQL statement definition.
- Specified by:
setUserForInsertStatement in class AbstractJdbcUsersRepository
- Parameters:
user - a User instance, which should be an implementation class which
is handled by this Repostory implementation.userInsert - a PreparedStatement initialised with SQL taken from the
"insert" SQL definition.
- Throws:
SQLException - if an exception occurs while setting parameter values.- See Also:
AbstractJdbcUsersRepository.setUserForInsertStatement(org.apache.james.user.api.model.User,
java.sql.PreparedStatement)
setUserForUpdateStatement
protected void setUserForUpdateStatement(User user,
PreparedStatement userUpdate)
throws SQLException
- Deprecated.
- Description copied from class:
AbstractJdbcUsersRepository
- Set parameters of a PreparedStatement object with property values from a
User instance. Implementations of this method have knowledge of the
parameter ordering of the "update" SQL statement definition.
- Specified by:
setUserForUpdateStatement in class AbstractJdbcUsersRepository
- Parameters:
user - a User instance, which should be an implementation class which
is handled by this Repostory implementation.userUpdate - a PreparedStatement initialised with SQL taken from the
"update" SQL definition.
- Throws:
SQLException - if an exception occurs while setting parameter values.- See Also:
AbstractJdbcUsersRepository.setUserForUpdateStatement(org.apache.james.user.api.model.User,
java.sql.PreparedStatement)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.