public class SimpleSqlPluginFactory extends Object implements SqlPluginFactory
SqlPluginFactory
.
It's suitable mainly for the Spring DI based configuration, like the next one for the new loader
SqlProcessorLoader
:
<beans ...> ... <bean id="pluginFactory" class="org.sqlproc.engine.plugin.SimpleSqlPluginFactory" factory-method="getInstance" > <property name="isTruePlugin" ref="..." /> </bean> <bean id="typeFactory" class="org.sqlproc.engine.jdbc.type.JdbcTypeFactory" factory-method="getInstance" /> <bean id="sqlFactory" class="org.sqlproc.engine.SqlDefaultFactory" init-method="init"> <property name="metaFilesNames"> <list> <value>statements.qry</value> </list> </property> <property name="pluginFactory" ref="pluginFactory" /> <property name="typeFactory" ref="typeFactory" /> </bean> </beans>
For more info please see the Tutorials.
Modifier and Type | Field and Description |
---|---|
private DefaultBeanUtilsPlugin |
defaultSqlBeansPlugin
The SQL Processor plugin devoted to beans handlingstandard implementation.
|
private DefaultSqlPlugins |
defaultSqlPlugins
The SQL Processor plugins standard implementation.
|
private static SimpleSqlPluginFactory |
factory
The private static instance of this factory.
|
private IsEmptyPlugin |
isEmptyPlugin
The SQL Processor plugin devoted to evaluate the emptiness of the input value.
|
private IsTruePlugin |
isTruePlugin
The SQL Processor plugin devoted to evaluate the boolean value of the logical expression.
|
private BeanUtilsPlugin |
sqlBeansPlugin
The SQL Processor plugin devoted to beans handling.
|
private SqlCountPlugin |
sqlCountPlugin
The SQL Processor plugin devoted to the COUNT SQL construction.
|
private SqlExecutionPlugin |
sqlExecutionPlugin
The SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.
|
private SqlFromToPlugin |
sqlFromToPlugin
The SQL Processor plugin devoted to the FROM-TO SQL construction.
|
private SqlIdentityPlugin |
sqlIdentityPlugin
The SQL Processor plugin devoted to the identity SELECT SQL construction.
|
private SqlProcessingIdPlugin |
sqlProcessingIdPlugin
The SQL Processor plugin devoted to the META SQL execution optimization.
|
private SqlSequencePlugin |
sqlSequencePlugin
The SQL Processor plugin devoted to the sequence SELECT SQL construction.
|
Modifier | Constructor and Description |
---|---|
private |
SimpleSqlPluginFactory()
The private constructor.
|
Modifier and Type | Method and Description |
---|---|
static SimpleSqlPluginFactory |
getInstance()
The main method to obtain the singleton instance of this factory.
|
IsEmptyPlugin |
getIsEmptyPlugin()
Returns the SQL Processor plugin devoted to evaluate the emptiness of the input value.
|
IsTruePlugin |
getIsTruePlugin()
Returns the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.
|
BeanUtilsPlugin |
getSqlBeansPlugin()
Returns the SQL Processor plugin devoted to beans handling.
|
SqlCountPlugin |
getSqlCountPlugin()
Returns the SQL Processor plugin devoted to the COUNT SQL construction.
|
SqlExecutionPlugin |
getSqlExecutionPlugin()
Returns the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.
|
SqlFromToPlugin |
getSqlFromToPlugin()
Returns the SQL Processor plugin devoted to the FROM-TO SQL construction.
|
SqlIdentityPlugin |
getSqlIdentityPlugin()
Returns the SQL Processor plugin devoted to the identity SELECT SQL construction.
|
SqlProcessingIdPlugin |
getSqlProcessingIdPlugin()
Returns the SQL Processor plugin devoted to the META SQL execution optimization.
|
SqlSequencePlugin |
getSqlSequencePlugin()
Returns the SQL Processor plugin devoted to the sequence SELECT SQL construction.
|
void |
setIsEmptyPlugin(IsEmptyPlugin isEmptyPlugin)
Sets the SQL Processor plugin devoted to evaluate the emptiness of the input value.
|
void |
setIsTruePlugin(IsTruePlugin isTruePlugin)
Sets the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.
|
void |
setSqlBeansPlugin(BeanUtilsPlugin sqlBeansPlugin)
Sets the SQL Processor plugin devoted to beans handling
|
void |
setSqlCountPlugin(SqlCountPlugin sqlCountPlugin)
Sets the SQL Processor plugin devoted to the COUNT SQL construction.
|
void |
setSqlExecutionPlugin(SqlExecutionPlugin sqlExecutionPlugin)
Sets the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed
|
void |
setSqlFromToPlugin(SqlFromToPlugin sqlFromToPlugin)
Sets the SQL Processor plugin devoted to the FROM-TO SQL construction.
|
void |
setSqlIdentityPlugin(SqlIdentityPlugin sqlIdentityPlugin)
Sets the SQL Processor plugin devoted to the identity SELECT SQL construction.
|
void |
setSqlProcessingIdPlugin(SqlProcessingIdPlugin sqlProcessingIdPlugin)
Sets the SQL Processor plugin devoted to the META SQL execution optimization
|
void |
setSqlSequencePlugin(SqlSequencePlugin sqlSequencePlugin)
Sets the SQL Processor plugin devoted to the sequence SELECT SQL construction.
|
private static SimpleSqlPluginFactory factory
private DefaultSqlPlugins defaultSqlPlugins
private DefaultBeanUtilsPlugin defaultSqlBeansPlugin
private IsTruePlugin isTruePlugin
private IsEmptyPlugin isEmptyPlugin
private SqlCountPlugin sqlCountPlugin
private SqlFromToPlugin sqlFromToPlugin
private SqlSequencePlugin sqlSequencePlugin
private SqlIdentityPlugin sqlIdentityPlugin
private SqlExecutionPlugin sqlExecutionPlugin
private BeanUtilsPlugin sqlBeansPlugin
private SqlProcessingIdPlugin sqlProcessingIdPlugin
public static SimpleSqlPluginFactory getInstance()
public IsEmptyPlugin getIsEmptyPlugin()
getIsEmptyPlugin
in interface SqlPluginFactory
public IsTruePlugin getIsTruePlugin()
getIsTruePlugin
in interface SqlPluginFactory
public SqlCountPlugin getSqlCountPlugin()
getSqlCountPlugin
in interface SqlPluginFactory
public SqlFromToPlugin getSqlFromToPlugin()
getSqlFromToPlugin
in interface SqlPluginFactory
public SqlSequencePlugin getSqlSequencePlugin()
getSqlSequencePlugin
in interface SqlPluginFactory
public SqlIdentityPlugin getSqlIdentityPlugin()
getSqlIdentityPlugin
in interface SqlPluginFactory
public SqlExecutionPlugin getSqlExecutionPlugin()
getSqlExecutionPlugin
in interface SqlPluginFactory
public BeanUtilsPlugin getSqlBeansPlugin()
getSqlBeansPlugin
in interface SqlPluginFactory
public SqlProcessingIdPlugin getSqlProcessingIdPlugin()
getSqlProcessingIdPlugin
in interface SqlPluginFactory
public void setIsTruePlugin(IsTruePlugin isTruePlugin)
isTruePlugin
- the SQL Processor plugin devoted to evaluate the boolean value of the logical expressionpublic void setIsEmptyPlugin(IsEmptyPlugin isEmptyPlugin)
isEmptyPlugin
- the SQL Processor plugin devoted to evaluate the emptiness of the input valuepublic void setSqlCountPlugin(SqlCountPlugin sqlCountPlugin)
sqlCountPlugin
- the SQL Processor plugin devoted to the COUNT SQL constructionpublic void setSqlFromToPlugin(SqlFromToPlugin sqlFromToPlugin)
sqlFromToPlugin
- the SQL Processor plugin devoted to the FROM-TO SQL constructionpublic void setSqlSequencePlugin(SqlSequencePlugin sqlSequencePlugin)
sqlSequencePlugin
- the SQL Processor plugin devoted to the sequence SELECT SQL constructionpublic void setSqlIdentityPlugin(SqlIdentityPlugin sqlIdentityPlugin)
sqlIdentityPlugin
- the SQL Processor plugin devoted to the identity SELECT SQL constructionpublic void setSqlExecutionPlugin(SqlExecutionPlugin sqlExecutionPlugin)
sqlExecutionPlugin
- the SQL Processor plugin devoted to possible SQL query/command modification just before it is executedpublic void setSqlBeansPlugin(BeanUtilsPlugin sqlBeansPlugin)
sqlBeansPlugin
- the SQL Processor plugin devoted to beans handlingpublic void setSqlProcessingIdPlugin(SqlProcessingIdPlugin sqlProcessingIdPlugin)
sqlProcessingIdPlugin
- the SQL Processor plugin devoted to the META SQL execution optimizationCopyright © 2017. All rights reserved.