org.jasig.services.persondir.support.jdbc
Class AbstractPersonAttributeMappingQuery

java.lang.Object
  extended by org.springframework.jdbc.object.RdbmsOperation
      extended by org.springframework.jdbc.object.SqlOperation
          extended by org.springframework.jdbc.object.SqlQuery
              extended by org.springframework.jdbc.object.MappingSqlQueryWithParameters
                  extended by org.springframework.jdbc.object.MappingSqlQuery
                      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.jdbc.object.MappingSqlQueryWithParameters
MappingSqlQueryWithParameters.RowMapperImpl
 
Field Summary
 
Fields inherited from class org.springframework.jdbc.object.RdbmsOperation
logger
 
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.
 
Method Summary
 
Methods inherited from class org.springframework.jdbc.object.MappingSqlQuery
mapRow, mapRow
 
Methods inherited from class org.springframework.jdbc.object.MappingSqlQueryWithParameters
newRowMapper
 
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.SqlOperation
compileInternal, newPreparedStatementCreator, newPreparedStatementCreator, newPreparedStatementSetter, onCompileInternal
 
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
 

Constructor Detail

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.