Package org.ofbiz.core.entity.jdbc
Class SQLInterceptorSupport
java.lang.Object
org.ofbiz.core.entity.jdbc.SQLInterceptorSupport
This will read "ofbiz-database.properties" and look for a "sqlinterceptor.factory.class" key. It will then try and
instantiate a
SQLInterceptorFactory from this class name.
If all this fails it will use a NO-OP interceptor factory and hence do nothing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the ofbiz-database.properties key forSQLInterceptorFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLConnectionInterceptorgetNonNullSQLConnectionInterceptor(String ofbizHelperName) This will return a NON NULLSQLConnectionInterceptor.static SQLInterceptorgetNonNullSQLInterceptor(String ofbizHelperName) This will return a NON NULL SQLInterceptor.
-
Field Details
-
INTERCEPTOR_FACTORY_CLASS_NAME_KEY
The name of the ofbiz-database.properties key forSQLInterceptorFactory- See Also:
-
-
Constructor Details
-
SQLInterceptorSupport
public SQLInterceptorSupport()
-
-
Method Details
-
getNonNullSQLInterceptor
This will return a NON NULL SQLInterceptor. If theSQLInterceptorFactoryprovided returns null, then a default NO-OPSQLInterceptorwill be returned.- Parameters:
ofbizHelperName- the name of theGenericHelperin play- Returns:
- a NON NULL
SQLInterceptor
-
getNonNullSQLConnectionInterceptor
This will return a NON NULLSQLConnectionInterceptor. If theSQLInterceptorFactoryprovided returns null, then a default NO-OPSQLConnectionInterceptorwill be returned.- Parameters:
ofbizHelperName- the name of theGenericHelperin playl- Returns:
- a NON NULL
SQLConnectionInterceptor
-