org.sqlproc.engine.jmx
Interface SqlSimpleFactoryMXBean

All Known Implementing Classes:
SqlSimpleFactoryJmx

public interface SqlSimpleFactoryMXBean

The simplified JMX interface for the SQL Engine factory.

The factory can be based on Spring DI framework for example.

For more info please see the Tutorials.

Author:
Vladimir Hudec

Method Summary
 String getCrudEngineProcessingCache(String name)
          Returns the processing cache used for the selected SQL CRUD Engine
 String getDynamicNames()
          Returns the collection of names of all initialized/constructed dynamic SQL Engine instances.
 String getNames()
          Returns the collection of names of all initialized/constructed static SQL Engine instances.
 String getProcedureEngineProcessingCache(String name)
          Returns the processing cache used for the selected SQL Procedure Engine
 String getQueryEngineProcessingCache(String name)
          Returns the processing cache used for the selected SQL Query Engine
 String initCrudEngines(String names)
          In the case the SQL CRUD Engines are not initialized, a new static instances are established in the cache.
 String initProcedureEngines(String names)
          In the case the SQL Procedure Engines are not initialized, a new static instances are established in the cache.
 String initQueryEngines(String names)
          In the case the SQL Query Engines are not initialized, a new static instances are established in the cache.
 boolean isLazyInit()
          Returns the indicator to speed up the initialization process
 String newCrudEngine(String name, String sqlStatement)
          A new dynamic SQL CRUD Engine instance is established in the cache.
 String newProcedureEngine(String name, String sqlStatement)
          A new dynamic SQL Procedure Engine instance is established in the cache.
 String newQueryEngine(String name, String sqlStatement)
          A new dynamic SQL Query Engine instance is established in the cache.
 String resetCrudEngineProcessingCache(String name, String names)
          Clears the processing cache used for the selected SQL CRUD Engine
 String resetCrudEngines(String names)
          In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established.
 String resetProcedureEngineProcessingCache(String name, String names)
          Clears the processing cache used for the selected SQL Procedure Engine
 String resetProcedureEngines(String names)
          In the case a dynamic SQL Procedure Engine is in the cache, the static one is re-established.
 String resetQueryEngineProcessingCache(String name, String names)
          Clears the processing cache used for the selected SQL Query Engine
 String resetQueryEngines(String names)
          In the case any dynamic SQL Query Engine is in the cache, the static one is re-established.
 

Method Detail

initQueryEngines

String initQueryEngines(String names)
In the case the SQL Query Engines are not initialized, a new static instances are established in the cache.

Parameters:
names - the names of the required SQL Query Engines instances
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

initCrudEngines

String initCrudEngines(String names)
In the case the SQL CRUD Engines are not initialized, a new static instances are established in the cache.

Parameters:
names - the names of the required SQL CRUD Engines instances
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

initProcedureEngines

String initProcedureEngines(String names)
In the case the SQL Procedure Engines are not initialized, a new static instances are established in the cache.

Parameters:
names - the names of the required SQL Procedure Engines instances
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

resetQueryEngines

String resetQueryEngines(String names)
In the case any dynamic SQL Query Engine is in the cache, the static one is re-established.

Parameters:
names - the names of the required SQL Query Engines instances
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

resetCrudEngines

String resetCrudEngines(String names)
In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established.

Parameters:
names - the names of the required SQL CRUD Engines instances
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

resetProcedureEngines

String resetProcedureEngines(String names)
In the case a dynamic SQL Procedure Engine is in the cache, the static one is re-established.

Parameters:
names - the names of the required SQL Procedure Engines instances
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

newQueryEngine

String newQueryEngine(String name,
                      String sqlStatement)
A new dynamic SQL Query Engine instance is established in the cache. The static one is suppressed.

Parameters:
name - the name of the required SQL Query Engine instance
sqlStatement - the new SQL statement, which is going to replace the original one
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

newCrudEngine

String newCrudEngine(String name,
                     String sqlStatement)
A new dynamic SQL CRUD Engine instance is established in the cache. The static one is suppressed.

Parameters:
name - the name of the required SQL CRUD Engine instance
sqlStatement - the new SQL statement, which is going to replace the original one
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

newProcedureEngine

String newProcedureEngine(String name,
                          String sqlStatement)
A new dynamic SQL Procedure Engine instance is established in the cache. The static one is suppressed.

Parameters:
name - the name of the required SQL Procedure Engine instance
sqlStatement - the new SQL statement, which is going to replace the original one
Returns:
for the case there's an error thrown, the error Message. Otherwise the OK.

getNames

String getNames()
Returns the collection of names of all initialized/constructed static SQL Engine instances.

Returns:
The collection of all initialized static SQL Engine instances' names

getDynamicNames

String getDynamicNames()
Returns the collection of names of all initialized/constructed dynamic SQL Engine instances.

Returns:
The collection of all initialized dynamic SQL Engine instances' names

isLazyInit

boolean isLazyInit()
Returns the indicator to speed up the initialization process

Returns:
the indicator to speed up the initialization process

getQueryEngineProcessingCache

String getQueryEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL Query Engine

Parameters:
name - the name of the required SQL Query Engine
Returns:
the processing cache used for the selected SQL Query Engine or the error message

getCrudEngineProcessingCache

String getCrudEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL CRUD Engine

Parameters:
name - the name of the required SQL CRUD Engine
Returns:
the processing cache used for the selected SQL CRUD Engine or the error message

getProcedureEngineProcessingCache

String getProcedureEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL Procedure Engine

Parameters:
name - the name of the required SQL Procedure Engine
Returns:
the processing cache used for the selected SQL Procedure Engine or the error message

resetQueryEngineProcessingCache

String resetQueryEngineProcessingCache(String name,
                                       String names)
Clears the processing cache used for the selected SQL Query Engine

Parameters:
name - the name of the required SQL Query Engine
names - the names of the processing cache entries to be cleared
Returns:
the OK or the error message

resetCrudEngineProcessingCache

String resetCrudEngineProcessingCache(String name,
                                      String names)
Clears the processing cache used for the selected SQL CRUD Engine

Parameters:
name - the name of the required SQL CRUD Engine
names - the names of the processing cache entries to be cleared
Returns:
the OK or the error message

resetProcedureEngineProcessingCache

String resetProcedureEngineProcessingCache(String name,
                                           String names)
Clears the processing cache used for the selected SQL Procedure Engine

Parameters:
name - the name of the required SQL Procedure Engine
names - the names of the processing cache entries to be cleared
Returns:
the OK or the error message


Copyright © 2015. All rights reserved.