public class GrouperJdbcSourceAdapter2_5 extends JDBCSourceAdapter2
dbTableOrView, defaultSortCol, descriptionCol, lowerSearchCol, nameCol, selectCols, subjectIdCol, subjectIdentifierColserrorOnMaxResults, failOnSearchForTesting, jdbcConnectionProvider, maxResults, queryCountforTesting, subjectIDAttributeName, subjectTypeStringattributes, 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, setSubjectIdentifierColscloseStatement, getDatabaseType, getDescriptionAttributeName, getMaxPage, getNameAttributeName, getSqlResults, getSqlResults, getSubject, getSubjectByIdentifier, getSubjectIDAttributeName, getSubjectIdentifierAttributesAll, getSubjectTypeString, init, isChangeSearchQueryForMaxResults, isUseInClauseForIdAndIdentifier, loadAttributes, loadDriver, loggingStart, loggingStop, prepareStatement, printConfig, tryToChangeQueryaddAttribute, 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, setSubjectIdentifierAttributespublic boolean isEditable()
isEditable in interface SourceisEditable in class BaseSourceAdapterpublic boolean isEnabled()
isEnabled in interface SourceisEnabled in class BaseSourceAdapterpublic Map<Integer,String> getSortAttributes()
SourcegetSortAttributes in interface SourcegetSortAttributes in class BaseSourceAdapterSource.getSortAttributes()public Map<Integer,String> getSearchAttributes()
SourcegetSearchAttributes in interface SourcegetSearchAttributes in class BaseSourceAdapterSource.getSearchAttributes()protected void setupDataSource(Properties props) throws SourceUnavailableException
JDBCSourceAdapter2setupDataSource in class JDBCSourceAdapter2SourceUnavailableExceptionprotected Map<String,Set<String>> loadAttributes(ResultSet resultSet, String query, ResultSetMetaData resultSetMetaData) throws SQLException
loadAttributes in class JDBCSourceAdapter2resultSet - query - for loggingresultSetMetaData - SQLExceptionprotected Subject createSubject(ResultSet resultSet, String query, Collection<String> identifiersForIdentifierToMap, Map<String,Subject> resultIdentifierToSubject) throws SQLException
createSubject in class JDBCSourceAdapter2resultSet - query - identifiersForIdentifierToMap - resultIdentifierToSubject - SQLExceptionCopyright © 2016 Internet2. All rights reserved.