T
- The type of the queried objectprotected class JdbcUserDirectory.SelectUsersJdbcQueryExecutor<T> extends JdbcUserDirectory.AbstractJdbcQueryExecutor<T>
Modifier and Type | Field and Description |
---|---|
protected int |
_length
The maximum number of users to select
|
protected JdbcUserDirectory.JdbcPredicate |
_mandatoryPredicate
The mandatory predicate to use when querying users by pattern
|
protected int |
_offset
The offset to start with, first is 0
|
protected String |
_pattern
The pattern to match (none if null)
|
protected String |
_patternToMatch
The pattern to match, extracted from the pattern
|
Modifier | Constructor and Description |
---|---|
protected |
SelectUsersJdbcQueryExecutor(String pattern,
int length,
int offset)
The constructor
|
Modifier and Type | Method and Description |
---|---|
private StringBuilder |
_addQuerySize(int length,
int offset,
Connection con,
StringBuilder selectClause,
StringBuilder sql) |
protected String |
getSqlQuery(Connection connection)
Must return the SQL query to execute
|
protected PreparedStatement |
prepareStatement(Connection connection,
String sql)
Prepare the statement to execute
|
executeQuery, processResultSet, run, runWithException
protected int _length
protected int _offset
protected JdbcUserDirectory.JdbcPredicate _mandatoryPredicate
protected String _patternToMatch
protected SelectUsersJdbcQueryExecutor(String pattern, int length, int offset)
pattern
- The pattern to match (none if null).length
- The maximum number of users to select.offset
- The offset to start with, first is 0.protected String getSqlQuery(Connection connection)
JdbcUserDirectory.AbstractJdbcQueryExecutor
getSqlQuery
in class JdbcUserDirectory.AbstractJdbcQueryExecutor<T>
connection
- The pool connectionprivate StringBuilder _addQuerySize(int length, int offset, Connection con, StringBuilder selectClause, StringBuilder sql)
protected PreparedStatement prepareStatement(Connection connection, String sql) throws SQLException
JdbcUserDirectory.AbstractJdbcQueryExecutor
prepareStatement
in class JdbcUserDirectory.AbstractJdbcQueryExecutor<T>
connection
- The pool connectionsql
- The SQL querySQLException
- If an SQL Exception occurs