public class GrouperJdbcSourceAdapter2_5 extends JDBCSourceAdapter2
dbTableOrView, defaultSortCol, descriptionCol, lowerSearchCol, nameCol, selectCols, subjectIdCol, subjectIdentifierCols
errorOnMaxResults, failOnSearchForTesting, jdbcConnectionProvider, maxResults, queryCountforTesting, subjectIDAttributeName, subjectTypeString
attributes, descriptionAttributeName, id, internalAttributes, name, nameAttributeName, params, searchAttributes, searches, sortAttributes, subjectIdentifierAttributes, subjectIdentifierAttributesAll, type, types
Constructor and Description |
---|
GrouperJdbcSourceAdapter2_5() |
Modifier and Type | Method and Description |
---|---|
protected Subject |
createSubject(ResultSet resultSet,
String query,
Collection<String> identifiersForIdentifierToMap,
Map<String,Subject> resultIdentifierToSubject)
Create a subject from the current row in the resultSet
|
Map<Integer,String> |
getSearchAttributes()
Get the names of attributes used for searching.
|
Map<Integer,String> |
getSortAttributes()
Get the names of attributes used for sorting.
|
boolean |
isEditable() |
boolean |
isEnabled() |
protected Map<String,Set<String>> |
loadAttributes(ResultSet resultSet,
String query,
ResultSetMetaData resultSetMetaData)
Loads source attributes from the result set
|
protected void |
setupDataSource(Properties props)
DataSource connection pool setup.
|
checkConfig, dbTableOrView, getDbTableOrView, getDefaultSortCol, getDescriptionCol, getLowerSearchCol, getNameCol, getSubject, getSubject, getSubjectAttributeColToName, getSubjectByIdentifier, getSubjectByIdentifier, getSubjectByIdOrIdentifier, getSubjectByIdOrIdentifier, getSubjectIdCol, getSubjectIdentifierAttributes, getSubjectIdentifierCols, getSubjectsByIdentifiers, getSubjectsByIdentifiers, getSubjectsByIds, getSubjectsByIds, getSubjectsByIdsOrIdentifiers, getSubjectsByIdsOrIdentifiers, retrieveAllSubjectIds, retrieveString, search, search, searchPage, searchPage, setDbTableOrView, setDefaultSortCol, setDescriptionCol, setLowerSearchCol, setNameCol, setSubjectAttributeColToName, setSubjectIdCol, setSubjectIdentifierCols
closeStatement, getDatabaseType, getDescriptionAttributeName, getMaxPage, getNameAttributeName, getSqlResults, getSqlResults, getSubject, getSubjectByIdentifier, getSubjectIDAttributeName, getSubjectIdentifierAttributesAll, getSubjectTypeString, init, isChangeSearchQueryForMaxResults, isUseInClauseForIdAndIdentifier, loadAttributes, loadDriver, loggingStart, loggingStop, prepareStatement, printConfig, tryToChangeQuery
addAttribute, addInitParam, addInternalAttribute, addSubjectType, convertSourceAttributeToSubjectAttribute, convertSubjectAttributeToSourceAttribute, createSubject, equals, getAttributes, getConfigId, getId, getInitParam, getInternalAttributes, getName, getSearch, getSearches, getSourceAttributesToLowerCase, getSubjectStatusConfig, getSubjectType, getSubjectTypes, hashCode, initParams, loadSearch, removeInitParam, resultSetLimit, setConfigId, setId, setName, setSearchAttributes, setSearches, setSortAttributes, setSubjectIdentifierAttributes
public boolean isEditable()
isEditable
in interface Source
isEditable
in class BaseSourceAdapter
public boolean isEnabled()
isEnabled
in interface Source
isEnabled
in class BaseSourceAdapter
public Map<Integer,String> getSortAttributes()
Source
getSortAttributes
in interface Source
getSortAttributes
in class BaseSourceAdapter
Source.getSortAttributes()
public Map<Integer,String> getSearchAttributes()
Source
getSearchAttributes
in interface Source
getSearchAttributes
in class BaseSourceAdapter
Source.getSearchAttributes()
protected void setupDataSource(Properties props) throws SourceUnavailableException
JDBCSourceAdapter2
setupDataSource
in class JDBCSourceAdapter2
SourceUnavailableException
protected Map<String,Set<String>> loadAttributes(ResultSet resultSet, String query, ResultSetMetaData resultSetMetaData) throws SQLException
loadAttributes
in class JDBCSourceAdapter2
resultSet
- query
- for loggingresultSetMetaData
- SQLException
protected Subject createSubject(ResultSet resultSet, String query, Collection<String> identifiersForIdentifierToMap, Map<String,Subject> resultIdentifierToSubject) throws SQLException
createSubject
in class JDBCSourceAdapter2
resultSet
- query
- identifiersForIdentifierToMap
- resultIdentifierToSubject
- SQLException
Copyright © 2016 Internet2. All rights reserved.