Package org.sqlproc.engine
Class SqlDefaultFactory
java.lang.Object
org.sqlproc.engine.SqlDefaultFactory
- All Implemented Interfaces:
SqlEngineFactory
- Direct Known Subclasses:
JdbcEngineFactory
The simple implementation of the
SqlEngineFactory
.
It's suitable mainly for the Spring DI based configuration, like the next one for the loader
SqlProcessorLoader
:
<beans ...> ... <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="typeFactory" ref="typeFactory" /> </bean> </beans>and use the next code to obtain an instance of the SQL Query engine
SqlQueryEngine sqlEngine = sqlFactory.getQueryEngine("ALL");or the next code to obtain an instance of the SQL CRUD engine
SqlCrudEngine sqlEngine = sqlFactory.getCrudEngine("ALL");
In the case the SQL Processor runs on the top of the JDBC stack, there's more suitable JdbcEngineFactory
.
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The customized ThreadPoolExecutor. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integer
The number of threads used for asynchronous initialization.private boolean
The indicator that Collections should be handled as standard types.private SqlEngineConfiguration
The overall configuration, which can be persisted.private List
<SqlMetaType> The custom META types.private Executor
The asynchronous SQL Processor engines initialization executor.private Boolean
The flag indicating the asynchronous SQL Processor engines initialization has been finished.private String
The name of the filter to filter the META SQL statements, mapping rules and optional features.private boolean
The indicator the JDBC stack is used.private Boolean
This flag indicates to speed up the initialization process.private static final String
The platform based line separator.protected final org.slf4j.Logger
The internal slf4j logger.The names of files, which hold a collection of the SQL Processor artifacts (META SQL statements, mapping rules and optional features).private StringBuilder
The String representation of all SQL Processor artifacts (META SQL statements, mapping rules and optional features).private SqlMonitorFactory
The monitor factory used in the process of the SQL Monitor instances creation.private String[]
Only statements and rules with the names in this set are picked up from the properties repository.protected SqlPluginFactory
The factory for the SQL Processor plugins.private SqlProcessorLoader
The helper class for the META SQL statements and mapping rules parsing.private boolean
The indicator that column aliases are not included in generated SQL command.private SqlTypeFactory
The factory for the META types construction.private SqlValidatorFactory
The validator factory used in the process of the SQL Monitor instances creation. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with no default values.SqlDefaultFactory
(boolean lazyInit) Creates a new instance with no default values.SqlDefaultFactory
(boolean lazyInit, int asyncInitThreads) Creates a new instance with no default values.SqlDefaultFactory
(int asyncInitThreads) Creates a new instance with no default values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomType
(SqlMetaType customType) Adds a new custom META type.private void
Check the SQL Engine instance is not nullint
Returns the number of threads used for asynchronous initializationgetCheckedCrudEngine
(String name) Returns the named static or dynamic SQL CRUD Engine instance (the primary SQL Processor class).Returns the named static or dynamic SQL Procedure Engine instance (the primary SQL Processor class).getCheckedQueryEngine
(String name) Returns the named static or dynamic SQL Query Engine instance (the primary SQL Processor class).Returns the named static SQL CRUD Engine instance (the primary SQL Processor class).Returns the named static SQL Procedure Engine instance (the primary SQL Processor class).Returns the named static SQL Query Engine instance (the primary SQL Processor class).Returns the overall dynamic configurationReturns the collection of names of all initialized/constructed dynamic SQL CRUD Engine instances.Returns the collection of names of all initialized/constructed dynamic SQL CRUD Engine instances.getCrudEngine
(String name) Returns the named static or dynamic SQL CRUD Engine instance (the primary SQL Processor class).Returns the collection of named dynamic SQL CRUD Engines (the primary SQL Processor class) instances.Returns the collection of names of all initialized/constructed static SQL CRUD Engine instances.Returns the custom META types.getDynamicCrudEngine
(String name, String sqlStatement) Returns the named dynamic SQL CRUD Engine instance (the primary SQL Processor class).getDynamicProcedureEngine
(String name, String sqlStatement) Returns the named dynamic SQL Procedure Engine instance (the primary SQL Processor class).getDynamicQueryEngine
(String name, String sqlStatement) Returns the named dynamic SQL Query Engine instance (the primary SQL Processor class).Returns the result of engines initialization process.Returns the result of engines initialization process.protected Executor
Returns the asynchronous SQL Processor engines initialization executor.Returns the name of the filter to filter the META SQL statements, mapping rules and optional features.Returns the internal SQL engine or processor loader.Returns the names of files, which holds a collection of META SQL statements, mapping rules and optional features.Returns the String representation of the META SQL statements, mapping rules and optional features.Returns the monitor factory used in the process of the SQL Monitor instances creation.String[]
Returns the only statements and rules, which are picked up from the properties repository.Returns the factory for the SQL Processor plugins.Returns the collection of names of all initialized/constructed dynamic SQL Procedure Engine instances.Returns the collection of names of all initialized/constructed dynamic SQL Procedure Engine instances.getProcedureEngine
(String name) Returns the named static or dynamic SQL Procedure Engine instance (the primary SQL Processor class).Returns the collection of named dynamic SQL Procedure Engines (the primary SQL Processor class) instances.Returns the collection of names of all initialized/constructed static SQL Procedure Engine instances.Returns the collection of names of all initialized/constructed dynamic SQL Query Engine instances.Returns the collection of names of all initialized/constructed dynamic SQL Query Engine instances.getQueryEngine
(String name) Returns the named static or dynamic SQL Query Engine instance (the primary SQL Processor class).Returns the collection of named dynamic SQL Query Engines (the primary SQL Processor class) instances.Returns the collection of names of all initialized/constructed static SQL Query Engine instances.getStaticCrudEngine
(String name) Returns the named static SQL CRUD Engine instance (the primary SQL Processor class).Returns the named static SQL Procedure Engine instance (the primary SQL Processor class).getStaticQueryEngine
(String name) Returns the named static SQL Query Engine instance (the primary SQL Processor class).Returns the factory for the META types construction.Returns the validator factory used in the process of the SQL Monitor instances creation.void
init()
Dynamic initialization, called mainly from the Spring configuration initialization.void
init0()
Conditional dynamic initialization, called mainly from the Spring configuration initialization.Returns the flag indicating the asynchronous SQL Processor engines initialization has been finished.boolean
Returns the indicator that Collections should be handled as standard types.boolean
isJdbc()
Returns the indicator the JDBC stack is used.boolean
Returns the indicator to speed up the initialization processboolean
Returns the indicator that column aliases are not included in generated SQL command.void
setAsyncInitThreads
(Integer asyncInitThreads) Sets the number of threads used for asynchronous initializationvoid
setCollectionsAreStandardTypes
(boolean collectionsAreStandardTypes) Sets the indicator that Collections should be handled as standard types.void
setConfiguration
(SqlEngineConfiguration configuration) Sets the overall dynamic configurationvoid
setCustomTypes
(List<SqlMetaType> customTypes) Sets the custom META types.void
setCustomTypes
(SqlMetaType... customTypes) Sets the custom META types.void
setExecutor
(Executor executor) Sets the asynchronous SQL Processor engines initialization executor.void
Sets the name of the filter to filter the META SQL statements, mapping rules and optional features.void
setFilter
(SqlFeature filter) Sets the name of the filter to filter the META SQL statements, mapping rules and optional features.void
setJdbc
(boolean jdbc) Sets the indicator the JDBC stack is used.void
setLazyInit
(Boolean lazyInit) Sets the indicator to speed up the initialization processvoid
setMetaFilesNames
(String... metaFilesNames) Sets the names of files, which holds a collection of META SQL statements, mapping rules and optional features.void
setMetaFilesNames
(List<String> metaFilesNames) Sets the names of files, which holds a collection of META SQL statements, mapping rules and optional features.void
setMetaStatements
(StringBuilder metaStatements) Sets the String representation of the META SQL statements, mapping rules and optional features.void
setMonitorFactory
(SqlMonitorFactory monitorFactory) Sets the monitor factory used in the process of the SQL Monitor instances creation.void
setOnlyStatements
(String[] selectQueries) Sets the only statements and rules, which are picked up from the properties repository.void
setPluginFactory
(SqlPluginFactory pluginFactory) Sets the factory for the SQL Processor plugins.void
setSkipAliasesInQqlCommand
(boolean skipAliasesInQqlCommand) Sets the indicator that column aliases are not included in generated SQL command.void
setTypeFactory
(SqlTypeFactory typeFactory) Sets the factory for the META types construction.void
setValidatorFactory
(SqlValidatorFactory validatorFactory) Sets the validator factory used in the process of the SQL Monitor instances creation.
-
Field Details
-
logger
protected final org.slf4j.Logger loggerThe internal slf4j logger. -
LINESEP
The platform based line separator. -
metaFilesNames
The names of files, which hold a collection of the SQL Processor artifacts (META SQL statements, mapping rules and optional features). -
metaStatements
The String representation of all SQL Processor artifacts (META SQL statements, mapping rules and optional features). -
typeFactory
The factory for the META types construction. -
pluginFactory
The factory for the SQL Processor plugins. -
filter
The name of the filter to filter the META SQL statements, mapping rules and optional features. -
monitorFactory
The monitor factory used in the process of the SQL Monitor instances creation. -
customTypes
The custom META types. -
onlyStatements
Only statements and rules with the names in this set are picked up from the properties repository. -
jdbc
private boolean jdbcThe indicator the JDBC stack is used. -
processorLoader
The helper class for the META SQL statements and mapping rules parsing. All artifacts are loaded from new grammar based files. -
validatorFactory
The validator factory used in the process of the SQL Monitor instances creation. -
lazyInit
This flag indicates to speed up the initialization process. -
asyncInitThreads
The number of threads used for asynchronous initialization. -
configuration
The overall configuration, which can be persisted. -
executor
The asynchronous SQL Processor engines initialization executor. It can be a Spring TaskExecutor. -
executorTerminated
The flag indicating the asynchronous SQL Processor engines initialization has been finished. -
collectionsAreStandardTypes
private boolean collectionsAreStandardTypesThe indicator that Collections should be handled as standard types. This is standard behaviour for Cassandra DB.. -
skipAliasesInQqlCommand
private boolean skipAliasesInQqlCommandThe indicator that column aliases are not included in generated SQL command. This is standard behaviour for Cassandra DB.
-
-
Constructor Details
-
SqlDefaultFactory
public SqlDefaultFactory()Creates a new instance with no default values. -
SqlDefaultFactory
public SqlDefaultFactory(boolean lazyInit) Creates a new instance with no default values.- Parameters:
lazyInit
- this flag indicates to speed up the initialization process.
-
SqlDefaultFactory
public SqlDefaultFactory(int asyncInitThreads) Creates a new instance with no default values.- Parameters:
asyncInitThreads
- number of threads used for asynchronous initialization
-
SqlDefaultFactory
public SqlDefaultFactory(boolean lazyInit, int asyncInitThreads) Creates a new instance with no default values.- Parameters:
lazyInit
- this flag indicates to speed up the initialization process.asyncInitThreads
- number of threads used for asynchronous initialization
-
-
Method Details
-
init
public void init()Dynamic initialization, called mainly from the Spring configuration initialization. -
init0
public void init0()Conditional dynamic initialization, called mainly from the Spring configuration initialization. -
getQueryEngine
Returns the named static or dynamic SQL Query Engine instance (the primary SQL Processor class). In fact it returns the cached instance in the case it exists (it can be a static or dynamic one). Otherwise it instantiates a new static instance.- Specified by:
getQueryEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Query Engine instance- Returns:
- the SQL Engine instance or null value in the case the related statement is missing
-
getCrudEngine
Returns the named static or dynamic SQL CRUD Engine instance (the primary SQL Processor class). In fact it returns the cached instance in the case it exists (it can be a static or dynamic one). Otherwise it instantiates a new static instance.- Specified by:
getCrudEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL CRUD Engine instance- Returns:
- the SQL Engine instance or null value in the case the related statement is missing
-
getProcedureEngine
Returns the named static or dynamic SQL Procedure Engine instance (the primary SQL Processor class). In fact it returns the cached instance in the case it exists (it can be a static or dynamic one). Otherwise it instantiates a new static instance.- Specified by:
getProcedureEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Procedure Engine instance- Returns:
- the SQL Engine instance or null value in the case the related statement is missing
-
getStaticQueryEngine
Returns the named static SQL Query Engine instance (the primary SQL Processor class).- Specified by:
getStaticQueryEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Query Engine instance- Returns:
- the SQL Engine instance or null value in the case the related statement is missing
-
getStaticCrudEngine
Returns the named static SQL CRUD Engine instance (the primary SQL Processor class).- Specified by:
getStaticCrudEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL CRUD Engine instance- Returns:
- the SQL Engine instance or null value in the case the related statement is missing
-
getStaticProcedureEngine
Returns the named static SQL Procedure Engine instance (the primary SQL Processor class).- Specified by:
getStaticProcedureEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Procedure Engine instance- Returns:
- the SQL Engine instance or null value in the case the related statement is missing
-
check
Check the SQL Engine instance is not null- Parameters:
name
- the name of the required SQL Engine instancesqlEngine
- the checked SQL Engine instance- Throws:
SqlEngineException
- in the case the the SQL Engine instance is null
-
getCheckedQueryEngine
Returns the named static or dynamic SQL Query Engine instance (the primary SQL Processor class). In fact it returns the cached instance in the case it exists (it can be a static or dynamic one). Otherwise it instantiates a new static instance.- Specified by:
getCheckedQueryEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Query Engine instance- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the related statement is missing
-
getCheckedCrudEngine
Returns the named static or dynamic SQL CRUD Engine instance (the primary SQL Processor class). In fact it returns the cached instance in the case it exists (it can be a static or dynamic one). Otherwise it instantiates a new static instance.- Specified by:
getCheckedCrudEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL CRUD Engine instance- Returns:
- the SQL Engine instance
-
getCheckedProcedureEngine
Returns the named static or dynamic SQL Procedure Engine instance (the primary SQL Processor class). In fact it returns the cached instance in the case it exists (it can be a static or dynamic one). Otherwise it instantiates a new static instance.- Specified by:
getCheckedProcedureEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Procedure Engine instance- Returns:
- the SQL Engine instance
-
getCheckedStaticQueryEngine
Returns the named static SQL Query Engine instance (the primary SQL Processor class).- Specified by:
getCheckedStaticQueryEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Query Engine instance- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the related statement is missing
-
getCheckedStaticCrudEngine
Returns the named static SQL CRUD Engine instance (the primary SQL Processor class).- Specified by:
getCheckedStaticCrudEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL CRUD Engine instance- Returns:
- the SQL Engine instance
-
getCheckedStaticProcedureEngine
Returns the named static SQL Procedure Engine instance (the primary SQL Processor class).- Specified by:
getCheckedStaticProcedureEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Procedure Engine instance- Returns:
- the SQL Engine instance
-
getDynamicQueryEngine
public SqlQueryEngine getDynamicQueryEngine(String name, String sqlStatement) throws SqlEngineException Returns the named dynamic SQL Query Engine instance (the primary SQL Processor class).- Specified by:
getDynamicQueryEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Query Engine instancesqlStatement
- the new SQL statement, which is going to replace the original one- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the original statement is missing
-
getDynamicCrudEngine
Returns the named dynamic SQL CRUD Engine instance (the primary SQL Processor class).- Specified by:
getDynamicCrudEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL CRUD Engine instancesqlStatement
- the new SQL statement, which is going to replace the original one- Returns:
- the SQL Engine instance
-
getDynamicProcedureEngine
Returns the named dynamic SQL Procedure Engine instance (the primary SQL Processor class).- Specified by:
getDynamicProcedureEngine
in interfaceSqlEngineFactory
- Parameters:
name
- the name of the required SQL Procedure Engine instancesqlStatement
- the new SQL statement, which is going to replace the original one- Returns:
- the SQL Engine instance
-
getMetaFilesNames
Returns the names of files, which holds a collection of META SQL statements, mapping rules and optional features.- Returns:
- the names of files, which holds a collection of META SQL statements, mapping rules and optional features
-
setMetaFilesNames
Sets the names of files, which holds a collection of META SQL statements, mapping rules and optional features.- Parameters:
metaFilesNames
- the names of files, which holds a collection of META SQL statements, mapping rules and optional features
-
setMetaFilesNames
Sets the names of files, which holds a collection of META SQL statements, mapping rules and optional features.- Parameters:
metaFilesNames
- the names of files, which holds a collection of META SQL statements, mapping rules and optional features
-
getMetaStatements
Returns the String representation of the META SQL statements, mapping rules and optional features.- Returns:
- the String representation of the META SQL statements, mapping rules and optional features
-
setMetaStatements
Sets the String representation of the META SQL statements, mapping rules and optional features.- Parameters:
metaStatements
- the String representation of the META SQL statements, mapping rules and optional features
-
getTypeFactory
Returns the factory for the META types construction.- Returns:
- the factory for the META types construction
-
setTypeFactory
Sets the factory for the META types construction.- Parameters:
typeFactory
- the factory for the META types construction
-
getPluginFactory
Returns the factory for the SQL Processor plugins.- Returns:
- the factory for the SQL Processor plugins
-
setPluginFactory
Sets the factory for the SQL Processor plugins.- Parameters:
pluginFactory
- the factory for the SQL Processor plugins
-
getFilter
Returns the name of the filter to filter the META SQL statements, mapping rules and optional features.- Returns:
- the name of the filter to filter the META SQL statements, mapping rules and optional features
-
setFilter
Sets the name of the filter to filter the META SQL statements, mapping rules and optional features.- Parameters:
filter
- the name of the filter to filter the META SQL statements, mapping rules and optional features
-
setFilter
Sets the name of the filter to filter the META SQL statements, mapping rules and optional features.- Parameters:
filter
- the name of the filter to filter the META SQL statements, mapping rules and optional features
-
getMonitorFactory
Returns the monitor factory used in the process of the SQL Monitor instances creation.- Returns:
- the monitor factory used in the process of the SQL Monitor instances creation
-
setMonitorFactory
Sets the monitor factory used in the process of the SQL Monitor instances creation.- Parameters:
monitorFactory
- the monitor factory used in the process of the SQL Monitor instances creation
-
getCustomTypes
Returns the custom META types.- Returns:
- the custom META types
-
setCustomTypes
Sets the custom META types.- Parameters:
customTypes
- the custom META types
-
setCustomTypes
Sets the custom META types.- Parameters:
customTypes
- the custom META types
-
addCustomType
Adds a new custom META type.- Parameters:
customType
- the custom META type
-
getOnlyStatements
Returns the only statements and rules, which are picked up from the properties repository.- Returns:
- the only statements and rules, which are picked up from the properties repository
-
setOnlyStatements
Sets the only statements and rules, which are picked up from the properties repository.- Parameters:
selectQueries
- the only statements and rules, which are picked up from the properties repository
-
isJdbc
public boolean isJdbc()Returns the indicator the JDBC stack is used.- Returns:
- the indicator the JDBC stack is used
-
setJdbc
public void setJdbc(boolean jdbc) Sets the indicator the JDBC stack is used.- Parameters:
jdbc
- the indicator the JDBC stack is used
-
isCollectionsAreStandardTypes
public boolean isCollectionsAreStandardTypes()Returns the indicator that Collections should be handled as standard types.- Returns:
- the indicator that Collections should be handled as standard types.
-
setCollectionsAreStandardTypes
public void setCollectionsAreStandardTypes(boolean collectionsAreStandardTypes) Sets the indicator that Collections should be handled as standard types.- Parameters:
collectionsAreStandardTypes
- the indicator that Collections should be handled as standard types.
-
isSkipAliasesInQqlCommand
public boolean isSkipAliasesInQqlCommand()Returns the indicator that column aliases are not included in generated SQL command.- Returns:
- the indicator that column aliases are not included in generated SQL command
-
setSkipAliasesInQqlCommand
public void setSkipAliasesInQqlCommand(boolean skipAliasesInQqlCommand) Sets the indicator that column aliases are not included in generated SQL command.- Parameters:
skipAliasesInQqlCommand
- the indicator that column aliases are not included in generated SQL command
-
isLazyInit
public boolean isLazyInit()Returns the indicator to speed up the initialization process- Specified by:
isLazyInit
in interfaceSqlEngineFactory
- Returns:
- the indicator to speed up the initialization process
-
setLazyInit
Sets the indicator to speed up the initialization process- Parameters:
lazyInit
- the indicator to speed up the initialization process
-
getAsyncInitThreads
public int getAsyncInitThreads()Returns the number of threads used for asynchronous initialization- Specified by:
getAsyncInitThreads
in interfaceSqlEngineFactory
- Returns:
- the number of threads used for asynchronous initialization
-
setAsyncInitThreads
Sets the number of threads used for asynchronous initialization- Parameters:
asyncInitThreads
- the number of threads used for asynchronous initialization
-
isAsyncInitFinished
Returns the flag indicating the asynchronous SQL Processor engines initialization has been finished.- Specified by:
isAsyncInitFinished
in interfaceSqlEngineFactory
- Returns:
- the flag indicating the asynchronous SQL Processor engines initialization has been finished
-
getLoader
Returns the internal SQL engine or processor loader.- Returns:
- the internal SQL engine or processor loader
-
getValidatorFactory
Returns the validator factory used in the process of the SQL Monitor instances creation.- Returns:
- the validator factory used in the process of the SQL Monitor instances creation
-
setValidatorFactory
Sets the validator factory used in the process of the SQL Monitor instances creation.- Parameters:
validatorFactory
- the validator factory used in the process of the SQL Monitor instances creation
-
getQueryNames
Returns the collection of names of all initialized/constructed static SQL Query Engine instances.- Specified by:
getQueryNames
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized static SQL Query Engine instances' names
-
getQueryDynamicNames
Returns the collection of names of all initialized/constructed dynamic SQL Query Engine instances.- Specified by:
getQueryDynamicNames
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized dynamic SQL Query Engine instances' names
-
getQueryEngines
Returns the collection of named dynamic SQL Query Engines (the primary SQL Processor class) instances.- Specified by:
getQueryEngines
in interfaceSqlEngineFactory
- Returns:
- The collection of named dynamic SQL Query Engines (the primary SQL Processor class) instances
-
getQueryDynamicEngines
Returns the collection of names of all initialized/constructed dynamic SQL Query Engine instances.- Specified by:
getQueryDynamicEngines
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized dynamic SQL Query Engine instances' names
-
getCrudNames
Returns the collection of names of all initialized/constructed static SQL CRUD Engine instances.- Specified by:
getCrudNames
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized static SQL CRUD Engine instances' names
-
getCrudDynamicNames
Returns the collection of names of all initialized/constructed dynamic SQL CRUD Engine instances.- Specified by:
getCrudDynamicNames
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized dynamic SQL CRUD Engine instances' names
-
getCrudEngines
Returns the collection of named dynamic SQL CRUD Engines (the primary SQL Processor class) instances.- Specified by:
getCrudEngines
in interfaceSqlEngineFactory
- Returns:
- The collection of named dynamic SQL CRUD Engines (the primary SQL Processor class) instances
-
getCrudDynamicEngines
Returns the collection of names of all initialized/constructed dynamic SQL CRUD Engine instances.- Specified by:
getCrudDynamicEngines
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized dynamic SQL CRUD Engine instances' names
-
getProcedureNames
Returns the collection of names of all initialized/constructed static SQL Procedure Engine instances.- Specified by:
getProcedureNames
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized static SQL Procedure Engine instances' names
-
getProcedureDynamicNames
Returns the collection of names of all initialized/constructed dynamic SQL Procedure Engine instances.- Specified by:
getProcedureDynamicNames
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized dynamic SQL Procedure Engine instances' names
-
getProcedureEngines
Returns the collection of named dynamic SQL Procedure Engines (the primary SQL Processor class) instances.- Specified by:
getProcedureEngines
in interfaceSqlEngineFactory
- Returns:
- The collection of named dynamic SQL Procedure Engines (the primary SQL Processor class) instances
-
getProcedureDynamicEngines
Returns the collection of names of all initialized/constructed dynamic SQL Procedure Engine instances.- Specified by:
getProcedureDynamicEngines
in interfaceSqlEngineFactory
- Returns:
- The collection of all initialized dynamic SQL Procedure Engine instances' names
-
getEnginesInitErrors
Returns the result of engines initialization process. For every engine, for which there's error in the initialization process there a error message. In the case there's no error, the result message is null.- Specified by:
getEnginesInitErrors
in interfaceSqlEngineFactory
- Returns:
- the result of engines initialization process
-
getEnginesInitErrorsMsg
Returns the result of engines initialization process. For every engine, for which there's error in the initialization process there a error message. In the case there's no error, the result message is null.- Specified by:
getEnginesInitErrorsMsg
in interfaceSqlEngineFactory
- Returns:
- the result of engines initialization process
-
getConfiguration
Returns the overall dynamic configuration- Specified by:
getConfiguration
in interfaceSqlEngineFactory
- Returns:
- the overall dynamic configuration
-
setConfiguration
Sets the overall dynamic configuration- Parameters:
configuration
- the overall dynamic configuration
-
getExecutor
Returns the asynchronous SQL Processor engines initialization executor. It can be a Spring TaskExecutor or null for the case of synchronous SQL Processor engines initialization.- Returns:
- the asynchronous SQL Processor engines initialization executor
-
setExecutor
Sets the asynchronous SQL Processor engines initialization executor. It can be a Spring TaskExecutor or null for the case of synchronous SQL Processor engines initialization.- Parameters:
executor
- the asynchronous SQL Processor engines initialization executor
-