Package org.sqlproc.engine.plugin
Class SimpleSqlPluginFactory
- java.lang.Object
-
- org.sqlproc.engine.plugin.SimpleSqlPluginFactory
-
- All Implemented Interfaces:
SqlPluginFactory
public class SimpleSqlPluginFactory extends Object implements SqlPluginFactory
The simple implementation of theSqlPluginFactory.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.
- Author:
- Vladimir Hudec
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultBeanUtilsPlugindefaultSqlBeansPluginThe SQL Processor plugin devoted to beans handlingstandard implementation.private DefaultSqlPluginsdefaultSqlPluginsThe SQL Processor plugins standard implementation.private static SimpleSqlPluginFactoryfactoryThe private static instance of this factory.private IsEmptyPluginisEmptyPluginThe SQL Processor plugin devoted to evaluate the emptiness of the input value.private IsTruePluginisTruePluginThe SQL Processor plugin devoted to evaluate the boolean value of the logical expression.private BeanUtilsPluginsqlBeansPluginThe SQL Processor plugin devoted to beans handling.private SqlCountPluginsqlCountPluginThe SQL Processor plugin devoted to the COUNT SQL construction.private SqlExecutionPluginsqlExecutionPluginThe SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.private SqlFromToPluginsqlFromToPluginThe SQL Processor plugin devoted to the FROM-TO SQL construction.private SqlIdentityPluginsqlIdentityPluginThe SQL Processor plugin devoted to the identity SELECT SQL construction.private SqlProcessingIdPluginsqlProcessingIdPluginThe SQL Processor plugin devoted to the META SQL execution optimization.private SqlSequencePluginsqlSequencePluginThe SQL Processor plugin devoted to the sequence SELECT SQL construction.
-
Constructor Summary
Constructors Modifier Constructor Description privateSimpleSqlPluginFactory()The private constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleSqlPluginFactorygetInstance()The main method to obtain the singleton instance of this factory.IsEmptyPlugingetIsEmptyPlugin()Returns the SQL Processor plugin devoted to evaluate the emptiness of the input value.IsTruePlugingetIsTruePlugin()Returns the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.BeanUtilsPlugingetSqlBeansPlugin()Returns the SQL Processor plugin devoted to beans handling.SqlCountPlugingetSqlCountPlugin()Returns the SQL Processor plugin devoted to the COUNT SQL construction.SqlExecutionPlugingetSqlExecutionPlugin()Returns the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.SqlFromToPlugingetSqlFromToPlugin()Returns the SQL Processor plugin devoted to the FROM-TO SQL construction.SqlIdentityPlugingetSqlIdentityPlugin()Returns the SQL Processor plugin devoted to the identity SELECT SQL construction.SqlProcessingIdPlugingetSqlProcessingIdPlugin()Returns the SQL Processor plugin devoted to the META SQL execution optimization.SqlSequencePlugingetSqlSequencePlugin()Returns the SQL Processor plugin devoted to the sequence SELECT SQL construction.voidsetIsEmptyPlugin(IsEmptyPlugin isEmptyPlugin)Sets the SQL Processor plugin devoted to evaluate the emptiness of the input value.voidsetIsTruePlugin(IsTruePlugin isTruePlugin)Sets the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.voidsetSqlBeansPlugin(BeanUtilsPlugin sqlBeansPlugin)Sets the SQL Processor plugin devoted to beans handlingvoidsetSqlCountPlugin(SqlCountPlugin sqlCountPlugin)Sets the SQL Processor plugin devoted to the COUNT SQL construction.voidsetSqlExecutionPlugin(SqlExecutionPlugin sqlExecutionPlugin)Sets the SQL Processor plugin devoted to possible SQL query/command modification just before it is executedvoidsetSqlFromToPlugin(SqlFromToPlugin sqlFromToPlugin)Sets the SQL Processor plugin devoted to the FROM-TO SQL construction.voidsetSqlIdentityPlugin(SqlIdentityPlugin sqlIdentityPlugin)Sets the SQL Processor plugin devoted to the identity SELECT SQL construction.voidsetSqlProcessingIdPlugin(SqlProcessingIdPlugin sqlProcessingIdPlugin)Sets the SQL Processor plugin devoted to the META SQL execution optimizationvoidsetSqlSequencePlugin(SqlSequencePlugin sqlSequencePlugin)Sets the SQL Processor plugin devoted to the sequence SELECT SQL construction.
-
-
-
Field Detail
-
factory
private static SimpleSqlPluginFactory factory
The private static instance of this factory.
-
defaultSqlPlugins
private DefaultSqlPlugins defaultSqlPlugins
The SQL Processor plugins standard implementation.
-
defaultSqlBeansPlugin
private DefaultBeanUtilsPlugin defaultSqlBeansPlugin
The SQL Processor plugin devoted to beans handlingstandard implementation.
-
isTruePlugin
private IsTruePlugin isTruePlugin
The SQL Processor plugin devoted to evaluate the boolean value of the logical expression.
-
isEmptyPlugin
private IsEmptyPlugin isEmptyPlugin
The SQL Processor plugin devoted to evaluate the emptiness of the input value.
-
sqlCountPlugin
private SqlCountPlugin sqlCountPlugin
The SQL Processor plugin devoted to the COUNT SQL construction.
-
sqlFromToPlugin
private SqlFromToPlugin sqlFromToPlugin
The SQL Processor plugin devoted to the FROM-TO SQL construction.
-
sqlSequencePlugin
private SqlSequencePlugin sqlSequencePlugin
The SQL Processor plugin devoted to the sequence SELECT SQL construction.
-
sqlIdentityPlugin
private SqlIdentityPlugin sqlIdentityPlugin
The SQL Processor plugin devoted to the identity SELECT SQL construction.
-
sqlExecutionPlugin
private SqlExecutionPlugin sqlExecutionPlugin
The SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.
-
sqlBeansPlugin
private BeanUtilsPlugin sqlBeansPlugin
The SQL Processor plugin devoted to beans handling.
-
sqlProcessingIdPlugin
private SqlProcessingIdPlugin sqlProcessingIdPlugin
The SQL Processor plugin devoted to the META SQL execution optimization.
-
-
Method Detail
-
getInstance
public static SimpleSqlPluginFactory getInstance()
The main method to obtain the singleton instance of this factory.- Returns:
- the META types factory for the JDBC stack
-
getIsEmptyPlugin
public IsEmptyPlugin getIsEmptyPlugin()
Returns the SQL Processor plugin devoted to evaluate the emptiness of the input value.- Specified by:
getIsEmptyPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to evaluate the emptiness of the input value
-
getIsTruePlugin
public IsTruePlugin getIsTruePlugin()
Returns the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.- Specified by:
getIsTruePluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to evaluate the boolean value of the logical expression
-
getSqlCountPlugin
public SqlCountPlugin getSqlCountPlugin()
Returns the SQL Processor plugin devoted to the COUNT SQL construction.- Specified by:
getSqlCountPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to the COUNT SQL construction
-
getSqlFromToPlugin
public SqlFromToPlugin getSqlFromToPlugin()
Returns the SQL Processor plugin devoted to the FROM-TO SQL construction.- Specified by:
getSqlFromToPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to the FROM-TO SQL construction
-
getSqlSequencePlugin
public SqlSequencePlugin getSqlSequencePlugin()
Returns the SQL Processor plugin devoted to the sequence SELECT SQL construction.- Specified by:
getSqlSequencePluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to the sequence SELECT SQL construction
-
getSqlIdentityPlugin
public SqlIdentityPlugin getSqlIdentityPlugin()
Returns the SQL Processor plugin devoted to the identity SELECT SQL construction.- Specified by:
getSqlIdentityPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to the identity SELECT SQL construction
-
getSqlExecutionPlugin
public SqlExecutionPlugin getSqlExecutionPlugin()
Returns the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.- Specified by:
getSqlExecutionPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed
-
getSqlBeansPlugin
public BeanUtilsPlugin getSqlBeansPlugin()
Returns the SQL Processor plugin devoted to beans handling.- Specified by:
getSqlBeansPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to beans handling
-
getSqlProcessingIdPlugin
public SqlProcessingIdPlugin getSqlProcessingIdPlugin()
Returns the SQL Processor plugin devoted to the META SQL execution optimization.- Specified by:
getSqlProcessingIdPluginin interfaceSqlPluginFactory- Returns:
- the SQL Processor plugin devoted to the META SQL execution optimization
-
setIsTruePlugin
public void setIsTruePlugin(IsTruePlugin isTruePlugin)
Sets the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.- Parameters:
isTruePlugin- the SQL Processor plugin devoted to evaluate the boolean value of the logical expression
-
setIsEmptyPlugin
public void setIsEmptyPlugin(IsEmptyPlugin isEmptyPlugin)
Sets the SQL Processor plugin devoted to evaluate the emptiness of the input value.- Parameters:
isEmptyPlugin- the SQL Processor plugin devoted to evaluate the emptiness of the input value
-
setSqlCountPlugin
public void setSqlCountPlugin(SqlCountPlugin sqlCountPlugin)
Sets the SQL Processor plugin devoted to the COUNT SQL construction.- Parameters:
sqlCountPlugin- the SQL Processor plugin devoted to the COUNT SQL construction
-
setSqlFromToPlugin
public void setSqlFromToPlugin(SqlFromToPlugin sqlFromToPlugin)
Sets the SQL Processor plugin devoted to the FROM-TO SQL construction.- Parameters:
sqlFromToPlugin- the SQL Processor plugin devoted to the FROM-TO SQL construction
-
setSqlSequencePlugin
public void setSqlSequencePlugin(SqlSequencePlugin sqlSequencePlugin)
Sets the SQL Processor plugin devoted to the sequence SELECT SQL construction.- Parameters:
sqlSequencePlugin- the SQL Processor plugin devoted to the sequence SELECT SQL construction
-
setSqlIdentityPlugin
public void setSqlIdentityPlugin(SqlIdentityPlugin sqlIdentityPlugin)
Sets the SQL Processor plugin devoted to the identity SELECT SQL construction.- Parameters:
sqlIdentityPlugin- the SQL Processor plugin devoted to the identity SELECT SQL construction
-
setSqlExecutionPlugin
public void setSqlExecutionPlugin(SqlExecutionPlugin sqlExecutionPlugin)
Sets the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed- Parameters:
sqlExecutionPlugin- the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed
-
setSqlBeansPlugin
public void setSqlBeansPlugin(BeanUtilsPlugin sqlBeansPlugin)
Sets the SQL Processor plugin devoted to beans handling- Parameters:
sqlBeansPlugin- the SQL Processor plugin devoted to beans handling
-
setSqlProcessingIdPlugin
public void setSqlProcessingIdPlugin(SqlProcessingIdPlugin sqlProcessingIdPlugin)
Sets the SQL Processor plugin devoted to the META SQL execution optimization- Parameters:
sqlProcessingIdPlugin- the SQL Processor plugin devoted to the META SQL execution optimization
-
-