Package org.sqlproc.engine.plugin
Class SimpleSqlPluginFactory
java.lang.Object
org.sqlproc.engine.plugin.SimpleSqlPluginFactory
- All Implemented Interfaces:
SqlPluginFactory
The simple implementation of the
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.
- Author:
- Vladimir Hudec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DefaultBeanUtilsPlugin
The SQL Processor plugin devoted to beans handlingstandard implementation.private DefaultSqlPlugins
The SQL Processor plugins standard implementation.private static SimpleSqlPluginFactory
The private static instance of this factory.private IsEmptyPlugin
The SQL Processor plugin devoted to evaluate the emptiness of the input value.private IsTruePlugin
The SQL Processor plugin devoted to evaluate the boolean value of the logical expression.private BeanUtilsPlugin
The SQL Processor plugin devoted to beans handling.private SqlCountPlugin
The SQL Processor plugin devoted to the COUNT SQL construction.private SqlExecutionPlugin
The SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.private SqlFromToPlugin
The SQL Processor plugin devoted to the FROM-TO SQL construction.private SqlIdentityPlugin
The SQL Processor plugin devoted to the identity SELECT SQL construction.private SqlProcessingIdPlugin
The SQL Processor plugin devoted to the META SQL execution optimization.private SqlSequencePlugin
The SQL Processor plugin devoted to the sequence SELECT SQL construction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSqlPluginFactory
The main method to obtain the singleton instance of this factory.Returns the SQL Processor plugin devoted to evaluate the emptiness of the input value.Returns the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.Returns the SQL Processor plugin devoted to beans handling.Returns the SQL Processor plugin devoted to the COUNT SQL construction.Returns the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.Returns the SQL Processor plugin devoted to the FROM-TO SQL construction.Returns the SQL Processor plugin devoted to the identity SELECT SQL construction.Returns the SQL Processor plugin devoted to the META SQL execution optimization.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 handlingvoid
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 executedvoid
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 optimizationvoid
setSqlSequencePlugin
(SqlSequencePlugin sqlSequencePlugin) Sets the SQL Processor plugin devoted to the sequence SELECT SQL construction.
-
Field Details
-
factory
The private static instance of this factory. -
defaultSqlPlugins
The SQL Processor plugins standard implementation. -
defaultSqlBeansPlugin
The SQL Processor plugin devoted to beans handlingstandard implementation. -
isTruePlugin
The SQL Processor plugin devoted to evaluate the boolean value of the logical expression. -
isEmptyPlugin
The SQL Processor plugin devoted to evaluate the emptiness of the input value. -
sqlCountPlugin
The SQL Processor plugin devoted to the COUNT SQL construction. -
sqlFromToPlugin
The SQL Processor plugin devoted to the FROM-TO SQL construction. -
sqlSequencePlugin
The SQL Processor plugin devoted to the sequence SELECT SQL construction. -
sqlIdentityPlugin
The SQL Processor plugin devoted to the identity SELECT SQL construction. -
sqlExecutionPlugin
The SQL Processor plugin devoted to possible SQL query/command modification just before it is executed. -
sqlBeansPlugin
The SQL Processor plugin devoted to beans handling. -
sqlProcessingIdPlugin
The SQL Processor plugin devoted to the META SQL execution optimization.
-
-
Constructor Details
-
SimpleSqlPluginFactory
private SimpleSqlPluginFactory()The private constructor.
-
-
Method Details
-
getInstance
The main method to obtain the singleton instance of this factory.- Returns:
- the META types factory for the JDBC stack
-
getIsEmptyPlugin
Returns the SQL Processor plugin devoted to evaluate the emptiness of the input value.- Specified by:
getIsEmptyPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to evaluate the emptiness of the input value
-
getIsTruePlugin
Returns the SQL Processor plugin devoted to evaluate the boolean value of the logical expression.- Specified by:
getIsTruePlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to evaluate the boolean value of the logical expression
-
getSqlCountPlugin
Returns the SQL Processor plugin devoted to the COUNT SQL construction.- Specified by:
getSqlCountPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to the COUNT SQL construction
-
getSqlFromToPlugin
Returns the SQL Processor plugin devoted to the FROM-TO SQL construction.- Specified by:
getSqlFromToPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to the FROM-TO SQL construction
-
getSqlSequencePlugin
Returns the SQL Processor plugin devoted to the sequence SELECT SQL construction.- Specified by:
getSqlSequencePlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to the sequence SELECT SQL construction
-
getSqlIdentityPlugin
Returns the SQL Processor plugin devoted to the identity SELECT SQL construction.- Specified by:
getSqlIdentityPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to the identity SELECT SQL construction
-
getSqlExecutionPlugin
Returns the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed.- Specified by:
getSqlExecutionPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to possible SQL query/command modification just before it is executed
-
getSqlBeansPlugin
Returns the SQL Processor plugin devoted to beans handling.- Specified by:
getSqlBeansPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to beans handling
-
getSqlProcessingIdPlugin
Returns the SQL Processor plugin devoted to the META SQL execution optimization.- Specified by:
getSqlProcessingIdPlugin
in interfaceSqlPluginFactory
- Returns:
- the SQL Processor plugin devoted to the META SQL execution optimization
-
setIsTruePlugin
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
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
Sets the SQL Processor plugin devoted to the COUNT SQL construction.- Parameters:
sqlCountPlugin
- the SQL Processor plugin devoted to the COUNT SQL construction
-
setSqlFromToPlugin
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
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
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
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
Sets the SQL Processor plugin devoted to beans handling- Parameters:
sqlBeansPlugin
- the SQL Processor plugin devoted to beans handling
-
setSqlProcessingIdPlugin
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
-