|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.config.AbstractFactoryBean
edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPluginFactoryBean
edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorFactoryBean
edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.RDBMSDataConnectorFactoryBean
public class RDBMSDataConnectorFactoryBean
Spring factory bean that produces RDBMSDataConnector
s.
Field Summary |
---|
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
---|
logger |
Constructor Summary | |
---|---|
RDBMSDataConnectorFactoryBean()
|
Method Summary | |
---|---|
protected Object |
createInstance()
|
boolean |
getCacheResults()
Gets whether query results should be cached. |
List<RDBMSColumnDescriptor> |
getColumnDescriptors()
Gets the result set column descriptors. |
DataSource |
getConnectionDataSource()
Gets the database connection source. |
Class |
getObjectType()
|
String |
getQueryTemplate()
Gets the SQL query template. |
boolean |
getQueryUsesStoredProcedures()
Gets whether the SQL query uses stored procedures. |
TemplateEngine |
getTemplateEngine()
Gets the template engine used to construct the SQL query from the query template. |
boolean |
isNoResultIsError()
This returns whether this connector will throw an exception if no search results are found. |
boolean |
isReadOnlyConnections()
Gets whether the database connection is read-only. |
void |
setCacheResults(boolean cache)
Sets whether query results should be cached. |
void |
setColumnDescriptors(List<RDBMSColumnDescriptor> descriptors)
Sets the result set column descriptors. |
void |
setConnectionDataSource(DataSource source)
Sets the database connection source. |
void |
setNoResultIsError(boolean b)
This sets whether this connector will throw an exception if no search results are found. |
void |
setQueryTemplate(String template)
Sets the SQL query template. |
void |
setQueryUsesStoredProcedures(boolean storedProcedures)
Sets whether the SQL query uses stored procedures. |
void |
setReadOnlyConnections(boolean readOnly)
Sets whether the database connection is read-only. |
void |
setTemplateEngine(TemplateEngine engine)
Sets the template engine used to construct the SQL query from the query template. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorFactoryBean |
---|
getFailoverDataConnectorId, populateDataConnector, setFailoverDataConnectorIds |
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPluginFactoryBean |
---|
getDependencyIds, getPluginId, setDependencyIds, setPluginId |
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
---|
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RDBMSDataConnectorFactoryBean()
Method Detail |
---|
public Class getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean
public boolean isNoResultIsError()
boolean
public void setNoResultIsError(boolean b)
b
- boolean
public boolean getCacheResults()
public void setCacheResults(boolean cache)
cache
- whether query results should be cachedpublic List<RDBMSColumnDescriptor> getColumnDescriptors()
public void setColumnDescriptors(List<RDBMSColumnDescriptor> descriptors)
descriptors
- result set column descriptorspublic DataSource getConnectionDataSource()
public void setConnectionDataSource(DataSource source)
source
- database connection sourcepublic String getQueryTemplate()
public void setQueryTemplate(String template)
template
- SQL query templatepublic boolean getQueryUsesStoredProcedures()
public void setQueryUsesStoredProcedures(boolean storedProcedures)
storedProcedures
- whether the SQL query uses stored procedurespublic boolean isReadOnlyConnections()
public void setReadOnlyConnections(boolean readOnly)
readOnly
- whether the database connection is read-onlypublic TemplateEngine getTemplateEngine()
public void setTemplateEngine(TemplateEngine engine)
engine
- template engine used to construct the SQL query from the query templateprotected Object createInstance() throws Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |