com.cafesoft.core.jdbc
Class SearchConfig

java.lang.Object
  |
  +--com.cafesoft.core.jdbc.SearchConfig

public class SearchConfig
extends Object

Encapsulates a set of JDBC search parameters.

Since:
10/25/01

Field Summary
protected  String passwordColumn
          Column name for the user's password.
protected  String roleColumn
          The database column name for the role.
protected  String rolePreparedStatement
          The queary to select principals.
protected  String userPreparedStatement
          The query to validate a username.
 
Constructor Summary
SearchConfig(String userPreparedStatement, String passwordColumn, String rolePreparedStatement, String roleColumn)
          Create a new SearchConfig object.
 
Method Summary
 String getPasswordColumn()
          Get the database column name where the user password is stored.
 String getRoleColumn()
          Get the database column name where the role is stored.
 String getRolePreparedStatement()
          Get the SQL prepared statement to search for user roles.
 String getUserPreparedStatement()
          Get the SQL prepared statement to search for users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userPreparedStatement

protected String userPreparedStatement
The query to validate a username.


passwordColumn

protected String passwordColumn
Column name for the user's password.


rolePreparedStatement

protected String rolePreparedStatement
The queary to select principals.


roleColumn

protected String roleColumn
The database column name for the role.

Constructor Detail

SearchConfig

public SearchConfig(String userPreparedStatement,
                    String passwordColumn,
                    String rolePreparedStatement,
                    String roleColumn)
Create a new SearchConfig object.

Parameters:
userPreparedStatement - the query to validate a username
passwordColumn - the database column name for the user's password
rolePreparedStatement - the queary to select principals
roleColumn - the database column name for the role
Method Detail

getUserPreparedStatement

public String getUserPreparedStatement()
Get the SQL prepared statement to search for users.

Returns:
the SQL prepared statement to search for users.

getPasswordColumn

public String getPasswordColumn()
Get the database column name where the user password is stored.

Returns:
the database column name where the password is stored

getRolePreparedStatement

public String getRolePreparedStatement()
Get the SQL prepared statement to search for user roles.

Returns:
the SQL prepared statement to search for user roles.

getRoleColumn

public String getRoleColumn()
Get the database column name where the role is stored.

Returns:
the database column role name


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.