Package org.sqlproc.engine
Interface SqlEngineFactory
- All Known Implementing Classes:
JdbcEngineFactory
,SqlDefaultFactory
public interface SqlEngineFactory
The factory definition, which can be used to construct the
SqlEngine
instances.
The factory can be based on Spring DI framework for example.
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
-
Method Summary
Modifier and TypeMethodDescriptionint
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.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.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 flag indicating the asynchronous SQL Processor engines initialization has been finished.boolean
Returns the indicator to speed up the initialization process
-
Method Details
-
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.- 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.- 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.- 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
-
getDynamicQueryEngine
Returns the named dynamic SQL Query Engine instance (the primary SQL Processor class).- 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).- 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
- Throws:
SqlEngineException
- in the case the original statement is missing
-
getDynamicProcedureEngine
Returns the named dynamic SQL Procedure Engine instance (the primary SQL Processor class).- 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
- Throws:
SqlEngineException
- in the case the original statement is missing
-
getStaticQueryEngine
Returns the named static SQL Query Engine instance (the primary SQL Processor class).- 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).- 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).- 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
-
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.- 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.- Parameters:
name
- the name of the required SQL CRUD Engine instance- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the related statement is missing
-
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.- Parameters:
name
- the name of the required SQL Procedure Engine instance- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the related statement is missing
-
getCheckedStaticQueryEngine
Returns the named static SQL Query Engine instance (the primary SQL Processor class).- 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).- Parameters:
name
- the name of the required SQL CRUD Engine instance- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the related statement is missing
-
getCheckedStaticProcedureEngine
Returns the named static SQL Procedure Engine instance (the primary SQL Processor class).- Parameters:
name
- the name of the required SQL Procedure Engine instance- Returns:
- the SQL Engine instance
- Throws:
SqlEngineException
- in the case the related statement is missing
-
isLazyInit
boolean isLazyInit()Returns the indicator to speed up the initialization process- Returns:
- the indicator to speed up the initialization process
-
getAsyncInitThreads
Returns the number of threads used for asynchronous initialization- Returns:
- the number of threads used for asynchronous initialization
-
isAsyncInitFinished
Returns the flag indicating the asynchronous SQL Processor engines initialization has been finished.- Returns:
- the flag indicating the asynchronous SQL Processor engines initialization has been finished
-
getQueryNames
Collection<String> getQueryNames()Returns the collection of names of all initialized/constructed static SQL Query Engine instances.- Returns:
- The collection of all initialized static SQL Query Engine instances' names
-
getQueryDynamicNames
Collection<String> getQueryDynamicNames()Returns the collection of names of all initialized/constructed dynamic SQL Query Engine instances.- 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.- 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.- Returns:
- The collection of all initialized dynamic SQL Query Engine instances' names
-
getCrudNames
Collection<String> getCrudNames()Returns the collection of names of all initialized/constructed static SQL CRUD Engine instances.- Returns:
- The collection of all initialized static SQL CRUD Engine instances' names
-
getCrudDynamicNames
Collection<String> getCrudDynamicNames()Returns the collection of names of all initialized/constructed dynamic SQL CRUD Engine instances.- 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.- 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.- Returns:
- The collection of all initialized dynamic SQL CRUD Engine instances' names
-
getProcedureNames
Collection<String> getProcedureNames()Returns the collection of names of all initialized/constructed static SQL Procedure Engine instances.- Returns:
- The collection of all initialized static SQL Procedure Engine instances' names
-
getProcedureDynamicNames
Collection<String> getProcedureDynamicNames()Returns the collection of names of all initialized/constructed dynamic SQL Procedure Engine instances.- 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.- 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.- Returns:
- The collection of all initialized dynamic SQL Procedure Engine instances' names
-
getConfiguration
SqlEngineConfiguration getConfiguration()Returns the overall dynamic configuration- Returns:
- the overall dynamic configuration
-
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.- Returns:
- the result of engines initialization process
-
getEnginesInitErrorsMsg
String 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.- Returns:
- the result of engines initialization process
-