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 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 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 resetCrudEngines(String names)
          In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established.
 String resetProcedureEngines(String names)
          In the case a dynamic SQL Procedure Engine is in the cache, the static one is re-established.
 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


Copyright © 2014. All rights reserved.