org.jasig.services.persondir.support.jdbc
Class AbstractPersonAttributeMappingQuery
java.lang.Object
org.springframework.jdbc.object.RdbmsOperation
org.springframework.jdbc.object.SqlOperation
org.springframework.jdbc.object.SqlQuery
org.springframework.jdbc.object.MappingSqlQueryWithParameters
org.springframework.jdbc.object.MappingSqlQuery
org.jasig.services.persondir.support.jdbc.AbstractPersonAttributeMappingQuery
- All Implemented Interfaces:
- InitializingBean
public abstract class AbstractPersonAttributeMappingQuery
- extends MappingSqlQuery
An object which will execute a SQL query with the expectation
of yielding a ResultSet with zero or one rows, which it maps
to null or to a Map from uPortal attribute names to values.
|
Constructor Summary |
AbstractPersonAttributeMappingQuery(DataSource ds,
String sql,
List queryAttributes)
Instantiate the query, providing a DataSource against which the query
will run and the SQL representing the query, which should take exactly
one parameter: the unique ID of the user. |
| Methods inherited from class org.springframework.jdbc.object.SqlQuery |
execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeByNamedParam, executeByNamedParam, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObject, findObjectByNamedParam, findObjectByNamedParam, getRowsExpected, setRowsExpected |
| Methods inherited from class org.springframework.jdbc.object.RdbmsOperation |
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPersonAttributeMappingQuery
public AbstractPersonAttributeMappingQuery(DataSource ds,
String sql,
List queryAttributes)
- Instantiate the query, providing a DataSource against which the query
will run and the SQL representing the query, which should take exactly
one parameter: the unique ID of the user.
The org.jasig.portal.services.persondir.support.AbstractQueryPersonAttributeDao#getQueryAttributes()
method on the passed AbstractJdbcPersonAttributeDao must be initialized when
the object is passed in.
- Parameters:
ds - The data source to use for running the query against.sql - The SQL to run against the data source.queryAttributes - The List of query attributes to declare bind variables for
Copyright © 1998-2007 Java Architectures Special Interest Group. All Rights Reserved.