public class RDBMSDataConnectorFactoryBean extends BaseDataConnectorFactoryBean
RDBMSDataConnector
s.Constructor and Description |
---|
RDBMSDataConnectorFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected Object |
createInstance() |
long |
getCacheElementTimeToLive()
Gets the time to live, in milliseconds, for cache elements.
|
net.sf.ehcache.CacheManager |
getCacheManager()
Gets the manager for the results cache.
|
List<RDBMSColumnDescriptor> |
getColumnDescriptors()
Gets the result set column descriptors.
|
DataSource |
getConnectionDataSource()
Gets the database connection source.
|
int |
getMaximumCachedElements()
Gets the maximum number of elements that will be cached.
|
Class |
getObjectType() |
String |
getQueryTemplate()
Gets the SQL query template.
|
long |
getQueryTimeout()
Gets the timeout, in milliseconds, of the SQL query.
|
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 |
setCacheElementTimeToLive(long ttl)
Sets the time to live, in milliseconds, for cache elements.
|
void |
setCacheManager(net.sf.ehcache.CacheManager manager)
Sets the manager for the results cache.
|
void |
setColumnDescriptors(List<RDBMSColumnDescriptor> descriptors)
Sets the result set column descriptors.
|
void |
setConnectionDataSource(DataSource source)
Sets the database connection source.
|
void |
setMaximumCachedElements(int max)
Sets the maximum number of elements that will be cached.
|
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 |
setQueryTimeout(long timeout)
Sets the timeout, in milliseconds, of the SQL query.
|
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.
|
getFailoverDataConnectorId, populateDataConnector, setFailoverDataConnectorIds
getDependencyIds, getPluginId, setDependencyIds, setPluginId
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 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 TemplateEngine getTemplateEngine()
public void setTemplateEngine(TemplateEngine engine)
engine
- template engine used to construct the SQL query from the query templatepublic String getQueryTemplate()
public void setQueryTemplate(String template)
template
- SQL query templatepublic long getQueryTimeout()
public void setQueryTimeout(long timeout)
timeout
- timeout, in milliseconds, of the SQL query.public boolean getQueryUsesStoredProcedures()
public void setQueryUsesStoredProcedures(boolean storedProcedures)
storedProcedures
- whether the SQL query uses stored procedurespublic net.sf.ehcache.CacheManager getCacheManager()
public void setCacheManager(net.sf.ehcache.CacheManager manager)
manager
- manager for the results cachepublic long getCacheElementTimeToLive()
public void setCacheElementTimeToLive(long ttl)
ttl
- time to live, in milliseconds, for cache elementspublic int getMaximumCachedElements()
public void setMaximumCachedElements(int max)
max
- maximum number of elements that will be cachedpublic boolean isReadOnlyConnections()
public void setReadOnlyConnections(boolean readOnly)
readOnly
- whether the database connection is read-onlyCopyright © 1999–2014. All rights reserved.