public interface SQLInterceptorFactory
SQLInterceptorFactory is responsible for generating SQLInterceptors when asked.
An instance of this class will be loaded from THE class path resource called "ofbiz-database.properties" and must
have public no-arges constructor.
The factory is responsible for giving out SQLInterceptors. Its these objects that are used as call backs for
each SQL statement that is executed. An SQLInterceptor is asked for for every new SQL statement. So its up to the
factory to decide whether to allocate a new one, re-use them or make them stateless. But remember that new gen
allocation is blindingly fast, so the suggestion is to allocate a new one every time.| Modifier and Type | Method and Description |
|---|---|
SQLInterceptor |
newSQLInterceptor(String ofbizHelperName)
This is called to generate a new
SQLInterceptor ready to be called back when SQL statements are executed. |
SQLInterceptor newSQLInterceptor(String ofbizHelperName)
SQLInterceptor ready to be called back when SQL statements are executed.ofbizHelperName - the name of the OFBIZ entity helper eg a named GenericHelperCopyright © 2024 Atlassian. All rights reserved.