org.apache.james.user.jdbc
Class JamesUsersJdbcRepository

java.lang.Object
  extended by org.apache.james.user.lib.AbstractUsersRepository
      extended by org.apache.james.user.lib.AbstractJamesUsersRepository
          extended by org.apache.james.user.jdbc.AbstractJdbcUsersRepository
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.rrt.api.RecipientRewriteTable
RecipientRewriteTable.ErrorMappingException
 
Field Summary
 
Fields inherited from class org.apache.james.user.jdbc.AbstractJdbcUsersRepository
m_sqlParameters
 
Fields inherited from class org.apache.james.user.lib.AbstractJamesUsersRepository
enableAliases, enableForwarding, ignoreCase
 
Fields inherited from interface org.apache.james.rrt.api.RecipientRewriteTable
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD
 
Constructor Summary
JamesUsersJdbcRepository()
          Deprecated.  
 
Method Summary
protected  User readUserFromResultSet(ResultSet rsUsers)
          Deprecated. Reads properties for a User from an open ResultSet.
protected  void setUserForInsertStatement(User user, PreparedStatement userInsert)
          Deprecated. Set parameters of a PreparedStatement object with property values from a User instance.
protected  void setUserForUpdateStatement(User user, PreparedStatement userUpdate)
          Deprecated. Set parameters of a PreparedStatement object with property values from a User instance.
 
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 org.apache.james.user.lib.AbstractUsersRepository
addUser, getLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHosting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.james.user.api.UsersRepository
addUser, supportVirtualHosting
 

Constructor Detail

JamesUsersJdbcRepository

public JamesUsersJdbcRepository()
Deprecated. 
Method Detail

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.